from machine import Pin, I2C
import ssd1306
import framebuf
# 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)
with open(".pbm", "rb") as f: #import an image and assign f as variable
f.readline()#number
f.readline()#creator
f.readline()#dimensions
data = bytearray(f.read())
oled.show()