discoLight
Loading...
Searching...
No Matches
LightController.h
Go to the documentation of this file.
1
28#ifndef LIGHTCONTROLLER_H
29#define LIGHTCONTROLLER_H
30
31#include <stdint.h>
32#include <pthread.h>
33#include "GPIO.h"
34#include "CommandQueue.h"
35#include "PeriodicTask.h"
36
43private:
52
57
62 int dutyCycle=50;
63
67 bool lampOn = false;
68
69public:
78 LightController(int gpioOutPin, int gpioInPin, SWE4211RPi::CommandQueue& queue, std::string threadName, uint32_t period);
79
83 virtual ~LightController();
84
89 void taskMethod();
90};
91
92#endif /* LIGHTCONTROLLER_H */
Definition LightController.h:42
int dutyCycle
Definition LightController.h:62
void taskMethod()
Definition LightController.cpp:79
virtual ~LightController()
Definition LightController.cpp:64
SWE4211RPi::GPIO & pushbutton
Definition LightController.h:56
SWE4211RPi::CommandQueue & referencequeue
Definition LightController.h:47
SWE4211RPi::GPIO & light
Definition LightController.h:51
bool lampOn
Definition LightController.h:67
Definition CommandQueue.h:63
GPIO GPIO wrapper classes for usage with C++ and wiringPi.
Definition GPIO.h:49
Definition PeriodicTask.h:37