This file contains hidden or 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
| ##################################################################### | |
| # LICENSE: | |
| # Everyone is permitted to copy and distribute verbatim or modified | |
| # copies of this license document, and changing it is allowed as long | |
| # as the name is changed. | |
| # | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| # | |
| # 0. You just DO WHAT THE FUCK YOU WANT TO. |
This file contains hidden or 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 hidden or 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) |