Merge pull request #15 from adafruit/stemma_i2c

Added commented out board.STEMMA_I2C with explanation
This commit is contained in:
Eva Herrada 2022-11-21 16:15:21 -05:00 committed by GitHub
commit 8b2c9a80cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.