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

A class to handle PWM (Pulse Width Modulation) signals on two specified pins. More...

#include <MiniR4PWM.h>

Inheritance diagram for MiniR4PWM< PIN1, PIN2 >:
MiniR4Digital< PIN1, PIN2 >

Public Member Functions

 MiniR4PWM ()
 
void setPWML (uint8_t level)
 Sets the PWM level for the first pin.
 
void setPWMR (uint8_t level)
 Sets the PWM level for 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 MiniR4PWM< PIN1, PIN2 >

A class to handle PWM (Pulse Width Modulation) signals on two specified pins.

This class inherits from MiniR4Digital and provides methods to set the PWM levels for two separate pins.

Template Parameters
PIN1The first PWM pin.
PIN2The second PWM pin.

Definition at line 21 of file MiniR4PWM.h.

Constructor & Destructor Documentation

◆ MiniR4PWM()

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

Definition at line 24 of file MiniR4PWM.h.

Member Function Documentation

◆ setPWML()

template<uint8_t PIN1, uint8_t PIN2>
void MiniR4PWM< PIN1, PIN2 >::setPWML ( uint8_t level)
inline

Sets the PWM level for the first pin.

Note: Only D1 (p3) and D2 (p5) LEFT Pin Support PWM.

Parameters
levelThe PWM level to set (0-255).

Definition at line 37 of file MiniR4PWM.h.

◆ setPWMR()

template<uint8_t PIN1, uint8_t PIN2>
void MiniR4PWM< PIN1, PIN2 >::setPWMR ( uint8_t level)
inline

Sets the PWM level for the second pin.

Note: Only D3 (p11) and D4 (p10) RIGHT Pin Support PWM.

Parameters
levelThe PWM level to set (0-255).

Definition at line 50 of file MiniR4PWM.h.


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