#JESSI MEJIA
from machine import Pin, I2C
import ssd1306
from utime import sleep
# ESP32 Pin assignment
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
oled_width = 128
oled_height = 64
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)
led = Pin(14, Pin.OUT)
btn = Pin(35, Pin.IN)
oled.text('I. S. Automa.', 10, 0)
oled.show()
sleep (1)
oled.text('Elaborado por:', 10, 20)
oled.show()
sleep (1)
oled.text('Alumno', 10, 40)
oled.show()
sleep (1)
oled.fill(0)
oled.show()
while True:
oled.text('Lectura Digital', 5, 10)
oled.show()
if btn() == 0:
else:
led.off()
print('led apagado')