If running on batteries, put the microcontroller into sleep mode and use interrupt-driven detection from the HW-417-V1.2.
delay(100);
The HAL is implemented as a set of APIs that provide a interface to the SoC's peripherals. The HAL APIs are designed to be hardware-independent, allowing the driver to be easily ported to different SoCs. hw-417-v1.2 driver
Here is a sample code snippet of the HW-417-V1.2 driver: If running on batteries, put the microcontroller into
→ Azerbaijani keyboard (Latin script)
→ Azerbaijani Cyrillic keyboard
→ Azerbaijani language: dictionary, grammar
→ Multilingual keyboard: a wide range of scripts