Files
mixly3/boards/default/micropython/build/lib/oled128x64.py
2024-11-17 20:14:49 +08:00

15 lines
467 B
Python

"""
OLED Displays
Micropython library for the SSD1106_I2C OLED Displays
=======================================================
@dahanzimin From the Mixly Team
"""
from ssd1106 import SSD1106_I2C
class OLED(SSD1106_I2C):
"""A single matrix."""
def __init__(self, i2c, width=128, height=64, address=0x3c, font_address=0x700000, types=0):
super().__init__(width, height, i2c, address, l_offset=0 if types == 0 else -2)
self.font(font_address)