p kj
/
MKS22-CubeFine
LPC824
Fork of CubeFine by
Diff: Protocol.h
- Revision:
- 1:54a2d380f8c7
- Parent:
- 0:362c1482232c
- Child:
- 2:7964622fb5a5
diff -r 362c1482232c -r 54a2d380f8c7 Protocol.h --- a/Protocol.h Thu Jun 02 04:03:31 2016 +0000 +++ b/Protocol.h Fri Jul 01 09:41:15 2016 +0000 @@ -1,8 +1,8 @@ #include "Microduino_Protocol_HardSer.h" //BLE////////////////////// -Serial pc(P0_4,P0_0); -//Serial pc(P0_0, P0_4); +Serial pc(D1, D0); + Protocol bleProtocol(&pc, TYPE_NUM); //软串口,校验数据类 #define this_node 1 //设置本机ID @@ -34,7 +34,6 @@ break; case P_FINE: //DATA OK return true; - break; case P_ERROR: //DATA ERROR #ifdef BLE_SoftSerial mySerial.stopListening();