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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:2a8417ed9ec7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Mar 03 01:05:48 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+PwmOut control(p21);
+float p = 0;
+
+int main() {
+ control = 0.0f;
+ while(1) {
+ int i;
+ p=0;
+ for(i=0; i<10; i++){
+ p += 0.1f;
+ control = p;
+ wait(2);
+ }
+ }
+}