gbmanager/src/relais.h

18 lines
236 B
C
Raw Normal View History

2022-05-31 13:53:19 +02:00
#ifndef RELAIS_H
#define RELAIS_H
#include "hardware/gpio.h"
2022-05-31 14:28:15 +02:00
#include "pico/stdlib.h"
2022-05-31 13:53:19 +02:00
class Relais {
2022-05-31 14:28:15 +02:00
public:
2022-05-31 13:53:19 +02:00
Relais(uint gpio);
void activate(bool active);
void on();
void off();
2022-05-31 14:28:15 +02:00
private:
2022-05-31 13:53:19 +02:00
uint gpio;
};
#endif