@@ -10,20 +10,27 @@ For example, the [Grove - OLED Display 1.12"](http://wiki.seeed.cc/Grove-OLED_Di
1010
1111Copy the file to your device, using ampy, webrepl or compiling and deploying. eg.
1212
13- ```
13+ ``` bash
1414$ ampy put ssd1327.py
1515```
1616
1717** Hello World**
1818
1919``` python
2020import ssd1327
21- from machine import I2C , Pin
21+ from machine import SoftI2C, Pin
22+
23+ i2c = SoftI2C(sda = Pin(21 ), scl = Pin(22 )) # TinyPICO
24+ # i2c = SoftI2C(sda=Pin(0), scl=Pin(1)) # Raspberry Pi Pico
25+ # i2c = SoftI2C(sda=Pin(4), scl=Pin(5)) # WeMos D1 Mini
2226
23- i2c = I2C(sda = Pin(4 ), scl = Pin(5 ))
24- # display = ssd1327.SSD1327_I2C(96, 96, i2c, 60)
2527display = ssd1327.SEEED_OLED_96X96(i2c)
28+ # display = ssd1327.SSD1327_I2C(128, 128, i2c) # WaveShare, Zio Qwiic
29+
30+ display.text(' Hello World' , 0 , 0 , 255 )
31+ display.show()
2632
33+ display.fill(0 )
2734for y in range (0 ,12 ):
2835 display.text(' Hello World' , 0 , y * 8 , 15 - y)
2936display.show()
@@ -33,12 +40,29 @@ See [ssd1327_examples.py](ssd1327_examples.py) for more.
3340
3441## Parts
3542
36- * [ WeMos D1 Mini] ( https://www.aliexpress.com/store/product/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/1331105_32529101036.html ) $4.00 USD
37- * [ Grove OLED Display 1.12"] ( https://www.seeedstudio.com/Grove-OLED-Display-1.12%22-p-824.html ) $14.90 USD
38- * [ Grove Male Jumper Cable] ( https://www.seeedstudio.com/Grove-4-pin-Male-Jumper-to-Grove-4-pin-Conversion-Cable-%285-PCs-per-Pack%29-p-1565.html ) $2.90 USD
43+ * [ Grove OLED Display 1.12"] ( https://www.seeedstudio.com/Grove-OLED-Display-1-12.html ) $14.90 USD
44+ * [ Zio Qwiic OLED Display (1.5inch, 128x128)] ( https://www.sparkfun.com/products/15890 ) $19.95 USD
45+ * [ TinyPICO] ( https://www.tinypico.com/ ) $20.00 USD
46+ * [ Raspberry Pi Pico] ( https://core-electronics.com.au/raspberry-pi-pico.html ) $5.75 AUD
47+ * [ WeMos D1 Mini] ( https://www.aliexpress.com/item/32529101036.html ) $3.50 USD
48+ * [ Grove Male Jumper Cable] ( https://www.seeedstudio.com/Grove-4-pin-Male-Jumper-to-Grove-4-pin-Conversion-Cable-5-PCs-per-Pack.html ) $2.90 USD
3949
4050## Connections
4151
52+ TinyPICO ESP32 | Grove OLED
53+ -------------- | ----------
54+ GPIO22 (SCL) | SCL
55+ GPIO21 (SDA) | SDA
56+ 3V3 | VCC
57+ GND | GND
58+
59+ Raspberry Pi Pico | Grove OLED
60+ ----------------- | ----------
61+ GPIO1 (I2C0_SCL) | SCL
62+ GPIO0 (I2C0_SDA) | SDA
63+ 3V3 | VCC
64+ GND | GND
65+
4266WeMos D1 Mini | Grove OLED
4367------------- | ----------
4468D1 (GPIO5) | SCL
@@ -48,8 +72,10 @@ G | GND
4872
4973## Links
5074
51- * [ WeMos D1 Mini] ( https://wiki.wemos.cc/products:d1:d1_mini )
75+ * [ TinyPICO Getting Started] ( https://www.tinypico.com/gettingstarted )
76+ * [ WeMos D1 Mini] ( https://www.wemos.cc/en/latest/d1/d1_mini.html )
5277* [ micropython.org] ( http://micropython.org )
78+ * [ micropython docs] ( http://docs.micropython.org/en/latest/ )
5379* [ Adafruit Ampy] ( https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy )
5480
5581## License
0 commit comments