| 191 | } // namespace |
| 192 | |
| 193 | void HalGPIO::begin() { |
| 194 | inputMgr.begin(); |
| 195 | SPI.begin(EPD_SCLK, SPI_MISO, EPD_MOSI, EPD_CS); |
| 196 | |
| 197 | _deviceType = detectDeviceTypeWithFingerprint(); |
| 198 | |
| 199 | if (deviceIsX4()) { |
| 200 | pinMode(BAT_GPIO0, INPUT); |
| 201 | pinMode(UART0_RXD, INPUT); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | void HalGPIO::update() { |
| 206 | inputMgr.update(); |