12#include <initializer_list>
13#include "buttoncontroller.h"
Analog multiplexer for buttons.
Definition multiplexer.h:31
Multiplexer()
Default constructor.
virtual bool operator==(const ButtonController &other) const
Returns true if the two objects are equal.
virtual void end()
Releases all ressources used by the object.
int size() const
Returns the number of multiplexer channels that are available.
virtual bool isEmpty() const
Checks if all attributes are set to their default values (same as the default constructor)
@ F
Definition multiplexer.h:40
@ D
Definition multiplexer.h:38
@ A
Definition multiplexer.h:35
@ C
Definition multiplexer.h:37
@ B
Definition multiplexer.h:36
@ E
Definition multiplexer.h:39
@ G
Definition multiplexer.h:41
@ H
Definition multiplexer.h:42
void setSelectPin(int order, int pin)
It sets the pin number for the select pin of the given order.
int selectPin(int order) const
Given a order, return the corresponding value.
Multiplexer(const Multiplexer &other)
Copy Constructor. (const ButtonController &other)
virtual void deselect()
Deselects the button After the call to this function, isSelected() must return false,...
virtual void begin()
Configures all ressources needed to use the object.
Multiplexer(const std::initializer_list< int > &spins, int inhPin)
Constructor.
Multiplexer(Multiplexer &&other)
Copy Constructor. (ButtonController &&other)
void setInhPin(int pin)
Set the pin number of the inhibit pin.
virtual int select(int button)
Selects a button.
int inhPin() const
Get the pin number of the inhibit pin.
Multiplexer & operator=(const Multiplexer &other)
Assignment operator. (const ButtonController &other)
Multiplexer(const String &name, const std::initializer_list< int > &spins, int inhPin)
Constructor with name.
virtual void clear()
Sets all attributes to their default values (same as the default constructor)
Multiplexer SpaIot8266MuxB
The second multiplexer for the SpaIot controller (ESP8266 version)
Multiplexer SpaIot32MuxB
The second multiplexer for the SpaIot controller (ESP32 version)
Multiplexer Scip2MuxA
The first multiplexer for the Scip2 controller.
Multiplexer SpaIotS3MuxB
The second multiplexer for the SpaIot controller (ESP32S3 version)
Multiplexer SpaIot8266MuxA
The first multiplexer for the SpaIot controller (ESP8266 version)
Multiplexer SpaIot32MuxA
The first multiplexer for the SpaIot controller (ESP32 version)
Multiplexer Scip2MuxB
The second multiplexer for the Scip2 controller.
Multiplexer SpaIotS3MuxA
The first multiplexer for the SpaIot controller (ESP32S3 version)
SpaIot name space.
Definition bussettings.h:15