Created
June 4, 2018 21:10
-
-
Save liz-miller/0b62b518acd992156c6603591e2e76f0 to your computer and use it in GitHub Desktop.
Healthy Plant Data Lab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Learn Robotics Workstation | |
* Last Revision: 6/4/18 | |
* -------------------------- | |
* Pin Wiring: | |
* Your workstation is configured with the following devices... | |
* =========== | |
* INPUTS | |
* - POTENTIOMETER (5K/10K): A3 | |
* - PUSH BUTTON: 2 | |
* - LDR/PHOTORESISTOR: A4 | |
* | |
* OUTPUTS | |
* - BUILT-IN LED: 13 | |
* - RED LED: 12 | |
* - YELLOW LED: 11 | PWM CAPABLE | |
* - GREEN LED: 10 | PWM CAPABLE | |
* - WHITE LED: 9 | PWM CAPABLE | |
*/ | |
// INPUTS | |
// OUTPUTS | |
int red_led=12; | |
// put your setup code here, to run once: | |
void setup() { | |
//configure inputs | |
//configure outputs | |
pinMode(red_led, OUTPUT); | |
} | |
/* | |
* led_blink: Created from Lab #2 | |
* Turns a specified led on for a specified duration | |
*/ | |
void led_blink(int led, int dur){ | |
//… paste your code from loop here | |
} | |
/* | |
* Code that executes on the Arduino | |
* Uncomment the methods you want to use. | |
*/ | |
void loop(){ | |
//method calls go here... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment