diff --git a/Github_Tutorial.ino b/Github_Tutorial.ino index 80143fc..3896535 100644 --- a/Github_Tutorial.ino +++ b/Github_Tutorial.ino @@ -2,11 +2,11 @@ 12-29-2012 Spark Fun Electronics Nathan Seidle - + This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license). - + This is bad code but is used to demonstrate how to use repositories on github. - + If we have an analog sensor such as a trimpot or flex sensor on A0, this code would attempt to read it and output it to the terminal at 9600bps. */ @@ -19,14 +19,13 @@ void setup() pinMode(A0, INPUT); } -void loop() +void loop() { - byte myValue = 0; + int myValue = 0; myValue = analogRead(A0); - + Serial.print("The value is: "); Serial.println(myValue); delay(250); } -
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: