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.
Fork of ele350 by
Diff: sine_app.h
- Revision:
- 54:aee1b44e62ec
- Parent:
- 39:ab2557044815
--- a/sine_app.h Fri Dec 18 14:04:25 2015 +0000 +++ b/sine_app.h Fri Dec 18 16:27:23 2015 +0000 @@ -3,22 +3,22 @@ #include "app.h" #include "mbed.h" -class SineApp : public App +class SineApp : public App //Class containing the Sine app.// { protected: AnalogOut* analogOut; Timer timer; - float amplitude; - float frequence; + float amplitude; //Define the float amplitude value.// + float frequence; //Define the float frequence value.// public: - SineApp(Serial* serialPort); + SineApp(Serial* serialPort); //Constructor.// - virtual void start(); - virtual void run(); - virtual void stop(); - void setamplitude (float newamplitude); - void setfrequence (float newfrequence); + virtual void start(); //(Overriden) called when app starts.// + virtual void run(); //(Overriden) called repeatedly while running and do the sine expression.// + virtual void stop(); //(Overriden) called when app stops.// + void setamplitude (float newamplitude); //(Overriden) called when app starts, set the new amplitude.// + void setfrequence (float newfrequence); //(Overriden) called when app starts, set the new frequence.// }; #endif \ No newline at end of file