mir gehn die ideen aus gute nacht :-)
This commit is contained in:
@@ -14,10 +14,10 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
Lamp::Lamp(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, unsigned int i2c_address, unsigned int address, unsigned int data_pin, std::string name, bool activated)
|
||||
Lamp::Lamp(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, unsigned int i2c_address, unsigned int address, unsigned int data_pin, std::string name)
|
||||
:
|
||||
OutputItem(output_gpio_interface, address, i2c_address, data_pin, name),
|
||||
activated(activated)
|
||||
activated(false)
|
||||
{}
|
||||
|
||||
void Lamp::activate()
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace items
|
||||
class Lamp : public OutputItem, ILamp
|
||||
{
|
||||
public:
|
||||
Lamp(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, unsigned int address, unsigned int i2c_address, unsigned int data_pin, std::string name, bool activated = false);
|
||||
Lamp(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, unsigned int address, unsigned int i2c_address, unsigned int data_pin, std::string name);
|
||||
virtual ~Lamp() = default;
|
||||
|
||||
void activate();
|
||||
|
||||
Reference in New Issue
Block a user