Set Raspberry Pi pin [value] to [value]

Last modified by Stephan Robinig on 2021/02/22 09:48

Sets the specified Pin to the specified value. For this brick only the values 0 (false / low) and 1 (true / high) work, otherwise the brick has no effect.

Example

This script checks the touch position on the screen. If the lower half (red) or the upper half (yellow) is touched, the corresponding LED is toggled.

Result

null4.png