/*
 * LAB Name: Raspberry Pi Pico Hello World Serial Print & Read (C/C++ SDK)
 * Author: Khaled Magdy
 * For More Info Visit: www.DeepBlueMbedded.com
*/
#include <stdio.h>
#include "pico/stdlib.h"

#define LED_PIN 20
int LED_STATE = 0;

int main() 
{
    gpio_init(LED_PIN);
    gpio_set_dir(LED_PIN, GPIO_OUT);
    stdio_init_all();
    printf("START:\n");
    while (1) 
    {
      printf("%i\n", LED_STATE);
      LED_STATE = !LED_STATE;
      gpio_put(LED_PIN, LED_STATE);
      sleep_ms(500);
    }
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT