From f821b74d6079ad14085cd50e4943be3a50fd2789 Mon Sep 17 00:00:00 2001 From: ITfrank Date: Sat, 18 Jan 2014 01:48:04 -0500 Subject: [PATCH] Corrected byte to int. The original code has a bug. analogRead returns and int. This change corrects the variable mismatch. --- 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: ");