Skip to content

Commit 4639d86

Browse files
committed
Arduino Code
Changed byte to int on line 24
1 parent 5b21f89 commit 4639d86

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy