Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int PORT = 8;
- int BUTTON_PORT = 9;
- void setup() {
- // put your setup code here, to run once:
- }
- void loop() {
- // put your main code here, to run repeatedly:
- if (digitalRead(BUTTON_PORT))
- {
- digitalWrite(PORT, HIGH);
- } else {
- digitalWrite(PORT, LOW);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement