From 6595d0418a705fe3d28ff9d5b117d526364e3457 Mon Sep 17 00:00:00 2001 From: KevinKuei0819 Date: Tue, 20 May 2025 11:20:11 -0700 Subject: [PATCH 1/2] Corrected Byte to Int the Type of the "myValue" variable was incorrect, analogRead() does not return a byte but instead an INT --- Github_Tutorial.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Github_Tutorial.ino b/Github_Tutorial.ino index 80143fc..2307fbe 100644 --- a/Github_Tutorial.ino +++ b/Github_Tutorial.ino @@ -21,7 +21,7 @@ void setup() void loop() { - byte myValue = 0; + int myValue = 0; myValue = analogRead(A0); Serial.print("The value is: "); From 0288dedbe1a3972ecfc52fe0971bb178fd70cec9 Mon Sep 17 00:00:00 2001 From: KevinKuei0819 Date: Tue, 20 May 2025 11:32:00 -0700 Subject: [PATCH 2/2] Corrected Int to double --- Github_Tutorial.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Github_Tutorial.ino b/Github_Tutorial.ino index 2307fbe..eae3f7f 100644 --- a/Github_Tutorial.ino +++ b/Github_Tutorial.ino @@ -21,7 +21,7 @@ void setup() void loop() { - int myValue = 0; + double myValue = 0; myValue = analogRead(A0); Serial.print("The value is: ");