#creado por juan aguirre
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import framebuf
import time
ancho = 128
alto = 64
i2c = I2C(0, scl=Pin(19), sda=Pin(22))
oled = SSD1306_I2C(ancho, alto, i2c)
print(i2c.scan())
def buscar_icon(ruta):
dibujo = open(ruta, "rb")
dibujo.readline()
xy = dibujo.readline
x = int(xy.split()[0])
y = int(xy.split()[1])
icon = bytearray(dibujo.read())
dibujo.close()
return framebuf.FrameBuffer(icono, x, y, framebuf.MONO_HLSB)
oled.blit(buscar_icono("areandina/cisco.pbm"), 0, 0)