John's code modified for envelope shaping and different colours

Dependencies:   mbed

Fork of Morse-buddy-JohnF by Tony Abbey

Files at this revision

API Documentation at this revision

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 );