from machine import Pin,PWM, SoftI2C
from ssd1306 import SSD1306_I2C
import time
#定义I2C对象
i2c = SoftI2C(sda = Pin(27),scl = Pin(14))
OLED = SSD1306_I2C(128,64, i2c, addr = 0x3c)
while 1:
Beep = PWM(Pin(2),freq = 1, duty = 128)
time.sleep(1)
OLED.fill(0)
OLED.text("1", 64 , 32)
OLED.show()