MiniOLED Unit

MiniOLED UNIT is a 0.42-inch I2C interface OLED screen unit, it’s a 72*40, monochrome white display.

Support the following products:

MiniOLEDUnit

Micropython Example::

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

display.clear(0xffffff) # Clear screen

class MiniOLEDUnit

Constructors

class MiniOLEDUnit(port, address, freq)

Initialize the Unit MiniOLED

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

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

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

UIFLOW2:

init.svg

Methods