Advertisement
Guest User

Master Code

a guest
Nov 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #define buttonPin 7
  2. int state = 0;
  3.  
  4. void setup()
  5. {
  6.  pinMode(buttonPin, INPUT);
  7.  Serial.begin(115200);
  8. }
  9.  
  10. void loop()
  11. {
  12.   delay(15000);
  13.   Serial.print("Serial Value Sent: ");
  14.   Serial.println(state);
  15.   state=1;
  16.   delay(15000);
  17.   Serial.print("Serial Value Sent: ");
  18.   Serial.println(state);
  19.   state=0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement