OLED Library for 3+ displays¶
ss_oled (Small Simple OLED library)¶
Note
ss_oled library works on a board connected in I2C network as Secondary. For Example, Master board just send “1” by wire.write, each Secandary board can controll OLED by ss_oled. No need to controll OLED from Master. Secondary will do.
Note
ss_oled uses 2 GPOI pins for one OLED, can use 2 OLEDs or more. OLED normally has 1 or 2 I2C address. but different contents for each OLED more than 3!!
- Supports any number of simultaneous displays of any type (mix and match)
- Optionally detect the display address and type (I2C only)
- Supports 72x40, 96x16, 64x32, 128x32, 128x64, 128x128 (SH1107) and 132x64 (SH1106) display sizes
- Drive displays from I2C, SPI or any 2 GPIO pins (virtual I2C)
- 5 sizes of fixed fonts (6x8, 8x8, 12x16, 16x16, 16x32)
- a function to load a Windows BMP file
- Light enough to run on an ATtiny85 (8KB MCU)
- This code depends on the BitBang_I2C library
Example
Master
1 2 3 4 5 |
|
Secandary
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
Last update: September 20, 2021