Finished LampFactory

This commit is contained in:
Johannes Wendel
2019-12-28 21:51:32 +01:00
parent 2e37542467
commit 989f532c6d
4 changed files with 55 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
#ifndef FLIPPR_DRIVER_FACTORY_H
#define FLIPPR_DRIVER_FACTORY_H
#include <PinController.h>
#include "utility/config.h"
#include "json/json.hpp"
#include "output/items/Item.h"
@@ -24,8 +25,17 @@ public:
virtual std::map<std::string, std::shared_ptr<items::Item>> getItemMap() = 0;
protected:
void initialize_port_extender(nlohmann::json & extender);
void initialize_port_extenders();
uint8_t get_extender_pin_base(std::string & name);
protected:
nlohmann::json object;
std::shared_ptr<PinController> pin_controller;
private:
nlohmann::json port_extenders;
};
}