nrf_gpio_pin_write(20, 1) 和 nrf_gpio_pin_set(20); equal?
tell me ,thanks
nrf_gpio_pin_write(20, 1) 和 nrf_gpio_pin_set(20); equal?
tell me ,thanks
__STATIC_INLINE void nrf_gpio_pin_write(uint32_t pin_number, uint32_t value)
{
if (value == 0)
{
nrf_gpio_pin_clear(pin_number);
}
else
{
nrf_gpio_pin_set(pin_number);
}
}
This is the code for nrf_gpio_pin_write. So yes, they do the same thing.
thanks i know
thanks i know