nanomesher / Nanomesher_NanoSound

Source code for NanoSound products
Apache License 2.0
21 stars 19 forks source link

Use community maintained Adafruit_Python_SSD1306 #4

Open arthurlutz opened 5 years ago

arthurlutz commented 5 years ago

It would be nice to use the adafruit library https://github.com/adafruit/Adafruit_Python_SSD1306

nanomesher commented 4 years ago

how important is this really?

arthurlutz commented 4 years ago

Not very important but it would make the project more versatile and work with other OLED displays. Have a part of your dependencies maitained by such a mainstream library from adafruit is a plus from my point of view.

Maschine2501 commented 4 years ago

Not very important but it would make the project more versatile and work with other OLED displays. Have a part of your dependencies maitained by such a mainstream library from adafruit is a plus from my point of view.

I also would like to use it with another OLED, like an SSD1322 / 256x64 SPI...

nanomesher commented 4 years ago

luma.oled, which we are using, does support https://github.com/rm-hull/luma.oled

Maschine2501 commented 4 years ago

luma.oled, which we are using, does support https://github.com/rm-hull/luma.oled

Hi! Thanks for your reply! Maybe you can give me a hint where and how i can enable the ssd1322 support? I thin i need to put the "driver" in: Nanomesher_NanoSound/nanosound_oled/oled/device.py But what about the volumio plugin menu? I was not able to find where the predefined "1.3inch/0.96inch/1.5inch" devices are listed... I think, to get the ssd1322 working, i need to get it there also? Thank you, regards!

nanomesher commented 4 years ago

Hi, we cant provide official support for it, but we think it's quite likely that this will work. Here are some suggestions: 1) Confirm that the wiring and hardwires is correct. Install https://github.com/rm-hull/luma.examples and get ssd1322 example to work by using "-f conf/ssd1322.conf"

2) copy ssd1322.conf to /home/volumio/nanosound_oled/

3) Edit /home/volumio/nanosound_oled/nanodac_oled.py (source code in https://github.com/nanomesher/Nanomesher_NanoSound/blob/master/nanosound_oled/nanodac_oled.py )