![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
LEDDriver.h
- Committer:
- albireo987
- Date:
- 2018-04-15
- Revision:
- 2:36158325f7b0
- Child:
- 8:a987e04734dd
File content as of revision 2:36158325f7b0:
#ifndef LEDDRIVER_H #define LEDDRIVER_H #include "rtos.h" #include "copy.h" #include "mbed.h" class LEDDriver { private: int** messageList; int* start; int* stop; int* directions; Mutex* lock; Copy copy; DigitalOut* leds; int getDirection(int id); void encode(int direction,int led); void encodeAll(int numberOfLeds); public: void drive(int numberOfLeds); LEDDriver(/*Mutex* lock,*/ int sharedDirections[], int sizeOfSharedDirections); void run(int numberOfLeds); }; #endif