#include "hardware/gpio.h"
#include "pico/stdlib.h"
#include <stdio.h>

const int LED_0 = 5;
const int BTN_0 = 15;

const int LED_1 = 28;
const int BTN_1 = 16;

void btn_0_callback(uint gpio, uint32_t events) {
    gpio_put(LED_0, 1);
    sleep_ms(250);
    gpio_put(LED_0, 0);
}

void btn_1_callback(uint gpio, uint32_t events) {
    gpio_put(LED_1, 1);
    sleep_ms(250);
    gpio_put(LED_1, 0);
}

int main() {
  stdio_init_all();

  gpio_init(BTN_0);
  gpio_set_dir(BTN_0, GPIO_IN);
  gpio_pull_up(BTN_0);
  gpio_set_irq_enabled_with_callback(
      BTN_0, GPIO_IRQ_EDGE_FALL, true, &btn_0_callback);

  gpio_init(LED_0);
  gpio_set_dir(LED_0, GPIO_OUT);

  gpio_init(BTN_1);
  gpio_set_dir(BTN_1, GPIO_IN);
  gpio_pull_up(BTN_1);
  gpio_set_irq_enabled_with_callback(
      BTN_1, GPIO_IRQ_EDGE_FALL, true, &btn_1_callback);

  gpio_init(LED_1);
  gpio_set_dir(LED_1, GPIO_OUT);


  while (true) {
  }

}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
pico:GP0
pico:GP1
pico:GND.1
pico:GP2
pico:GP3
pico:GP4
pico:GP5
pico:GND.2
pico:GP6
pico:GP7
pico:GP8
pico:GP9
pico:GND.3
pico:GP10
pico:GP11
pico:GP12
pico:GP13
pico:GND.4
pico:GP14
pico:GP15
pico:GP16
pico:GP17
pico:GND.5
pico:GP18
pico:GP19
pico:GP20
pico:GP21
pico:GND.6
pico:GP22
pico:RUN
pico:GP26
pico:GP27
pico:GND.7
pico:GP28
pico:ADC_VREF
pico:3V3
pico:3V3_EN
pico:GND.8
pico:VSYS
pico:VBUS
r1:1
r1:2
led1:A
led1:C
r2:1
r2:2
led2:A
led2:C
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
btn2:1.l
btn2:2.l
btn2:1.r
btn2:2.r