from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
# ESP32 Pin assignment
i2c = I2C(0, scl=Pin(18, pull=Pin.PULL_UP), sda=Pin(19, pull=Pin.PULL_UP))
oled_width = 128
oled_height = 64
oled = SSD1306_I2C(oled_width, oled_height, i2c)
oled.fill(0)
oled.rect(0, 0, 127, 63, 1)
oled.text('Programming the', 5, 12, 1)
oled.text('ESP32', 5, 22, 1)
oled.text('by', 5, 32, 1)
oled.text('Simon Monk', 5, 42, 1)
oled.show()