- Posts: 1108
- Thank you received: 3
Read HAL pin in Python
2 years 1 week ago #312366
by JT
Read HAL pin in Python was created by JT
Is it possible to read a HAL pin in Python? I can make and set HAL pins of type HAL_OUT and make a S32 HAL_IN pin but I'm not figuring out how to read the value of that pin. I can also setp in the post gui file and change it's value.
JT
JT
Please Log in to join the conversation.
2 years 1 week ago #312368
by JT
Replied by JT on topic Read HAL pin in Python
Actually I think I've solved it and will update this when I've proven it out. But for now it looks like
JT
Code:
import hal
hal.get_value('some-pin-name')
JT
Please Log in to join the conversation.
Time to create page: 0.401 seconds
