From b274aaba31f59254d38ae89791aca660f087c78a Mon Sep 17 00:00:00 2001 From: keio Date: Sun, 8 Sep 2013 12:49:52 +0200 Subject: [PATCH] Changed byte to int There is a bug in the code where a value from analogRead is set to byte whilst analogRead is always an int. Pulling for fun. Sparkfun FTW. --- Github_Tutorial.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Github_Tutorial.ino b/Github_Tutorial.ino index 80143fc..32d5b40 100644 --- a/Github_Tutorial.ino +++ b/Github_Tutorial.ino @@ -21,7 +21,7 @@ void setup() void loop() { - byte myValue = 0; + int myValue = 0; // Just a test. Thank you for another great tutorial. myValue = analogRead(A0); Serial.print("The value is: ");