asdasd

Dependencies:   SoftSerial mbed

Files at this revision

API Documentation at this revision

Comitter:
dimmu8410
Date:
Fri Jul 06 19:20:16 2018 +0000
Commit message:
asdasd

Changed in this revision

SoftSerial.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 20d80853db80 SoftSerial.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SoftSerial.lib	Fri Jul 06 19:20:16 2018 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Sissors/code/SoftSerial/#236fce2e5b8c
diff -r 000000000000 -r 20d80853db80 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 06 19:20:16 2018 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "SoftSerial.h"
+
+PwmOut mypwm(D6);
+Serial pc(USBTX,USBRX);
+DigitalOut myled(LED1);
+SoftSerial bt(D2,D3);
+
+char receive;
+float vel;
+int main() {
+    while(1) {
+      if(bt.readable()>0)
+      {
+          receive=bt.getc();
+          vel=receive-48;
+          vel/=10;
+          pc.printf("%c  %f\n\r",receive,vel);
+          mypwm.write(vel);     
+     }
+     
+    }
+}
diff -r 000000000000 -r 20d80853db80 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 06 19:20:16 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file