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.
Diff: main.cpp
- Revision:
- 1:998a963e2ead
- Parent:
- 0:41e22e385908
- Child:
- 2:3cb49ae40d02
diff -r 41e22e385908 -r 998a963e2ead main.cpp --- a/main.cpp Wed Dec 07 19:40:46 2016 +0000 +++ b/main.cpp Wed Dec 07 22:17:39 2016 +0000 @@ -9,11 +9,10 @@ void SerialCallBack(); int main() { + mModel->pc.baud(57600); - mModel->pc.attach(&SerialCallBack); testData mtest; - mtest.data[0]=0x41; mtest.data[1]=0x42; mtest.data[2]=0x43; @@ -24,7 +23,13 @@ // mModel->sendPacket(mtest.startByte,mtest.targetAddress,mtest.sourceAddress,mtest.data); cervena=1; zelena=1; - + char data[5]={0x2,0x00,0x00,0x00,0x14}; + //mModel->sendPacket(0xA0,0xf1,0x00,data,5); +// packet1->data[0] = 0x2; +// packet1->data[1] = 0xff; +// packet1->data[2] = 0xff; +// packet1->data[3] = 0xff; +// packet1->data[4] = 0xfb; while(1){