working on outputs
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
/*
|
|
||||||
* Display.cpp
|
|
||||||
*
|
|
||||||
* Created on: Aug 2, 2018
|
|
||||||
* Author: rhetenor
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Display.h"
|
|
||||||
namespace FlippR_Driver
|
|
||||||
{
|
|
||||||
namespace output
|
|
||||||
{
|
|
||||||
|
|
||||||
Display::Display()
|
|
||||||
{
|
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Display::~Display()
|
|
||||||
{
|
|
||||||
// TODO Auto-generated destructor stub
|
|
||||||
}
|
|
||||||
|
|
||||||
} /* namespace output */
|
|
||||||
}
|
|
||||||
@@ -27,7 +27,7 @@ public:
|
|||||||
virtual ~DisplayController();
|
virtual ~DisplayController();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void cycleDisplays();
|
void cycle_displays();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::shared_ptr<IDisplay>> displays;
|
std::vector<std::shared_ptr<IDisplay>> displays;
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
#ifndef FLIPPR_DRIVER_OUTPUTDRIVERFACTORY_H
|
#ifndef FLIPPR_DRIVER_OUTPUTDRIVERFACTORY_H
|
||||||
#define FLIPPR_DRIVER_OUTPUTDRIVERFACTORY_H
|
#define FLIPPR_DRIVER_OUTPUTDRIVERFACTORY_H
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
#include "OutputDriver.h"
|
||||||
|
|
||||||
namespace FlippR_Driver
|
namespace FlippR_Driver
|
||||||
{
|
{
|
||||||
namespace output
|
namespace output
|
||||||
|
|||||||
@@ -14,8 +14,14 @@
|
|||||||
class OutputGPIOInterface : GPIOInterface
|
class OutputGPIOInterface : GPIOInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
void activate_cabinet_item(CabinetItem &item);
|
||||||
|
void write_display(Display &display);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IBlockingQueue<std::tuple<int, int, bool>>
|
void
|
||||||
|
private:
|
||||||
|
IBlockingQueue<CabinetItem> event_queue;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user