Skip to content

Instantly share code, notes, and snippets.

View poperigby's full-sized avatar
🦛
Hippo

PopeRigby poperigby

🦛
Hippo
View GitHub Profile
@poperigby
poperigby / AnalogInput.ino
Created June 12, 2018 17:07
Our code for analog input
/*
Analog Input
Demonstrates analog input by reading an analog sensor on analog pin 0 and
turning on and off a light emitting diode(LED) connected to digital pin 13.
The amount of time the LED will be on and off depends on
the value obtained by analogRead().
The circuit:
* Potentiometer attached to analog input 0
* center pin of the potentiometer to the analog pin