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: main.cpp
- Revision:
- 0:c17ba8658b70
- Child:
- 1:e69573a4c0d3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 22 01:42:38 2018 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +PwmOut PWM1(PTB0); +PwmOut led(LED1); + +int main() +{ + PWM1.period(0.03); + PWM1.write(0.60); + + led.period(0.03); + led.write(0.90); + while(1); +}