GPIO mode
#942
Replies: 1 comment
-
|
We currently don't have anything for this. Feel free to open an issue at https://github.com/pybricks/support for it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have discovered that in Spike Prime Python it is possible to control the pin 5 and 5 of the Ports using the following commands
**hub.port.A.mode(hub.port.MODE_GPIO)
a=hub.port.A.dig0
#set the pin 5 as an output pin (pin 6 is dig1) direction(0) sets an input pin
a.direction(1)
#set the pin value to high
a.value(1)**
Are there any plans to implement something similar in Pybricks?
Beta Was this translation helpful? Give feedback.
All reactions