FEP TX test

Dependencies:   mbed myFEP

Revision:
0:8c49c5f604d3
diff -r 000000000000 -r 8c49c5f604d3 main.cpp
--- /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