Francesco Grieco / Mbed 2 deprecated 0810

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kekkok
Date:
Fri Nov 02 12:46:17 2018 +0000
Commit message:
r

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Nov 02 12:46:17 2018 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+PwmOut mypwm(D5);//il led d5
+
+DigitalOut myled(LED1);
+
+int main() {
+    
+    while(1){
+  for(int i=1;i<10;i++){
+    mypwm.period_ms(10); //definisco il periodo
+    mypwm.pulsewidth_ms(1);
+    wait(1);//aspetto un secondo prima di cambiare colore
+    }}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Nov 02 12:46:17 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file