riotmole
Howdy,
i’m trying to play around with a raspi zero 2 and an e-ink shield. I found some material regarding that, using inky.
Unfortunately it seems like inky is no longer being actively developed. It depends on a 0.1 of cuircuits_spi, while livebook itself depends on v1.x or v2.x.
Is there anything more current then inky known to learn how to speak to an e-ink display with nerves, or is there any known way to get this setup to run without landing in dependecy hell or using very old and outdated packages?
nerves_livebook on main [!] via 💧 v1.18.4 took 2,7s
➜ mix deps.get
Resolving Hex dependencies…
Resolution completed in 0.515s
Because every version of inky depends on circuits_spi ~> 0.1 and your app depends on circuits_spi ~> 1.0 or ~> 2.0, no version of inky is allowed.
So, because your app depends on inky ~> 1.0.1, version solving failed.
** (Mix) Hex dependency resolution failed
I can’t imagine i’m the only one who want’s to have an e-ink display on his nerves-device?!
Thanks
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
gus
Hey @riotmole, I think I’m probably the resident expert on e-ink and Nerves at the moment, so I’ll do my best to get you pointed in the right direction
Unfortunately, there’s a lot of variation between individual e-ink displays, as the driver chips don’t always support the same features/options. Could you send me some more info about which HAT you have, and I can see what I can do to help?
I have a couple of helper libraries I developed while working on the Goatmire conference badge:
EInk.Driverbehavior in a custom driver module to support your hardware (if your hardware uses a SPI interface, which I guess it does, then you can use theEInk.Driver.SpiDriverhelper module - seeEInk.Driver.UC8179for reference)A recommendations:
riotmole
Hey, thanks for your quick and helpful reply.
I’ll have a further look into it and i’ll see if i can find the datasheet.
Regarding the display itself, it’s an “waveshare 2.13inch E-Paper Display HAT V4 Version 250x122 Resolution 3.3V/5V Two-Color e-Ink Display epaper Screen for Raspberry Pi Zero/Zero W/Zero WH/3B/3B+/4B”
gus
I can take a further look at this after work today, but here’s the datasheet:
Page 28 is what you want. It’s the list of commands to send, and in which order. The command definitions starts on page 15. Note that you will be using the 4-wire SPI interface, as described in section 6.4.2 on page 10.
I haven’t yet added a driver which supports a red channel, but it’s something I’d like to add support for in the library eventually. The rest should be pretty similar to the UC8179 driver already in the eink repo!