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:be96d2db8c03, committed 2016-04-17
- Comitter:
- rs27
- Date:
- Sun Apr 17 08:05:29 2016 +0000
- Parent:
- 0:bacf7305d459
- Commit message:
- Stand 17.04.2016
Changed in this revision
SPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPS.cpp Sun Apr 17 07:59:11 2016 +0000 +++ b/SPS.cpp Sun Apr 17 08:05:29 2016 +0000 @@ -1,11 +1,13 @@ #include "SPS.h" #include "mbed.h" -SPS::SPS(PinName pin) : _pin(pin) { +SPS::SPS(PinName pin) : _pin(pin) +{ _pin = 0; } -void SPS::flash(int n) { +void SPS::flash(int n) +{ for(int i=0; i<n*2; i++) { _pin = !_pin; wait(0.2);