jimsynz
Ash Core Team
Hi folks.
I’ve spent more than a few evenings fiddling around to get a custom system built that enables the st7789v display via the Linux fbtft driver as the console and the “hifiberry” DAC on the pirate audio board that I’m using.
Here’s a photo because it’s awesome:
The next step of the project is to start working on a Scenic based UI for the device. I’ve just tried throwing scenic_driver_nerves_rpi at it to see what happens, and while it seems to load and start correctly nothing is displayed on the console.
Currently installed is scenic 0.10.5 and scenic_driver_nerves_rpi 0.10.1.
The configuration is:
config :podbox, :viewport, %{
name: :main_viewport,
size: {240, 240},
default_scene: Podbox.Scene.Main,
drivers: [
%{
module: Scenic.Driver.Nerves.Rpi
}
]
}
And the default scene is:
defmodule Podbox.Scenes.Main do
use Scenic.Scene
alias Scenic.Graph
import Scenic.Primitives
import Scenic.Components
@graph Graph.build()
|> text("Hello, World!", font_size: 22, translate: {20, 80})
def init(_scene_args, _opts) do
{:ok, %{graph: @graph}, push: @graph}
end
end
Running Scenic.ViewPort.info(:main_viewport) returns:
{:ok,
%Scenic.ViewPort.Status{
drivers: %{
#PID<0.2941.0> => %Scenic.ViewPort.Driver.Info{
module: Scenic.Driver.Nerves.Rpi,
type: "Static Monitor",
id: nil,
width: 1996092956,
height: 1993753600,
pid: #PID<0.2941.0>,
private: nil
}
},
root_config: {Podbox.Scene.Main, nil},
root_graph: {:graph, Podbox.Scene.Main, nil},
root_scene_pid: Podbox.Scene.Main,
size: {240, 240},
styles: %{},
transforms: %{}
}}
Does anyone have any idea what might be going wrong?
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated!
To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead.
Sta...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance











First 8 of 8 Posts
jimsynz
I upgraded scenic to 0.11 and switched to scenic_driver_local. No luck so far.
fmn
IT IS! thanks for sharing!
jimsynz
Well I haven’t solved my scenic issue, but I wanted to share a photo of it in it’s case that I designed. so much fun in such a small package!
al2o3cr
These seem extremely suspicious - do you get the same results every reboot?
The values don’t look endian-swapped (there’s too many 1s scattered around) but maybe they’re just random noise.
jimsynz
Okay, so I’ve made some progress using Scenic 0.11.2.
The viewport is configured like this:
Manually starting Scenic shows the following in the console:
Which totally makes sense, since I’m not using the default screen on HDMI. Any suggestions?
03juan
The error comes from the default
bcm.cdriver.If the display is available on
/dev/dri/card0then it looks like you can use thedrm.cdriver.Have you tried manually setting a custom target?
jimsynz
Thanks for the update. Yeah, this is the direction I went down to finally get it working.
I wound up pulling
scenic_driver_localfrommainand settingSCENIC_LOCAL_TARGET=cairo-fb. The only catch being that it expects to address the framebuffer on/dev/fb0but my display is listed as/dev/fb1. In the mean time I have symlinked it, but I’ve also raised an issue asking for it to be made configurable. I think this means that this method will also work for any of the dozens of displays that are supported byfbtftwithout the need for custom scenic driver packages. Great news!03juan
Great to hear you got it sorted and good call on the configuration request.