How to detect a Raspberry Pi button press in Processing?

edited April 2017 in Raspberry PI

Hi folks!

Here’s my situation: I have a RPi 1 B+, successfully running Processing thanks to this resource:☺/

I’ve gotten Processing to recognize the Pi’s Serial Input thanks to this:

I’ve used Adafruit’s Retro Gaming Controls tutorial to connect buttons (I only need two, simple buttons) directly to the Pi:

Finally, I’ve connected a button and confirmed that the RPi is seeing the button press using this simple Python script from O’Reilly:

The remaining problem, then, is that Processing can’t see any button input.

As mentioned elsewhere, Gohai has brought up the idea of RPi support, including GPIO recognition -- which would be exactly what I need, too bad I can’t wait:

So, is the only way to do this NOW by using an Arduino to handle the buttons and pass that back to Processing? And if so, can someone point me in the right direction to do so?

Sorry for all the links; I’m not trying to promote them, I just thought it would help if people could see where I was coming from. THANK YOU!



Sign In or Register to comment.