8000 Corrected byte to int. · sparkfun/Github_Tutorial@f821b74 · GitHub
[go: up one dir, main page]

Skip to content

Commit f821b74

Browse files
committed
Corrected byte to int.
The original code has a bug. analogRead returns and int. This change corrects the variable mismatch.
1 parent 6647ee4 commit f821b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Github_Tutorial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void setup()
2121

2222
void loop()
2323
{
24-
byte myValue = 0;
24+
int myValue = 0;
2525
myValue = analogRead(A0);
2626

2727
Serial.print("The value is: ");

0 commit comments

Comments
 (0)
0