![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Diff: LEDDriver.h
- Revision:
- 9:c800045806f0
- Parent:
- 8:a987e04734dd
- Child:
- 10:7871aeacea08
--- a/LEDDriver.h Sun Apr 15 19:37:01 2018 +0000 +++ b/LEDDriver.h Wed Apr 18 10:06:48 2018 +0000 @@ -9,53 +9,24 @@ { private: - int** messageList; - int* start; - int* stop; - int* directions; - Mutex* lock; + int* messageList; + int* codedMessage0; + int* codedMessage1; + int* codedMessage2; + int* codedMessage3; + int directions[8]; + //Mutex* lock; Copy copy; DigitalOut* leds; - /** - *method that returns the direction stored in the private direction array - *@params the id of the led that you want the direction of - *@return the direction for the specified led - */ int getDirection(int id); - - /** - *method that encodes the direction to the message for the specified led - *@params the direction to encode into the message - *@params the led you want to encode the message for - */ void encode(int direction,int led); - - /** - *method that encodes the messages for the specified number of leds - *@params the number of leds to encode the message for - */ void encodeAll(int numberOfLeds); public: - /** - *method to drive the leds - *@params the number of leds - */ void drive(int numberOfLeds); - - /** - *method that copies the array for the specified records in another array - *@params the array that has the shared array with directions - *@params the number of directions - */ LEDDriver(/*Mutex* lock,*/ int sharedDirections[], int sizeOfSharedDirections); - - /** - *method that is prepared to run - *@params the number of leds to run - */ void run(int numberOfLeds); };