Skip to content

Commit 393f405

Browse files
Update Github_Tutorial.ino
1 parent 5b21f89 commit 393f405

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎Github_Tutorial.ino‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
12-29-2012
33
Spark Fun Electronics
44
Nathan Seidle
5-
5+
66
This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
7-
7+
88
This is bad code but is used to demonstrate how to use repositories on github.
9-
9+
1010
If we have an analog sensor such as a trimpot or flex sensor on A0, this code would attempt
1111
to read it and output it to the terminal at 9600bps.
1212
*/
@@ -19,14 +19,13 @@ void setup()
1919
pinMode(A0, INPUT);
2020
}
2121

22-
void loop()
22+
void loop()
2323
{
24-
byte myValue = 0;
24+
int myValue = 0;
2525
myValue = analogRead(A0);
26-
26+
2727
Serial.print("The value is: ");
2828
Serial.println(myValue);
2929

3030
delay(250);
3131
}
32-

0 commit comments

Comments
 (0)