import time
from machine import SoftI2C,Pin
from ssd1306 import SSD1306_I2C
i2c = SoftI2C(sda=Pin(14), scl=Pin(12))
oled = SSD1306_I2C(128, 64, i2c, addr=0x3c)
Human=Pin(2,Pin.PULL_UP)
if Human.value()== 0:
for i in range(10):
oled.fill(0)
oled.text('dingzhen', 0,0)
oled.text('ruikewudai',0,30)
oled.text("1", 0, 40)
oled.show()
time.sleep_ms(500)
oled.fill(0)
oled.text('wangyuan', 0,0)
oled.text('furongwang',0,30)
oled.text("2", 0, 40)
oled.show()
time.sleep_ms(500)
Human.irq(fun,Pin.IRQ_RISING)