8000 Bug in Arduino Code by TeeVoe · Pull Request #141 · sparkfun/Github_Tutorial · GitHub
[go: up one dir, main page]

Skip to content

Bug in Arduino Code #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Github_Tutorial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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);
}

0