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.
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
LEDDriver.h
00001 #ifndef LEDDRIVER_H 00002 #define LEDDRIVER_H 00003 00004 #include "mbed.h" 00005 #include "rtos.h" 00006 00007 class LEDDriver 00008 { 00009 private: 00010 int mask; 00011 int messageList[8]; 00012 uint32_t codedMessage0; 00013 uint32_t codedMessage1; 00014 uint32_t codedMessage2; 00015 uint32_t codedMessage3; 00016 uint32_t codedMessage4; 00017 Queue<int,8>* queue; 00018 DigitalOut *leds[8]; 00019 int currentLocation; 00020 00021 /** 00022 *methode om nieuwe richtingen van de receiver klasse te ontvangen 00023 *@params aantal leds die een nieuw bericht moeten krijgen 00024 */ 00025 void poll(int numberOfLeds); 00026 00027 /** 00028 * Stel alle LEDS in voor een gegeven positie in het signaal. Voor juiste werking dien je de mask telkens te shiften. 00029 *@param De positie in het signaal viqa de (kan gaan van 0 tot 24). 00030 */ 00031 void setLEDS(int mask); 00032 00033 public: 00034 00035 /** 00036 *methode dat alle leds aanstuurt 00037 *@params aantal leds aan te sturen 00038 */ 00039 void drive(int numberOfLeds); 00040 00041 /** 00042 *constructor voor een driver object 00043 *@params de queue met de waarden die een richting aanduiden 00044 */ 00045 LEDDriver(Queue<int,8>* queue); 00046 /* 00047 *Destructor 00048 */ 00049 ~LEDDriver(); 00050 00051 /** 00052 * Functie die 8 leds aanstuurt. 00053 */ 00054 void drive8leds(); 00055 00056 /** 00057 * Stelt de Arraymembers in op hun default waarde. 00058 */ 00059 void initArrays(); 00060 }; 00061 00062 #endif
Generated on Wed Jul 13 2022 07:48:05 by
1.7.2
