diff --git a/relais.cpp b/relais.cpp index 185868e..62b8712 100644 --- a/relais.cpp +++ b/relais.cpp @@ -14,10 +14,6 @@ void Relais::activate(bool active) { } } -void Relais::on() { - activate(true); -} +void Relais::on() { activate(true); } -void Relais::off() { - activate(false); -} \ No newline at end of file +void Relais::off() { activate(false); } \ No newline at end of file diff --git a/relais.h b/relais.h index f35fbee..fcc357e 100644 --- a/relais.h +++ b/relais.h @@ -1,17 +1,17 @@ #ifndef RELAIS_H #define RELAIS_H -#include "pico/stdlib.h" #include "hardware/gpio.h" +#include "pico/stdlib.h" class Relais { - public: + public: Relais(uint gpio); void activate(bool active); void on(); void off(); - private: + private: uint gpio; };