Impelements and integrates DisplayFactory. Further does some refactoring
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#define FLIPPR_DRIVER_DISPLAYFACTORY_H
|
||||
|
||||
#include "ItemFactory.h"
|
||||
#include "output/DisplayBoardPinController.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
@@ -17,10 +18,15 @@ namespace output
|
||||
|
||||
class DisplayFactory : ItemFactory
|
||||
{
|
||||
public:
|
||||
explicit DisplayFactory(nlohmann::json & object, std::shared_ptr<DisplayBoardPinController> pin_controller);
|
||||
std::map<std::string, std::shared_ptr<items::Item>> getItemMap() override;
|
||||
public:
|
||||
|
||||
private:
|
||||
void create_pin_map();
|
||||
|
||||
private:
|
||||
std::map<std::string, uint8_t> pin_map;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user