This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Orginal code for microbit http://multiwingspan.co.uk/micro.php?page=phatscroll | |
this works with m5stickC (esp32 Pico) | |
from machine import I2C, Pin | |
from ScrollP import * | |
i2c = I2C(scl=Pin(32), sda=Pin(33)) | |
sp = ScrollP(i2c) | |
sp.set_pixel(0,0,1) | |
sp.show() | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from machine import Pin, SPI, ADC | |
import ssd1306 | |
import utime | |
spi = SPI(0,100_000,polarity=1,phase=1) | |
dc = Pin(4, Pin.OUT) | |
res = Pin(3, Pin.OUT) | |
cs = Pin(5, Pin.OUT) | |
oled = ssd1306.SSD1306_SPI(128,64,spi,dc,res,cs,False) |