![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: LEDDriver.cpp
- Revision:
- 8:a987e04734dd
- Parent:
- 6:36158325f7b0
- Child:
- 9:c800045806f0
diff -r 2343d42a7d1e -r a987e04734dd LEDDriver.cpp --- a/LEDDriver.cpp Sun Apr 15 10:02:17 2018 +0000 +++ b/LEDDriver.cpp Sun Apr 15 19:37:01 2018 +0000 @@ -37,27 +37,27 @@ { case 0: copy.copyInt(messageList[led],start,8); - int code0[]={0,0}; - copy.copyInt(messageList[led],code0,2,8); - copy.copyInt(messageList[led],stop,8,16); + int code0[]={0,1,0,1}; + copy.copyInt(messageList[led],code0,4,8); + copy.copyInt(messageList[led],stop,8,12); break; case 1: copy.copyInt(messageList[led],start,8); - int code1[]={0,1}; + int code1[]={0,1,1,0}; copy.copyInt(messageList[led],code1,2,8); - copy.copyInt(messageList[led],stop,8,16); + copy.copyInt(messageList[led],stop,8,12); break; case 2: copy.copyInt(messageList[led],start,8); - int code2[]={1,0}; - copy.copyInt(messageList[led],code2,2,8); - copy.copyInt(messageList[led],stop,8,16); + int code2[]={1,0,0,1}; + copy.copyInt(messageList[led],code2,4,8); + copy.copyInt(messageList[led],stop,8,12); break; case 3: copy.copyInt(messageList[led],start,8); - static int code3[]={1,1}; - copy.copyInt(messageList[led],code3,2,8); - copy.copyInt(messageList[led],stop,8,16); + static int code3[]={1,0,1,0}; + copy.copyInt(messageList[led],code3,4,8); + copy.copyInt(messageList[led],stop,8,12); break; default: return; @@ -67,7 +67,7 @@ int LEDDriver::getDirection(int id) { - int direction= directions[id]; + int direction = directions[id]; return direction; }