Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Github_Tutorial.ino
The original code has a bug. analogRead returns and int, not a byte. This change correct this variable mismatch.
  • Loading branch information
mattbrownfx committed Dec 7, 2019
commit 464d20e14d8ab859dbaf9835a69a7641d7d08f8a
2 changes: 1 addition & 1 deletion Github_Tutorial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void setup()

void loop()
{
byte myValue = 0;
int myValue = 0;
myValue = analogRead(A0);

Serial.print("The value is: ");
Expand Down