MatrixMiniR4 1.1.5
Matrix Mini R4 Arduino Library API Documentation
Loading...
Searching...
No Matches
MiniR4DAC< PIN1, PIN2 > Class Template Reference

Class for Digital-to-Analog Converter (DAC) functionality. More...

#include <MiniR4DAC.h>

Inheritance diagram for MiniR4DAC< PIN1, PIN2 >:
MiniR4Analog< PIN1, PIN2 > MiniR4Digital< PIN1, PIN2 >

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
 

Detailed Description

template<uint8_t PIN1, uint8_t PIN2>
class MiniR4DAC< PIN1, PIN2 >

Class for Digital-to-Analog Converter (DAC) functionality.

This template class provides methods to set a DAC level using specified pins.

Template Parameters
PIN1The first pin used for DAC output.
PIN2The second pin (not used for DAC in this implementation).

Definition at line 21 of file MiniR4DAC.h.

Constructor & Destructor Documentation

◆ MiniR4DAC()

template<uint8_t PIN1, uint8_t PIN2>
MiniR4DAC< PIN1, PIN2 >::MiniR4DAC ( )
inline

Definition at line 24 of file MiniR4DAC.h.

Member Function Documentation

◆ setDACR()

template<uint8_t PIN1, uint8_t PIN2>
void MiniR4DAC< PIN1, PIN2 >::setDACR ( int level)
inline

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.

Parameters
levelThe level to set for the DAC (0-255).

Definition at line 38 of file MiniR4DAC.h.


The documentation for this class was generated from the following file: