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
main.cpp
- Committer:
- piroro4560
- Date:
- 2022-10-05
- Revision:
- 0:df41f530dbd9
- Child:
- 2:81cf98f7f721
File content as of revision 0:df41f530dbd9:
#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); } }