Skip to content

Commit 2f2764c

Browse files
committed
fixed docstring issue blocking build
1 parent 8a32e2a commit 2f2764c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

sparkfun_qwiicjoystick.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,20 @@
7777
# class
7878
class Sparkfun_QwiicJoystick:
7979
"""CircuitPython class for the Sparkfun QwiicJoystick
80-
Usage:
81-
# import the CircuitPython board and busio libraries
82-
import board
83-
import busio
80+
Usage:
8481
85-
# Create bus object using the board's I2C port
86-
i2c = busio.I2C(board.SCL, board.SDA)
82+
# import the CircuitPython board and busio libraries
8783
88-
joystick = QwiicJoystick(i2c) # default address is 0x20
89-
# use QwiicJoystick(i2c, address) for a different address
90-
# joystick = QwiicJoystick(i2c, 0x21)"""
84+
import board
85+
import busio
86+
87+
# Create bus object using the board's I2C port
88+
i2c = busio.I2C(board.SCL, board.SDA)
89+
90+
joystick = QwiicJoystick(i2c) # default address is 0x20
91+
92+
# use QwiicJoystick(i2c, address) for a different address
93+
# joystick = QwiicJoystick(i2c, 0x21)"""
9194

9295

9396
def __init__(self, i2c, address=QWIIC_JOYSTICK_ADDR, debug=False):

0 commit comments

Comments
 (0)