#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/adc.h"
#define RELAY_PIN 28
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
//stdio_init_all();
gpio_init(RELAY_PIN);
gpio_set_dir(RELAY_PIN, GPIO_OUT);
}
void loop() {
// put your main code here, to run repeatedly:
delay(1); // this speeds up the simulation
gpio_put(RELAY_PIN, 1);
sleep_ms(2000);
gpio_put(RELAY_PIN, 0);
sleep_ms(2000);
}