For starters, I am new to this. I made this a while back by linking arduino and processing. and now I'm not sure what my codes do exactly. can someone help me by giving some comments on my code?
this is my arduino code;
#include <Servo.h>
int servoPin = 9;
int ledPin1 = 12;
int counter = 0;
int ServoPosition = 0;
int randNumber;
Servo ServoOne;
bool hasbeensend = false;
I made this a while back by linking arduino and processing. and now I'm not sure what my codes do exactly. can someone help me by giving some comments on my code?
Have I got this right ?
You "made" that code but you don't know what it does.
KikiKate:
yeah, i made it a while back and i am pretty new at this. so i did not work with it for some time and now i am not sure what everything does
Then see this as a lesson why to add comments to your program
But now, just go through it line by line and check what to program does and why. That would be the same we would need to do At least your variable names seem to be kind of logical.