![]() |
MatrixMiniR4 1.1.5
Matrix Mini R4 Arduino Library API Documentation
|
A class template for handling analog input operations on two specified pins. More...
#include <MiniR4Analog.h>
Public Member Functions | |
MiniR4Analog () | |
int | getAIL (void) |
Reads the analog value from the first pin. | |
int | getAIR (void) |
Reads the analog value from the second pin. | |
![]() | |
MiniR4Digital () | |
bool | getL (bool pullup=false) |
Reads the state of the first pin. | |
bool | getR (bool pullup=false) |
Reads the state of the second pin. | |
void | setL (bool level=HIGH) |
Sets the level of the first pin. | |
void | setR (bool level=HIGH) |
Sets the level of the second pin. | |
void | toggleL () |
Toggles the state of the first pin. | |
void | toggleR () |
Toggles the state of the second pin. | |
Additional Inherited Members | |
![]() | |
MiniR4HC04< PIN1, PIN2 > | US |
MiniR4DHT11< PIN1, PIN2 > | DHT11 |
MiniR4DS18B20< PIN1, PIN2 > | DS18B20 |
MiniR4_Grove_US< PIN1, PIN2 > | GroveUS |
MiniR4DHT11< PIN2, PIN1 > | MXDHT |
MiniR4DS18B20< PIN2, PIN1 > | MXOnewireDT |
A class template for handling analog input operations on two specified pins.
This class inherits from the MiniR4Digital class and provides methods to read analog values from two designated pins.
PIN1 | The first pin number for analog input. |
PIN2 | The second pin number for analog input. |
Definition at line 22 of file MiniR4Analog.h.
|
inline |
Definition at line 25 of file MiniR4Analog.h.
|
inline |
Reads the analog value from the first pin.
This method sets the first pin as an input and reads the analog value from it.
Definition at line 39 of file MiniR4Analog.h.
|
inline |
Reads the analog value from the second pin.
This method sets the second pin as an input and reads the analog value from it.
Definition at line 53 of file MiniR4Analog.h.