Tony YI
/
ESDC2014
123123123123123123123123123
buzzer.cpp
- Committer:
- TonyYI
- Date:
- 2014-07-01
- Revision:
- 0:3417ca0a36c0
- Child:
- 1:cbec1283a16a
File content as of revision 0:3417ca0a36c0:
/****************************************************** ****┏┓ ┏┓ **┏┛┻━━━━━━┛┻┓ **┃ ┃ **┃ ━━━ ┃ **┃ ┳┛ ┗┳ ┃ **┃ ┃ **┃ ''' ┻ ''' ┃ **┃ ┃ **┗━━┓ ┏━━┛ *******┃ ┃ *******┃ ┃ *******┃ ┃ *******┃ ┗━━━━━━━━┓ *******┃ ┃━┓ *******┃ NO BUG ┏━┛ *******┃ ┃ *******┗━┓ ┓ ┏━┏━┓ ━┛ ***********┃ ┛ ┛ ┃ ┛ ┛ ***********┃ ┃ ┃ ┃ ┃ ┃ ***********┗━┛━┛ ┗━┛━┛ This part is added by project ESDC2014 of CUHK team. All the code with this header are under GPL open source license. This program is running on Mbed Platform 'mbed LPC1768' avaliable in 'http://mbed.org'. **********************************************************/ #include "buzzer.h" Buzzer::Buzzer(MyDigitalOut* buzzer) { this->_buzzer = buzzer; *_buzzer = 1; } Buzzer::~Buzzer(){} void Buzzer::buzzerON() { *_buzzer = 0; } void Buzzer::buzzerOFF() { *_buzzer = 1; }