miniMO's Display Example demonstrates how to use miniMO with OLED SSD1306 I2C screens. The program reads inputs attached to I/O 03, shows the readings on the screen, and toggles the outputs ON or OFF, depending on the value (more details here).
SOURCE CODE
MANUAL
I/O
- 1&2: Outputs (ON or OFF)
- 3: Input
- 4: not used
SCREEN SETUP - HARDWARE
- Locate miniMO's programming header, under the LED light
- Note the vertical writing next to the pins, from bottom to top: GND, SCK, MO, MI, RST, VCC
- Connect the Screen's VCC to the header's VCC
- Connect the screen's GND to the header's GND
- Connect the screen's SCL to miniMO's MO
- Connect the screen's SDA to miniMO's SCK
- With the screen connected,
- Load a battery in miniMO's holder
- Connect all three pins of the Battery-External male header AT ONCE
- The easiest way to do this is to get a three pin female header and wire or solder its terminals together
SCREEN SETUP - SOFTWARE
- In oled.h , set the width, height, and orientation of your screen
OPERATION
- Knob: Adjust the readings according to the input. Range: 0 - 255
- If you'd prefer a wider range (0 to 1023), remove " >>2 " from line 79
- Click: Shows the text "PUSH" on screen while clicking
ACKNOWLEDGMENTS
This program adapts the SSD1306xLED library by Neven Boyanov, as described here.