Skip to content

Commit

Permalink
Update i2c examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven committed Dec 16, 2021
1 parent 4f10866 commit f439df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions i2c_oled.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f439df0

Please sign in to comment.