** Function name: _setup_gpio() ** Location: main.cpp ** Description: initial setup for the device ***************************************************************************************/
| 18 | ** Description: initial setup for the device |
| 19 | ***************************************************************************************/ |
| 20 | void _setup_gpio() { |
| 21 | M5.begin(); |
| 22 | |
| 23 | launcherGpioInput(ENCODER_KEY); |
| 24 | encoder = new RotaryEncoder(ENCODER_INA, ENCODER_INB, RotaryEncoder::LatchMode::TWO03); |
| 25 | attachInterrupt(digitalPinToInterrupt(ENCODER_INA), checkPosition, CHANGE); |
| 26 | attachInterrupt(digitalPinToInterrupt(ENCODER_INB), checkPosition, CHANGE); |
| 27 | } |
| 28 | /********************************************************************* |
| 29 | ** Function: setBrightness |
| 30 | ** location: settings.cpp |
nothing calls this directly
no test coverage detected