fergon61
Posts: 1
Joined: Fri Jan 11, 2019 7:16 pm

trouble with gpiozero

Mon Dec 09, 2019 8:22 pm

Good everyone, using gpiozero how can I know the current status of a pin configured as LED, is there any function, or do I have to take it in a list for example?

From already thank you very much

Fer

User avatar
paddyg
Posts: 2464
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: trouble with gpiozero

Tue Dec 10, 2019 11:43 pm

https://gpiozero.readthedocs.io/en/stab ... t.html#led i.e. my_led.is_lit will be a boolean value (it is a function but it's hidden behind a decorator so that it behaves like a property (all things to google if they're not familiar))
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

Return to “Python”