![](/media/cache/profiles/8757150decbd89b0f5442ca3db4d0e0e.50x50_q85.jpg)
John's code modified for envelope shaping and different colours
Fork of Morse-buddy-JohnF by
main.cpp
- Committer:
- tony1tf
- Date:
- 2013-06-27
- Revision:
- 3:cbd036b6942b
- Parent:
- 2:260128ae5746
File content as of revision 3:cbd036b6942b:
#include "mbed.h" #include "main.h" #include "Morse_Code.h" DigitalOut blue ( LED_BLUE ); DigitalOut red ( LED_RED ); DigitalOut green ( LED_GREEN ); AnalogOut piezo ( PTE30 ); Morse_Code A = Morse_Code ( 18.0, 10.0, 400, 1 ); Morse_Code B = Morse_Code ( 18.0, 15.0, 350, 2 ); Morse_Code C = Morse_Code ( 18.0, 20.0, 300, 3 ); Morse_Code D = Morse_Code ( 18.0, 30.0, 250, 4 ); int main() { int i; while(1) { for ( i = 0; i < 10; i++ ) A.Random_Code(); for ( i = 0; i < 10; i++ ) B.Random_Code(); for ( i = 0; i < 10; i++ ) C.Random_Code(); for ( i = 0; i < 10; i++ ) D.Random_Code(); } } //=============================================================