Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Britney Beatey
- * 6/7/2017
- * Version 1
- * Learning digital inputs
- */
- const int pinButton = 2;
- const int pinLed = 7;
- boolean ledOn = 0;
- void setup()
- {
- // put your setup code here, to run once:
- pinMode (pinButton, INPUT);
- pinMode (pinLed, OUTPUT);
- Serial.begin (9600);
- digitalWrite (pinLed, HIGH);
- delay (100);
- digitalWrite (pinLed, LOW);
- }
- void loop() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement