Second version based on some code found in Python.
This time it is designed for OLED 128x32 display.
Idea is similar:
- read data from signalK through API (info.sh)
- format / filter data and prepare log file to display (info.log -> info2.log)
- oled128x32.py reads info2.log file and it sends the line to OLED screen one by one every 15 s and finally it turns the display off (main program: sensors2.sh)
Based on https://www.waveshare.com/wiki/0.91inch_OLED_Module.
Please also go there to download Font.ttf which is needed here. Probably it is possible to get ttf fonts from windows and use it also here changing name in oled128x32.py but not tested.
In the file SSD1306.py please adjust too I2C bus number according to your configuration: -> i2c-2 -> SMBus(2)
This time it is designed for OLED 128x32 display.
Idea is similar:
- read data from signalK through API (info.sh)
- format / filter data and prepare log file to display (info.log -> info2.log)
- oled128x32.py reads info2.log file and it sends the line to OLED screen one by one every 15 s and finally it turns the display off (main program: sensors2.sh)
Based on https://www.waveshare.com/wiki/0.91inch_OLED_Module.
Please also go there to download Font.ttf which is needed here. Probably it is possible to get ttf fonts from windows and use it also here changing name in oled128x32.py but not tested.
In the file SSD1306.py please adjust too I2C bus number according to your configuration: -> i2c-2 -> SMBus(2)