/*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    program name : beeper.ic
    description  : program to make different sounds with beeper  
    done by      : Team 9    
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/

/* PROGRAM CONSTANTS */

#define FREQ_500_HTZ     500.0
#define FREQ_1000_HTZ    1000.0
#define FREQ_100_HTZ     100.0


#define  SECS_3       3.0
#define  SECS_1       1.0
#define  SECS_2       2.0 


void main()
{
    // sound the beeper for 3 seconds with 500 Hz frequency
    tone(FREQ_500_HTZ, SECS_3);
    // be silent for 1 second
    sleep(SECS_1);
    // sound the beeper for 3 seconds with 100 HZ frequency
    tone(FREQ_100_HTZ, SECS_3);
    // be silent for 1 second
    sleep(SECS_1);
    // finally sound the beeper for 2 seconds with 1000 Hz frequency
    tone(FREQ_1000_HTZ,SECS_2);
    
}
