Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LED_UPDATE(int state)
- {
- int count; // initialized to zero, once program runs it automatically enter state ==1
- if (state == 1)
- {
- digitalWrite(RED_PIN, LOW);
- digitalWrite(GREEN_PIN, HIGH);
- count=0;
- }
- else if (state == 2)
- {
- count+=1;
- Red_Blink();
- if(count == 1 )
- {
- sms.SendSMS("086XXXXXXX", "PANIC BUTTON PRESSED, Subject needs help!!!");
- }
- }
- static int count; // initialized to zero, once.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement