from machine import Pin, I2C
import ssd1306
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
oled = ssd1306.SSD1306_I2C(128, 64, i2c)
oled.fill(0)
CELL_W = 7
CELL_H = 4
fish = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0],
[0,0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0],
[0,0,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0],
[0,0,0,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0],
[0,0,0,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0],
[0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0],
[0,0,0,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0],
[0,0,1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0],
[0,0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
]
for y in range(16):
for x in range(18):
if fish[y][x]:
oled.fill_rect(x*CELL_W, y*CELL_H, CELL_W, CELL_H, 1)
oled.show()