Skip to content

Commit 882b4cb

Browse files
authored
updating example in readme
1 parent b2cee24 commit 882b4cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Usage Example
105105
while True:
106106
left_x, left_y = ctrl_pad.joystick_l
107107
right_x, right_y = ctrl_pad.joystick_r
108-
left_pressure = ctrl_pad.l_shoulder
109-
right_pressure = ctrl_pad.r_shoulder
108+
left_pressure = ctrl_pad.l_shoulder.LEFT_FORCE
109+
right_pressure = ctrl_pad.r_shoulder.RIGHT_FORCE
110110
print("joystick_l = {},{}".format(left_x, left_y))
111111
print("joystick_r = {},{}".format(right_X, left_y))
112112
print("left shoulder = {}".format(left_pressure))
@@ -116,7 +116,7 @@ Usage Example
116116
if ctrl_pad.buttons.B:
117117
print("button B")
118118
if ctrl_pad.d_pad.UP:
119-
print("button Up")
119+
print("d_pad Up")
120120
time.sleep(0.5)
121121
122122
Documentation

0 commit comments

Comments
 (0)