Sep-23-2020, 08:06 AM
The while loop detects the GPIO event-changes when a button is pressed.
What stops you from calling a function outside the while loop?
while ...
if GPIO.event_detected(16):
do_something():
Paul
What stops you from calling a function outside the while loop?
while ...
if GPIO.event_detected(16):
do_something():
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.