其他分享
首页 > 其他分享> > 1--GPIO-OUTPUT

1--GPIO-OUTPUT

作者:互联网

int main(void)
{
    bsp_board_init(BSP_INIT_LEDS);---  bsp_board_leds_init();---nrf_gpio_cfg_output

    while (true)
    {
        for (int i = 0; i < LEDS_NUMBER; i++)
        {
            bsp_board_led_invert(i);---nrf_gpio_pin_toggle(m_board_led_list[led_idx]);
            nrf_delay_ms(500);
        }
    }
}

api

nrf_gpio_cfg_output
nrf_gpio_pin_write
nrf_gpio_pin_toggle

 

E:\BaiduNetdiskDownload\NRF52832DK\nRF5_SDK_15.2.0\nRF5_SDK_15.2.0_9412b96\examples\peripheral\blinky

标签:led,pin,OUTPUT,--,nrf,---,board,gpio,GPIO
来源: https://blog.csdn.net/weixin_42381351/article/details/110378157