Implementation of digitalFASTread() possibility#45
Implementation of digitalFASTread() possibility#45mathertel merged 2 commits intomathertel:masterfrom
Conversation
|
I made successfull Comissioning on ESP32-WROOM by implementing:
*/ uint32_t bit = digitalPinToBitMask(pin); if (port == NOT_A_PIN) { // Pointer on GPIO-Register // Read Pin State return state; |
… performance; update documentation accordingly.
mathertel
left a comment
There was a problem hiding this comment.
Optional Pin Initialization:
The RotaryEncoder constructor now checks if the pins are valid before initializing them with INPUT_PULLUP.
|
@JoJos1220 : Thank you for the contribution. |
I wanted to avoid digitalRead()/digitalWrite() operation within my Project. Therefore I made a split-up of the tick() function - to enable the possibility to read the Encoder-State within my loop function and the usage of a digitalFASTread() Operation and overload it to the tick function directly.