Skip to content

HEBI (I/O) board getting feedback from analog/digital in python #133

Discussion options

You must be logged in to vote

To access IO pins for both feedback and command objects, you would use the following:

fbk = hebi.GroupFeedback(group.size)
a = fbk.io.a.get_int(1) # Get the int value on pin 1 bank a
b = fbk.io.e.get_int(1) # Get the int value on pin 1 bank e

To set them, you would simply do

cmd.io.a.set_int(1, 2) # Set pin 1 bank a to value of 2

For future reference, our Python API reference documentation is located at https://docs.hebi.us/docs/python/2.2.1/hebi/py_api.html (2.2.1 is currently the latest version)

I hope this helps!

Originally posted by daniel_wright on forums.hebi.us » Tue Oct 20, 2020 7:06 pm

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GogiPuttar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Python
Labels
question Questions, comments or problems
1 participant