Browse Source

Added some print messages

master
BinHong Lee 7 years ago
parent
commit
58dbcbe990
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      main.c

+ 4
- 0
main.c View File

@@ -37,6 +37,7 @@ void buttonInterrupt()


if (trigger == 0) if (trigger == 0)
{ {
printf("Paused\n");
//Set trigger and turn off buzzer //Set trigger and turn off buzzer
trigger = 1; trigger = 1;
digitalWrite(BUZZER, LOW); digitalWrite(BUZZER, LOW);
@@ -47,6 +48,7 @@ void buttonInterrupt()
photoTaken = 0; photoTaken = 0;
trigger = 0; trigger = 0;


printf("Continue\n");
//Double short beep to inform rider //Double short beep to inform rider
digitalWrite(BUZZER, HIGH); digitalWrite(BUZZER, HIGH);
delay(100); delay(100);
@@ -93,6 +95,8 @@ int main()
delay(100); delay(100);
digitalWrite(BUZZER, LOW); digitalWrite(BUZZER, LOW);


printf("While loop begins~\n");

while (1) while (1)
{ {
//Get gyro sensor input //Get gyro sensor input


Loading…
Cancel
Save