When Raspberry Pi pin [option] changes to [option]

Last modified by Stephan Robinig on 2021/02/19 16:52

Waits until the specified Pin changes its state to the specified value and executes the script. High corresponds to the value 1 and low to the value 0.


This script sets pin 16 to high (1). If the button is pressed electricity can flow and the led lights up.
At the same time the object in the app disappears, because pin 15 recieves electricity and therefor also is set to high (1).