8000 Bug Fix · sparkfun/Github_Tutorial@8d28cdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d28cdc

Browse files
committed
Bug Fix
Changed byte to integer. analogRead returns an integer.
1 parent c76cc49 commit 8d28cdc

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