GlassUnit

Unit Glass is a 1.51-inch transparent OLED expansion screen unit. It adopts STM32+SSD1309 driver scheme,resolution is 128*64, monochrome display, transparent area is 128*56.

Support the following products:

GlassUnit

Micropython Example::

from unit import GlassUnit from hardware import * i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000) display = GlassUnit(i2c).display

display.clear(0xffffff) # Clear screen

class GlassUnit

Constructors

class GlassUnit(port, address, freq)

Initialize the Unit Glass

Parameters:
  • port (tuple) – The port to which the Unit Glass is connected. port[0]: scl pin, port[1]: sda pin.

  • address (int|list|tuple) – I2C address of the Unit Glass, default is 0x3D.

  • freq (int) – I2C frequency of the Unit Glass.

UIFLOW2:

init.svg

Methods