Skip to content

Commit c762745

Browse files
authored
Update README.txt
1 parent 8a34e82 commit c762745

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ There are a couple of canned actions already in the module:
111111
block_right
112112
left_and_blink
113113

114+
An Example Script
115+
=================
116+
117+
Using this in a python file couldn't be easier. For example you could put this in demo_arm.py:
118+
119+
import usb_arm
120+
arm = usb_arm.Arm()
121+
actions = [[usb_arm.ElbowDown, 0.5], [usb_arm.GripsClose, 0.5], [usb_arm.ElbowUp]]
122+
arm.doActions(actions)
123+
124+
You can then run this with python3 demo_arm.py.
125+
114126
Troubleshooting
115127
===============
116128

0 commit comments

Comments
 (0)