From 464d20e14d8ab859dbaf9835a69a7641d7d08f8a Mon Sep 17 00:00:00 2001 From: Matt Brown <56451674+mattbrownfx@users.noreply.github.com> Date: Fri, 6 Dec 2019 21:46:34 -0800 Subject: [PATCH] Update Github_Tutorial.ino The original code has a bug. analogRead returns and int, not a byte. This change correct this 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: "); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy