monome / libmonome

makes writing applications for Monomes easy.
ISC License
302 stars 158 forks source link

[Question] Difference between LED intensity and LED level all #71

Closed domchristie closed 2 years ago

domchristie commented 2 years ago

I'm currently working on providing Series compatibility to halvves/webmonome, and am wondering what the difference is between LED intensity and LED levels. If I understand the docs correctly:

If so, is there a reason why the Series protocol reduces the level to a single bit:

https://github.com/monome/libmonome/blob/cd11b2fde61b7ecd1c171cf9f8568918b0199df9/src/proto/series.c#L263-L266

Could it just pass the level value unchanged?

Also, given that my Walnut 64 supports variable brightness for all the LEDs, could it also support varying levels for individual LEDs/row/frames?

Thanks!

tehn commented 2 years ago

series grids have an LED driver that supports 1-bit per LED, plus overall brightness (intensity) so there is no per-LED level addressing hence the reducing to 1 bit. it does this for backwards compatibility to ensure series grids work in some predictable way with newer level messages.

series driver is MAX7219 btw

domchristie commented 2 years ago

@tehn got it! thanks!