Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FEP_TX22 SerialArduino mbed
Diff: main.cpp
- Revision:
- 0:df41f530dbd9
- Child:
- 2:81cf98f7f721
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 05 01:13:12 2022 +0000 @@ -0,0 +1,24 @@ +#include "FEP_TX22.h" +#include "SerialArduino.h" +#include "pinconfig.h" +#define SWNUM 8 + +SerialArduino mini(TXino, RXino, 115200); + +//FEP,PCの宣言 +FEP_TX22 FEP_TX22(fepTX, fepRX, 5); +Serial pc(USBTX, USBRX, 115200); + +int main() +{ + uint8_t data[DATANUM]; + while(1) + { + mini.getState(data); + //PC表示部分 + pc.printf("sw:%3d %3d | stick:%3d %3d %3d %3d | trig:%3d %3d | %3d\r\n" + , data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8]); + + FEP_TX22.SendData(data); + } +} \ No newline at end of file