Controlling individual pins #74
-
Is there a way to turn individual pins on/off? I thought maybe this would be it: |
Beta Was this translation helpful? Give feedback.
Answered by
mattjlewis
Jul 2, 2021
Replies: 1 comment 4 replies
-
Create an instance of |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Seggan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create an instance of
com.diozero.api.DigitalOutputDevice
(Javadoc). You then have access toon()
/off()
/toggle()
/setValue(boolean)
methods.