Skip to content
Open
Changes from 1 commit
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
Next Next commit
Changes byte to int
analogRead returns an int
  • Loading branch information
qminhvuu committed Jun 29, 2024
commit ca2d8e17abd9c342f8b5925ce7f8ba927eaa9f56
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