Skip to content

Commit 98134e4

Browse files
Update Github_Tutorial.ino
Practice Git..Changed datatype byte to int, more approprate.
1 parent 5b21f89 commit 98134e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Github_Tutorial.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
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.
12+
13+
Cool tutorial
1214
*/
1315

1416
void setup()
@@ -21,12 +23,11 @@ void setup()
2123

2224
void loop()
2325
{
24-
byte myValue = 0;
26+
int myValue = 0;
2527
myValue = analogRead(A0);
2628

2729
Serial.print("The value is: ");
2830
Serial.println(myValue);
2931

3032
delay(250);
3133
}
32-

0 commit comments

Comments
 (0)