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

A class template for handling analog input operations on two specified pins. More...

#include <MiniR4Analog.h>

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

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.
 
- 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 MiniR4Analog< PIN1, PIN2 >

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.

Template Parameters
PIN1The first pin number for analog input.
PIN2The second pin number for analog input.

Definition at line 22 of file MiniR4Analog.h.

Constructor & Destructor Documentation

◆ MiniR4Analog()

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

Definition at line 25 of file MiniR4Analog.h.

Member Function Documentation

◆ getAIL()

template<uint8_t PIN1, uint8_t PIN2>
int MiniR4Analog< PIN1, PIN2 >::getAIL ( void )
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.

Returns
The analog reading from pin1.

Definition at line 39 of file MiniR4Analog.h.

◆ getAIR()

template<uint8_t PIN1, uint8_t PIN2>
int MiniR4Analog< PIN1, PIN2 >::getAIR ( void )
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.

Returns
The analog reading from pin2.

Definition at line 53 of file MiniR4Analog.h.


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