![]() |
MatrixMiniR4 1.1.9
Matrix Mini R4 Arduino Library API Documentation
|
Class for Digital-to-Analog Converter (DAC) functionality. More...
#include <MiniR4DAC.h>
Public Member Functions | |
| MiniR4DAC () | |
| void | setDACR (int level) |
| Sets the Digital-to-Analog Converter (DAC) level. | |
Public Member Functions inherited from MiniR4Analog< PIN1, PIN2 > | |
| MiniR4Analog () | |
| int | getAIL (void) |
| Reads the analog value from the first pin. | |
| int | getAIR (void) |
| Reads the analog value from the second pin. | |
Public Member Functions inherited from MiniR4Digital< PIN1, PIN2 > | |
| 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 | |
Public Attributes inherited from MiniR4Digital< PIN1, PIN2 > | |
| 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 |
Class for Digital-to-Analog Converter (DAC) functionality.
This template class provides methods to set a DAC level using specified pins.
| PIN1 | The first pin used for DAC output. |
| PIN2 | The second pin (not used for DAC in this implementation). |
Definition at line 21 of file MiniR4DAC.h.
|
inline |
Definition at line 24 of file MiniR4DAC.h.
Sets the Digital-to-Analog Converter (DAC) level.
This function sets the DAC level using the specified pin. Note: Only Arduino R4 A0 supports DAC.
| level | The level to set for the DAC (0-255). |
Definition at line 38 of file MiniR4DAC.h.