still the biggest refactor
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "output/items/Item.h"
|
||||
|
||||
#include <output/DriverBoardPinController.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace flippR_driver
|
||||
@@ -19,10 +21,13 @@ namespace items
|
||||
class DriverBoardItem : public Item
|
||||
{
|
||||
public:
|
||||
DriverBoardItem(std::shared_ptr<OutputPinController> output_gpio_interface, uint8_t address, std::string name) :
|
||||
Item(std::move(output_gpio_interface), address, std::move(name)) {}
|
||||
DriverBoardItem(std::shared_ptr<DriverBoardPinController> pin_controller, uint8_t address, std::string name) :
|
||||
pin_controller(std::move(pin_controller)), Item(address, std::move(name)) {}
|
||||
|
||||
~DriverBoardItem() override = default;
|
||||
|
||||
protected:
|
||||
const std::shared_ptr<DriverBoardPinController> pin_controller;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user