diff options
author | Mike Causer <mcauser@gmail.com> | 2021-04-30 14:00:13 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-14 12:04:21 +1000 |
commit | 97fee47716627b06bfb11dbcc43f6a000d6e7257 (patch) | |
tree | d4ecbe659fe8f364ca0e3007f175899755b77b16 /docs/esp8266/quickref.rst | |
parent | d43ed087aee3444a96da059dfdb532c810f7656c (diff) |
docs/esp8266: Add SSD1306 to quickref and tutorial.
Diffstat (limited to 'docs/esp8266/quickref.rst')
-rw-r--r-- | docs/esp8266/quickref.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index c4fa779c2..bc648a348 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -424,6 +424,20 @@ The DHT driver is implemented in software and works on all pins:: d.temperature() # eg. 23.6 (°C) d.humidity() # eg. 41.3 (% RH) +SSD1306 driver +-------------- + +Driver for SSD1306 monochrome OLED displays. See tutorial :ref:`ssd1306`. :: + + from machine import Pin, I2C + import ssd1306 + + i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) + display = ssd1306.SSD1306_I2C(128, 64, i2c) + + display.text('Hello World', 0, 0, 1) + display.show() + WebREPL (web browser interactive prompt) ---------------------------------------- |