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 Morse-buddy-JohnF by
Revision 3:cbd036b6942b, committed 2013-06-27
- Comitter:
- tony1tf
- Date:
- Thu Jun 27 23:21:46 2013 +0000
- Parent:
- 2:260128ae5746
- Commit message:
- Different colours for each instantiation - fixed
Changed in this revision
| Morse_Code.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Morse_Code.cpp Thu Jun 27 10:52:29 2013 +0000
+++ b/Morse_Code.cpp Thu Jun 27 23:21:46 2013 +0000
@@ -552,7 +552,7 @@
if ( _colour == 1 ) blue = on;
if ( _colour == 2 ) red = on;
if ( _colour == 3 ) green = on;
- if ( _colour == 4 ) blue = on red = on green = on ;
+ if ( _colour == 4 ) { blue = on ; red = on ; green = on ; }
Tone ( _Tone_Frequency, u, 1.0 );
@@ -567,7 +567,7 @@
if ( _colour == 1 ) blue = on;
if ( _colour == 2 ) red = on;
if ( _colour == 3 ) green = on;
- if ( _colour == 4 ) blue = on red = on green = on ;
+ if ( _colour == 4 ) { blue = on ; red = on ; green = on ; }
Tone ( _Tone_Frequency, u, 3.0 );
