![]() |
MatrixMiniR4 1.1.9
Matrix Mini R4 Arduino Library API Documentation
|
A class to handle PWM (Pulse Width Modulation) signals on two specified pins. More...
#include <MiniR4PWM.h>
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 |
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.
| PIN1 | The first PWM pin. |
| PIN2 | The second PWM pin. |
Definition at line 21 of file MiniR4PWM.h.
|
inline |
Definition at line 24 of file MiniR4PWM.h.
|
inline |
Sets the PWM level for the first pin.
Note: Only D1 (p3) and D2 (p5) LEFT Pin Support PWM.
| level | The PWM level to set (0-255). |
Definition at line 37 of file MiniR4PWM.h.
|
inline |
Sets the PWM level for the second pin.
Note: Only D3 (p11) and D4 (p10) RIGHT Pin Support PWM.
| level | The PWM level to set (0-255). |
Definition at line 50 of file MiniR4PWM.h.