generate Arduino sketch from Processing

I would like to share my method of generating an Arduino sketch from Processing. Basically it's about creating a .ino document line by line (using PrintWriter). The great thing about this method is you can create variables that change within the static Arduino code.

In my example I use the Arduino blink sketch with "delay" as a variable. So the basic sketch is just put in as written from the Processing code to the Arduino sketch but depending on which button you press in the app the amount of delay between blinks is changed (and saved in the .ino file)

I would love to hear if anyone else has been generating Arduino sketch from Processing, and if so, how you went about it. Of course the ideal would be to upload directly from Processing sketch to my Uno but hey this is the next best thing.

code is over here: [https://github.com/tomjuggler/ArduinoCodeGeneratorBlinkExample](github repository)

Sign In or Register to comment.