更新MPY一些库优化,及增加微波雷达,语音播放库

This commit is contained in:
dahanzimin
2024-11-13 15:29:50 +08:00
parent b6cfd8a5b0
commit bbaa6587c5
7 changed files with 343 additions and 94 deletions

View File

@@ -3,15 +3,12 @@ OLED Displays
Micropython library for the SSD1106_I2C OLED Displays
=======================================================
#Preliminary composition 20230412
dahanzimin From the Mixly Team
@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):
super().__init__(width, height, i2c, address)
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)