Switching between sketches / displays on gpio toggle

I'm trying to figure out the easiest way to switch between displays on a gpio input.

I plan on having a constant display 90% of the time, but on a GPIO toggle I want the raspi camera to display/stream. Is this possible?

Answers

  • Answer ✓

    If I understand you correctly, than this should be possible. In your draw loop, you could query the value of a GPIO pin with GPIO.digitalRead(), and based on its value you could either display an image from the camera using the GL Video library, or you show your static display. Makes sense?

Sign In or Register to comment.