joystick

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
byeongjinkim
Date:
Fri Sep 20 03:54:31 2019 +0000
Commit message:
joystick

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
diff -r 000000000000 -r f998f1345a11 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 20 03:54:31 2019 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+Serial bt1(PA_0, PD_0);
+Serial bt2(PC_12, PD_2);
+void rxData(){
+    char temp = bt2.getc();
+    bt1.putc(temp);            //convention
+}
+int main(){
+    bt2.baud(115200);
+    bt1.baud(115200);
+    bt2.attach(&rxData, Serial::RxIrq);
+    while(1)
+    {
+        
+  //  long int c = 0xFF;
+    }
+    //   int output1 = (int)pc.putc(buffer[1006]);
+     //  int output2 = (int)pc.putc(buffer[1007]);
+     //  printf("%d %d\r\n", output1, output2);
+     //  wait(1);
+}
\ No newline at end of file
diff -r 000000000000 -r f998f1345a11 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 20 03:54:31 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file