This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SignalK and SSD1306 OLED
#2
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)


Attached Files Image(s)
       

.zip   oled2.zip (Size: 3.06 KB / Downloads: 35)
Reply


Messages In This Thread
SignalK and SSD1306 OLED - by DroZDi - 2024-01-10, 10:34 PM
RE: SignalK and SSD1306 OLED - by DroZDi - 2024-01-12, 12:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)