Servo/PWM Pi HAT, how to convert the python code into Processing code ?

edited June 2016 in Raspberry PI

Hello, I bought the Servo/PWM Pi Hat for my RPi last year. And it works great. I had originally practiced with programming in Python and made some good progress. I spent some time then learning more about python and wrote some more code using their gtk+ libraries to build a gui window using the spin buttons to control the pwm value

I see a tremendous amount of libraries within Processing to let me do the same thing. So I'm looking forward to practice with this and code some examples for this.

But I'm not sure how yet to go about converting the python test code they use into Processing code. There are several lines of code in there which I'm not familiar how it can be done using Processing https://github.com/adafruit/Adafruit_Python_PCA9685/blob/master/examples/simpletest.py

I guess it's safe to say that a library has to be created first. Just as I see with the python library that is used by Adafruit. So this would have to be ported as well over to Processing. https://github.com/adafruit/Adafruit_Python_PCA9685/blob/master/Adafruit_PCA9685/PCA9685.py

Has somebody tried programming this using Processing already ?

Sign In or Register to comment.