Using IO Library with Processing.py

I’m trying to use Processing.py to read GPIO pins on a Raspberry Pi.
I haven’t been able to find any examples of IO library for Processing.py.
I’ve added the IO library, but can’t figure out right syntax to access the GPIO functions.
I’m getting this error.
NameError: global name ‘GPIO’ is not defined
Does anyone have experience using this library with Processing.py?

add_library('io')

def setup():
     GPIO.pinMode(4, GPIO.INPUT_PULLUP)
1 Like

I think you should open an issue at GitHub - jdf/Processing.py-Bugs: A home for all bugs and feature requests about Python Mode for the Processing Development Environment. asking JDF to add support to this library. There are some libraries that need under the hood effort to work with Python mode :frowning:

2 Likes

Thanks, I’ll do that.

1 Like

Looks like this issue has been previously addressed, but I need to use a imaged version of Raspberrian rather than installing Processing on my own.

GPIO Library does not load at raspberry pi 3 · Issue #189 · jdf/Processing.py-Bugs · GitHub

2 Likes