18 lines
236 B
C++
18 lines
236 B
C++
#ifndef RELAIS_H
|
|
#define RELAIS_H
|
|
|
|
#include "hardware/gpio.h"
|
|
#include "pico/stdlib.h"
|
|
|
|
class Relais {
|
|
public:
|
|
Relais(uint gpio);
|
|
void activate(bool active);
|
|
void on();
|
|
void off();
|
|
|
|
private:
|
|
uint gpio;
|
|
};
|
|
|
|
#endif |