{"action":"opened","issue":{"url":"https://api.github.com/repos/processing/processing/issues/4549","repository_url":"https://api.github.com/repos/processing/processing","labels_url":"https://api.github.com/repos/processing/processing/issues/4549/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/4549/comments","events_url":"https://api.github.com/repos/processing/processing/issues/4549/events","html_url":"https://github.com/processing/processing/issues/4549","id":162563082,"number":4549,"title":"Would a library for the Servo-PWM Hat be available in Processing ?","user":{"login":"Ragooman","id":6438750,"avatar_url":"https://avatars.githubusercontent.com/u/6438750?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragooman","html_url":"https://github.com/Ragooman","followers_url":"https://api.github.com/users/Ragooman/followers","following_url":"https://api.github.com/users/Ragooman/following{/other_user}","gists_url":"https://api.github.com/users/Ragooman/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragooman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragooman/subscriptions","organizations_url":"https://api.github.com/users/Ragooman/orgs","repos_url":"https://api.github.com/users/Ragooman/repos","events_url":"https://api.github.com/users/Ragooman/events{/privacy}","received_events_url":"https://api.github.com/users/Ragooman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T22:29:21Z","updated_at":"2016-06-27T22:29:21Z","closed_at":null,"body":"Hello,\r\n\r\nI 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 to drive the Servo-PWM Hat.\r\n\r\n![](https://forum.processing.org/two/uploads/imageupload/916/N5QQA7DFMTPJ.png)\r\n\r\nI 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 more examples. I started using some of the libraries already contained in the examples for Processing to build something similar to this.\r\n\r\nBut 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\r\n\r\nI 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\r\n\r\nHas somebody tried programming this using Processing already ?"}}
{"actor":{"display_login":"Ragooman"}}