Finished LampFactory
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user