status,gpio,<pin number> responds a "?" if the pin is not declared in the devices / tasks.
No problem doing so but this ends up "eating up" one the only 12 available tasks.
Thanx
-D
Get GPIO Status without declaring it as input under devices ?
Moderators: grovkillen, Stuntteam, TD-er
Re: Get GPIO Status without declaring it as input under devices ?
To answer my own Q.
status,gpio,<pin number> returns the status even if it is not declared in the devices as input.
It only returns "?" if the gpio has not been triggered since boot (still in float state ?)
If you call it once either high or low it will then return it's status.
-D
status,gpio,<pin number> returns the status even if it is not declared in the devices as input.
It only returns "?" if the gpio has not been triggered since boot (still in float state ?)
If you call it once either high or low it will then return it's status.
-D
-D
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 150 guests