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:60727c2b0359
- Child:
- 1:c4041164cc76
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Mar 31 08:02:31 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+PwmOut pwm(dp18);
+AnalogIn ain(dp9);
+
+int main() {
+ pwm.period_us(50);
+ float potenciometar=ain;
+ int i=0;
+ while(1) {
+ if(i%120==0)
+ {
+ potenciometar=ain;
+ i=1;
+ }
+ pwm=ain;
+ i++;
+ }
+}
\ No newline at end of file