kh

Dependencies:   mbed VS1033

Files at this revision

API Documentation at this revision

Comitter:
HdwhN
Date:
Thu Dec 13 12:33:39 2018 +0000
Commit message:
1212;

Changed in this revision

VS1033.lib Show annotated file Show diff for this revision Revisions of this file
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
diff -r 000000000000 -r 09dd31f09158 VS1033.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/VS1033.lib	Thu Dec 13 12:33:39 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/nameless129/code/VS1033/#da08a7b0947d
diff -r 000000000000 -r 09dd31f09158 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 13 12:33:39 2018 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+PwmOut mypwm(PWM_OUT);
+
+DigitalOut myled(LED1);
+
+int main() {
+    
+    mypwm.period_ms(10);
+    mypwm.pulsewidth_ms(1);
+  
+    printf("pwm set to %.2f %%\n", mypwm.read() * 100);
+    
+    while(1) {
+        myled = !myled;
+        wait(1);
+    }
+}
diff -r 000000000000 -r 09dd31f09158 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Dec 13 12:33:39 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file