User Tools

Site Tools



OLED display

The new WiRocS code has integrated OLED (I2C) capability that is largely compatible with the RocDisplay formatting.
Example Schedule using Jan's test workspace for HaarlemThe OLED is not as straight in the frame as I would like

To use the feature, a "standard" 0.96" 128*64 (or 128*32) 4 pin I2C OLED display is connected to the WiRocS node.
When the node starts it scans its I2C bus(s) to see if any OLED displays are present (it expects Addresses 60d and/or 61d)
IF OLEDs are found, the code will display messages and clocks on the display(s).
If there are no OLEDS present, the I2C bus pins are released back so they can be used general purpose I/O use.

See Hardware description

Note: The picture shows the OLED connected to the Secondary bus, using D1 and D2 On the ESP8266 version, I prefer to use the board with the NodeMCU Motor Shield, as it provides easy pin locations for the servos. The "primary" I2C bus uses uses D3 and D4, which (when the board is on the Motor shield) are the 'Motor direction' pins. Pins D1 and D2 are used for the "Secondary" I2C bus, and remain connected to the 'Motor PWM' pins. This means that if only the "primary" I2C bus is used, the Motor Shield (PWM) outputs can still be used as dimmable filament light drives (because the "direction" (being changed all the time as these pins are the OLED data) does not matter to a filament light!).

The ESP32 version uses extra pins for the Main I2C bus so none are "lost" if only one I2C bus is needed.

When no Roc-Display Messages are sent to the displays, they default to show the Rocrail Power Status, RocRail Time, and WiFi Signal Strength.

Information messages and RocDisplay Compatibility

The OLED will display messages to show how the node is progressing during boot. This can be helpful in diagnosing any issues. The code includes a simplified text parser that can accept RocDisplay messages and display them as a station announcements. A separate page Roc Display Compatible Hardware documents how the parsing in this "Lite version" of the protocol works and goes into more detail about the displays.

Please also read Selecting OLED Types

Automatic Display from Schedules

users/dagnall53/oled.txt · Last modified: 2019/10/07 19:20 by dagnall53