riotmole

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

Showing Posts 1 to 3

gus

gus

Nerves Core Team

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 :slight_smile:

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 (GitHub)
    • I suggest you start here. You can implement the EInk.Driver behavior 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 the EInk.Driver.SpiDriver helper module - see EInk.Driver.UC8179 for reference)
  • dither (hex, GitHub)
    • Used for converting images to B/W with a dithering algorithm. Implements a few basic image processing capabilities
  • name_badge (GitHub)
    • This is an example application of how you can use these libraries. It is the software that runs on the Goatmire name badges. You could likely tweak it to work on your rpi zero 2, if you wanted. Note that it is under active development, there’s a few PRs that make some pretty big changes that I’m going to get in this week.

A recommendations:

  • Try to find the datasheet for your e-ink display, as well as a reference implementation. This will help you understand which commands are sent to the display.
  • E-ink displays often require you to send over a waveform look up table (LUT). They are kinda black magic, they control the electrical charge applied to each pixel to get it to change color. You can mess with them, but normally the manufacturer of the display has a recommended lookup table. If you’re lucky though, the LUT will be programmed into the e-ink driver chip at the factory, and you won’t have to worry about it.
riotmole

riotmole OP

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

gus

Nerves Core Team

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!

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews