Can you give me an idea on how to check the statuses of specific GPIO pins if it is HIGH or LOW? My project is all about checking the statuses of GPIO pins (6 GPIO pins). I want to check all of the pins at once and if all pins are high the want to capture a photo and upload on website. I use scripting in my coding.
Returns the levels of the bank 1 GPIO (GPIO 0-31).
The returned 32 bit integer has a bit set if the corresponding GPIO is high. GPIO n has bit value (1 << n).