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.
Diff: Occilator.cpp
- Revision:
- 8:dd2da7c0c4c7
- Parent:
- 7:a478d5cc411e
- Child:
- 9:d2a5406650ae
--- a/Occilator.cpp Tue Feb 09 02:57:27 2016 +0000 +++ b/Occilator.cpp Tue Feb 09 05:39:46 2016 +0000 @@ -3,6 +3,9 @@ #include "Occilator.h" #include "Square.h" #include "WT.h" +#include "Sine.h" +#include "Noise.h" +#include "Saw.h" static long interrupt_us; static int part_num=0; @@ -23,12 +26,19 @@ case OCC_NONE: case OCC_SQUARE: return new Square(interrupt_us); + + case OCC_NOISE: + return new Noise(interrupt_us); case OCC_SINE: + return new Sine(interrupt_us); + + case OCC_SAW: + return new Saw(interrupt_us); case OCC_WT: - case OCC_NOISE: default: return new WT(interrupt_us); + } }