![](/media/cache/profiles/8757150decbd89b0f5442ca3db4d0e0e.50x50_q85.jpg)
John's code modified for envelope shaping and different colours
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 );