Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:ff57945c704c, committed 2015-05-07
- Comitter:
- el14jz
- Date:
- Thu May 07 14:46:11 2015 +0000
- Parent:
- 0:411f355688a5
- Commit message:
- Embedded Systems Project
Changed in this revision
beep.h | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/beep.h Thu May 07 11:26:58 2015 +0000 +++ b/beep.h Thu May 07 14:46:11 2015 +0000 @@ -1,3 +1,10 @@ +/** +@file beep.h +@brief program implementation +@author Zang,Junwei +@date May 2015 +*/ + #ifndef MBED_BEEP_H #define MBED_BEEP_H
--- a/main.cpp Thu May 07 11:26:58 2015 +0000 +++ b/main.cpp Thu May 07 14:46:11 2015 +0000 @@ -1,13 +1,20 @@ +/** +@file main.cpp +@brief program implementation +@author Zang,Junwei +@date May 2015 +*/ + #include "mbed.h" #include "N5110.h" #include "beep.h" using namespace mbed; - // constructor - /** Create a Beep object connected to the specified PwmOut pin - * - * @param pin PwmOut pin to connect to - */ +// constructor +/** Create a Beep object connected to the specified PwmOut pin + * + * @param pin PwmOut pin to connect to + */ BusOut leds(LED1,LED2,LED3,LED4); BusOut myled(p24); @@ -19,9 +26,9 @@ _pwm.write(0.0); // after creating it have to be off } - /** stop the beep instantaneous - * usually not used - */ +/** stop the beep instantaneous + * usually not used + */ void Beep::nobeep() { _pwm.write(0.0); } @@ -492,7 +499,13 @@ } } - +/** +@param 1 - x coordinate +@param 2 - y coordinate +@param 3 - width of the rectangle +@param 4 - height of the rectangle +@param 5 - fill of line +*/ void N5110::drawRect(int x0,int y0,int width,int height,int fill) {