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: square_app.cpp
- Revision:
- 36:a9f4a3409c89
- Parent:
- 35:6855566cc941
- Child:
- 37:83b729ea17d4
diff -r 6855566cc941 -r a9f4a3409c89 square_app.cpp --- a/square_app.cpp Thu Dec 17 12:50:49 2015 +0000 +++ b/square_app.cpp Thu Dec 17 13:40:16 2015 +0000 @@ -2,13 +2,13 @@ SquareApp::SquareApp(Serial* serial) : App("Square wave", serial) { this->analogOut = new AnalogOut (PA_4); - this->amplitude = 20.0f; + this->amplitude = 3.0f; } void SquareApp::start() { App::start(); - this->analogOut->write(this->amplitude/20.0f); + this->analogOut->write(this->amplitude/3.0f); this->timer.start(); }