We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1f002 commit ad3164cCopy full SHA for ad3164c
examples/simpletest.py
@@ -5,17 +5,14 @@
5
6
# Import all board pins.
7
from board import *
8
-# Use this import for ESP8266 and other boards with software I2C interfaces:
9
-import bitbangio as io
10
-# Or use this import for SAMD21 and boards with a native hardware I2C interace:
11
-#import nativeio as io
+import busio
12
13
# Import the SSD1306 module.
14
import adafruit_ssd1306
15
16
17
# Create the I2C interface.
18
-i2c = io.I2C(SCL, SDA)
+i2c = busio.I2C(SCL, SDA)
19
20
# Create the SSD1306 OLED class.
21
# The first two parameters are the pixel width and pixel height. Change these
0 commit comments