Updated to latest version. Added in new version of the Siren
Dependencies: mbed-src
Fork of VolundrIntroCase2015 by
Diff: main.cpp
- Revision:
- 4:17d1343916ec
- Parent:
- 3:ce51f3857195
--- a/main.cpp Sun Aug 16 11:44:48 2015 +0000 +++ b/main.cpp Fri Aug 12 16:30:45 2016 +0000 @@ -17,6 +17,7 @@ PwmOut in3(p26); PwmOut in4(p25); +PwmOut block(p24); DigitalOut en_a(p21); DigitalOut en_b(p22); @@ -61,6 +62,10 @@ in2.period_us(100); in3.period_us(100); in4.period_us(100); + +// Set Block frequency of Siren to 2 Hz with DC of 50% + block.period(1.0f); + block.write(0.50f); in1.write(0.0); in2.write(0.0);