Optional OLED Display (DS1101 and DS1102)

Top  Previous  Next

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

 

note_warning-wt

As 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 ~10000 hours of operation. To prolong display life, use the lcd.lock method of the .lcd object to turn the display off whenever possible. 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 see ("TIDE and Tibbo BASIC Manual"). Proper I/O line mapping is required for the display to work, and it takes a single line of code to set this right:

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

 

Additonally, the following lines must be enabled (io.enabled= 1- YES):

PL_IO_NUM_36_OLED_RST

PL_IO_NUM_35_OLED_DC

PL_IO_NUM_34_OLED_WR

PL_IO_NUM_33_OLED_RD

PL_IO_NUM_32_OLED_CS

 

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

 

ds110x_display