from machine import Pin, I2C
import time
from ssd1306 import SSD1306_I2C

ancho = 128
alto = 64
boton=Pin(13, Pin.IN, Pin.PULL_UP)
i2c = I2C(0, scl=Pin(22), sda=Pin(23))
oled = SSD1306_I2C(ancho, alto, i2c)

while True:
    if boton.value() == True:
        oled.fill(0)
        oled.text("-"*16,0,0)
        oled.text("-Guts",10,10)
        oled.text("-Griffith",10, 30)
        oled.text("-No se",10, 50)
        oled.text("-"*16,0,60)
        oled.show()
    else:
        oled.fill(0)
        oled.text("*"*16,0,0)
        oled.text("-Obito",10,10)
        oled.text("-Yuhiro",10, 30)
        oled.text("-Itachi",10, 50)
        oled.text("/"*16,0,60)
        oled.show()


  















  
Loading
ssd1306