Skip to content

Instantly share code, notes, and snippets.

@izzuddin91
Created April 10, 2016 10:06
Show Gist options
  • Select an option

  • Save izzuddin91/4ed1268bdf373af01ee5a32f47484912 to your computer and use it in GitHub Desktop.

Select an option

Save izzuddin91/4ed1268bdf373af01ee5a32f47484912 to your computer and use it in GitHub Desktop.
int val = 0;
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop() {
val = analogRead(0);
Serial.println(val);
delay(val);
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment