hi,all
I'm using nRF52833, s140.. pca10100.
I want to read my pcb's touch gpio..
If I touch it, it falls down to low. ( I checked it with scope..)
When viewed through nrf_gpio_pin_read, the value remains unchanged. (Continued high)
nrf_gpio_cfg_input(TOUCH_STATE, NRF_GPIO_PIN_PULLUP);
void touch_process(void)
{
uint8_t touch;
touch = nrf_gpio_pin_read(TOUCH_STATE);
if(!touch)
{
TOUCH_TMR=1;
}
else
{
TOUCH_TMR=0;
}
TWI_TMR=1;
}
Is there anything I missed?
BR, lyrics