Base class for encoding operations. More...
#include <Encoding.h>
Static Public Member Functions | |
static void | customDelay (unsigned long timeInMs) |
Custom delay function to provide a non-blocking delay. | |
static bool | validIndex (int number, Hand hand) |
Checks whether the given pin number is valid for the specified hand. | |
Base class for encoding operations.
This class provides the basic functions for encoding used by its child classes.
|
inlinestatic |
Custom delay function to provide a non-blocking delay.
This function allows for a non-blocking delay (unlike the blocking delay()
function in Arduino), so the program can continue execution while waiting.
timeInMs | The delay duration in milliseconds. |
|
inlinestatic |
Checks whether the given pin number is valid for the specified hand.
This function validates whether the pin number belongs to the correct hand (left or right) based on the actuator configuration.
number | The pin number to be validated. |
hand | The hand (left or right) for which the validation is being done. |