"""Part 7 and 8: text on the screen, flipped for the upside-down screen of part 8. Needs ssd1306.py."""

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C

screen = SSD1306_I2C(128, 64, I2C(1, sda=Pin(26), scl=Pin(27)))
screen.write_cmd(0xA0)
screen.write_cmd(0xC0)
screen.fill(0)
screen.text("Warden", 0, 0)
screen.text("Show your badge", 0, 24)
screen.show()
