LED无法正常取反

logica
Posts: 1
Joined: Mon Sep 02, 2024 8:06 am

LED无法正常取反

Postby logica » Mon Sep 02, 2024 8:12 am

使用以下代码,LED无法正常取反

bool LED = (bool)gpio_get_level(LED_GPIO);
gpio_set_level(LED_GPIO, !LED);
//gpio_set_level(LED_GPIO, ~LED);

如果按照blink例程,就可以

Who is online

Users browsing this forum: No registered users and 196 guests