We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b21f89 commit 4639d86Copy full SHA for 4639d86
Github_Tutorial.ino
@@ -2,11 +2,11 @@
2
12-29-2012
3
Spark Fun Electronics
4
Nathan Seidle
5
-
+
6
This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
7
8
This is bad code but is used to demonstrate how to use repositories on github.
9
10
If we have an analog sensor such as a trimpot or flex sensor on A0, this code would attempt
11
to read it and output it to the terminal at 9600bps.
12
*/
@@ -19,14 +19,13 @@ void setup()
19
pinMode(A0, INPUT);
20
}
21
22
-void loop()
+void loop()
23
{
24
- byte myValue = 0;
+ int myValue = 0;
25
myValue = analogRead(A0);
26
27
Serial.print("The value is: ");
28
Serial.println(myValue);
29
30
delay(250);
31
32
0 commit comments