Optional OLED Display (DS1101 and DS1102)

An isometric render of a DS1101/2 OLED display.

The DS1101 and DS1102 can be optionally outfitted with a 96x32 pixel monochrome OLED display (letter "D" in the model numbering scheme).

A warning note icon.As with all displays of this type, the DS1101/2's OLED display has a limited life span. There will be a decrease in the display brightness after ~10,000 hours of operation. To prolong display life, use the lcd.lock method of the lcd. object to turn the display off whenever possible. The display image is preserved when the display is "locked."

The following GPIO lines are used to control the display:

GPIO line

Function

PL_IO_NUM_36_OLED_RST

RST

PL_IO_NUM_35_OLED_DC

DC

PL_IO_NUM_34_OLED_WR

WR

PL_IO_NUM_33_OLED_RD

RD

PL_IO_NUM_32_OLED_CS

CS

PL_IO_PORT_NUM_0

data bus

The display is controlled by the lcd. object. Proper I/O line mapping is required for the display to work, and it takes a single line of code to set this right:

Tibbo BASIC
lcd.iomapping="36,35,34,33,32,0"

Additionally, the following lines must be enabled (io.enabled = 1 — YES):


The PL_IO_PORT_NUM_0 port doesn't need to be enabled. It is bidirectional and the lcd. object will control it internally.