Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Britney Beatey
- * Version 1
- * Dice Prototype
- */
- const int pinLed1 = 7;
- const int pinLed2 = 5;
- const int pinLed3 = 3;
- const int pinButt = 10;
- void setup() {
- // put your setup code here, to run once:
- pinMode (pinLed1, OUTPUT);
- pinMode (pinLed2, OUTPUT);
- pinMode (pinLed3, OUTPUT);
- pinMode (pinButt, INPUT);
- Serial.begin (9600);
- digitalWrite (pinLed1, HIGH);
- digitalWrite (pinLed2, HIGH);
- digitalWrite (pinLed3, HIGH);
- delay (500);
- digitalWrite (pinLed1, LOW);
- digitalWrite (pinLed2, LOW);
- digitalWrite (pinLed3, LOW);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- Serial.print (digitalRead(pinButt));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement