From 0cbd3893b1298b6088e3d1fe58034d8ad8299d09 Mon Sep 17 00:00:00 2001 From: Dustin Larsen Date: Wed, 16 Mar 2016 15:03:27 -0600 Subject: [PATCH] Data type error changed variable used to read an analog value from byte to 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: ");