micro-ELC
RelaysDriver.h
Go to the documentation of this file.
1#ifndef RELAYS_DRIVER_H
2#define RELAYS_DRIVER_H
3#include <Arduino.h>
9public:
15 virtual void set(uint16_t bits) = 0;
16
20 virtual void begin() = 0;
21};
22#endif
This class defines an interface for any class that can control an array of relays.
Definition: RelaysDriver.h:8
virtual void begin()=0
this function should be called on startup. It sets up pinmodes.
virtual void set(uint16_t bits)=0
activate relays corresponding to a bit that's 1.