Added commented out board.STEMMA_I2C with explanation
This commit is contained in:
parent
e3aa0c3660
commit
cb9a0d86f2
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ oled_dc = digitalio.DigitalInOut(board.D6)
|
|||
oled = adafruit_ssd1305.SSD1305_SPI(WIDTH, HEIGHT, spi, oled_dc, oled_reset, oled_cs)
|
||||
|
||||
# Use for I2C.
|
||||
# i2c = board.I2C()
|
||||
# i2c = board.I2C() # uses board.SCL and board.SDA
|
||||
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
|
||||
# oled = adafruit_ssd1305.SSD1305_I2C(WIDTH, HEIGHT, i2c, addr=0x3c, reset=oled_reset)
|
||||
|
||||
# Clear display.
|
||||
|
|
|
|||
Loading…
Reference in a new issue