From 393f4059036d2f37d2e795172d45f482a030d321 Mon Sep 17 00:00:00 2001 From: Preetha Rajan Date: Fri, 17 Jan 2020 11:26:18 +0000 Subject: [PATCH] Update Github_Tutorial.ino --- Github_Tutorial.ino | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Github_Tutorial.ino b/Github_Tutorial.ino index 80143fc..3896535 100644 --- a/Github_Tutorial.ino +++ b/Github_Tutorial.ino @@ -2,11 +2,11 @@ 12-29-2012 Spark Fun Electronics Nathan Seidle - + This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license). - + This is bad code but is used to demonstrate how to use repositories on github. - + If we have an analog sensor such as a trimpot or flex sensor on A0, this code would attempt to read it and output it to the terminal at 9600bps. */ @@ -19,14 +19,13 @@ void setup() pinMode(A0, INPUT); } -void loop() +void loop() { - byte myValue = 0; + int myValue = 0; myValue = analogRead(A0); - + Serial.print("The value is: "); Serial.println(myValue); delay(250); } -