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

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

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

while (1)
{
//Get gyro sensor input


Loading…
Cancel
Save