from machine import Pin, I2C
from time import sleep
import ssd1306
# ESP32 Pin assignment
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
led = Pin(17, Pin.OUT)
led1 = Pin(5, Pin.OUT)
led2 = Pin(18, Pin.OUT)
oled_width = 128
oled_height = 64
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)
oled.text('SELAMAT ', 10, 10)
oled.text('HARI RAYA!', 10, 25)
oled.show()
while True:
led.on()
led.off()
sleep(0.5)
led1.on()
led1.off()
sleep(0.5)
led2.on()
led2.off()
sleep(0.5)