Skip to content

Commit 232001e

Browse files
authored
Merge pull request #10 from fourstix/b_new_build
Fixed code example in Readme
2 parents 25ca8c7 + f416ab3 commit 232001e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,9 @@ Usage Example
145145
146146
# import the CircuitPython board and busio libraries
147147
import board
148-
import busio
149148
150149
# Create bus object using the board's I2C port
151-
i2c = busio.I2C(board.SCL, board.SDA)
150+
i2c = board.I2C()
152151
153152
relay = QwiicRelay(i2c) # default address is 0x18
154153

0 commit comments

Comments
 (0)