#include "pico/stdlib.h"
#define LED_PIN 13
void main() {
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
while(true) {
gpio_xor_mask(1u << LED_PIN); // Faz o toggle usando XOR
sleep_ms(500);
}
}
#include "pico/stdlib.h"
#define LED_PIN 13
void main() {
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
while(true) {
gpio_xor_mask(1u << LED_PIN); // Faz o toggle usando XOR
sleep_ms(500);
}
}