Skip to content

Instantly share code, notes, and snippets.

@jvanderberg
jvanderberg / led_ir_example.c
Last active April 26, 2025 21:27
Pi Pico C SDK example of reading IR codes from a 'standard' 44 key IR LED remote.
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "hardware/timer.h"
#include "stdio.h"
#include "pico/util/queue.h"
#define IR_PIN 16
#define BRIGHTNESS_UP 0x3A
#define BRIGHTNESS_DN 0xBA
#define PLAY 0x82