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:
- 9:d2a5406650ae
- Parent:
- 8:dd2da7c0c4c7
--- a/Occilator.cpp Tue Feb 09 05:39:46 2016 +0000 +++ b/Occilator.cpp Wed Feb 10 10:12:57 2016 +0000 @@ -6,6 +6,7 @@ #include "Sine.h" #include "Noise.h" #include "Saw.h" +#include "Triangle.h" static long interrupt_us; static int part_num=0; @@ -35,6 +36,9 @@ case OCC_SAW: return new Saw(interrupt_us); + + case OCC_TRIANGLE: + return new Triangle(interrupt_us); case OCC_WT: default: return new WT(interrupt_us);