code beautifying

This commit is contained in:
Martin Brodbeck 2022-05-31 14:28:15 +02:00
parent d354be1077
commit 2f7d1dd921
2 changed files with 5 additions and 9 deletions

View file

@ -14,10 +14,6 @@ void Relais::activate(bool active) {
}
}
void Relais::on() {
activate(true);
}
void Relais::on() { activate(true); }
void Relais::off() {
activate(false);
}
void Relais::off() { activate(false); }

View file

@ -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;
};