Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from machine import Pin, ADC
- >>> import ssd1306
- >>> from time import sleep
- >>> display = ssd1306.SSD1306_I2C(128, 64, i2c)
- >>> pot = ADC(0)
- >>>
- >>> while True:
- ... pot_value = pot.read()
- ... display.fill(0)
- ... display.text(str(pot_value), 0, 0)
- ... display.show()
- ... sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement