From f439df0410858aa10a2ce010f78ec90048803af2 Mon Sep 17 00:00:00 2001 From: Paul Craven Date: Thu, 16 Dec 2021 15:29:37 -0600 Subject: [PATCH] Update i2c examples. --- i2c_oled.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i2c_oled.py b/i2c_oled.py index 2e8a87c..7fe9722 100644 --- a/i2c_oled.py +++ b/i2c_oled.py @@ -25,12 +25,12 @@ def setup_oled(): - # Define the Reset Pin - oled_reset = digitalio.DigitalInOut(board.D4) - # Set up i2c i2c = board.I2C() + # Define the Reset Pin + oled_reset = digitalio.DigitalInOut(board.D4) + # Connect to device oled = adafruit_ssd1306.SSD1306_I2C(OLED_WIDTH, OLED_HEIGHT,