FEP TX test

Dependencies:   mbed myFEP

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Sat Oct 09 11:44:44 2021 +0000
Commit message:
make

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
myFEP.lib 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	Sat Oct 09 11:44:44 2021 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "FEP.h"
+
+myFEP fep(D1, D0, 004);
+Serial pc(USBTX, USBRX, 115200);
+
+int main()
+{
+    fep.StartReceive();
+    uint8_t temp;
+    uint8_t data[7] = {3, 75, 93, 121, 154, 171, 240};
+    while(1) {
+
+        temp = fep.SendData(data); // data内全送信
+//        temp = fep.SendData(data, 3); // 3個だけ送信
+        if (temp) {
+            pc.printf("Successful\r\n");
+        } else {
+            pc.printf("Error\r\n");
+        }
+
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Oct 09 11:44:44 2021 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/myFEP.lib	Sat Oct 09 11:44:44 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/piroro4560/code/myFEP/#b01dc5fd59bc