SOFT564Z Group 3 / Mbed 2 deprecated SOFT564Z_Group_3v3

Dependencies:   mbed Servo ros_lib_kinetic

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Buzzer.h Source File

Buzzer.h

00001 #include "mbed.h"
00002 
00003 #ifndef BUZZER_H
00004 #define BUZZER_H
00005 
00006 #define Buzz PA_5
00007 
00008 
00009 class cBuzzer
00010 {
00011 public:
00012     cBuzzer(DigitalOut Buzz);  //Constructor, initialises the outputs
00013     void Beep();
00014     void buzzer_on();
00015     void buzz_off();
00016 private:
00017     DigitalOut _Buzz;
00018   
00019 };
00020 
00021  
00022 
00023 
00024 #endif