rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
367 stars 140 forks source link

Can't get these to display correctly - max7129 (x4) #137

Closed RamblingGeekUK closed 3 years ago

RamblingGeekUK commented 3 years ago

python3 bitstamp_ticker.py --interface spi --display max7219 --block-orientation -90 --width 32 --height 8

this is the output... I have tried all sorts of options, they never seem to display correctly.. what am I missing ?

20201223_144757733_iOS

RamblingGeekUK commented 3 years ago

python3 matrix_demo.py --block-orientation 90 --cascaded 4 --reverse-order -9 - this works, so it appears to be the --reverse-order -9, not figured out how to do the same with these examples

RamblingGeekUK commented 3 years ago

So Demo is working... this now makes me think that not all these examples work on all screens... I thought the code took account for the screen.

rm-hull commented 3 years ago

Yep, so you’ve discovered that the max7219 pcb’s can be wired up differently. As to the luma.examples, mostly they are targeted to work with marginally bigger screens than 32x8 pixels. The main problem is getting a ttf font that works at such small pixel size: I think that is why the Bitcoin ticker doesn’t quite fit on the 8 pixels of vertical height. There are some examples in the luma.led-matrix repo that are specifically targeted at led matrices and seven segment displays

RamblingGeekUK commented 3 years ago

Thanks for replying so soon. Have a great Christmas. 🎄