48 lines
905 B
C++
48 lines
905 B
C++
/*
|
|
* DisplayController.h
|
|
*
|
|
* Created on: Aug 7, 2018
|
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
|
*/
|
|
|
|
#ifndef _SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
|
#define _SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
|
|
|
#include "output/DisplayController.h"
|
|
|
|
#include <vector>
|
|
#include <thread>
|
|
|
|
#include "output/items/IDisplay.h"
|
|
#include "output/OutputPinController.h"
|
|
|
|
namespace flippR_driver
|
|
{
|
|
namespace output
|
|
{
|
|
namespace impl
|
|
{
|
|
|
|
class DisplayController : public output::DisplayController
|
|
{
|
|
public:
|
|
explicit DisplayController(std::vector<std::shared_ptr<items::IDisplay>> displays, std::shared_ptr<OutputPinController> output_gpio_interface);
|
|
~DisplayController() override;
|
|
|
|
private:
|
|
void cycle_displays();
|
|
|
|
private:
|
|
std::vector<std::shared_ptr<items::IDisplay>> displays;
|
|
|
|
std::thread display_cycle_thread;
|
|
|
|
std::shared_ptr<OutputPinController> output_gpio_interface;
|
|
|
|
bool is_running;
|
|
};
|
|
|
|
}
|
|
}
|
|
#endif
|