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.
Revision 2:b261cb3cafcf, committed 2018-03-09
- Comitter:
- nehalmathur
- Date:
- Fri Mar 09 08:48:19 2018 +0000
- Parent:
- 1:55c209e14e75
- Commit message:
- Final base rotation code
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Mar 07 10:31:13 2018 +0000 +++ b/main.cpp Fri Mar 09 08:48:19 2018 +0000 @@ -1,13 +1,12 @@ #include "mbed.h" DigitalOut M3_DIR (D4); -DigitalIn button1(SW3); -DigitalIn button2(SW2); DigitalIn ButtonClockwise(D2); DigitalIn ButtonAnticlockwise(D3); PwmOut M3 (D5); DigitalOut led_red_base(LED_RED); + float frequency_pwm = 10000.0f; @@ -41,4 +40,3 @@ return 0; } -