Initial commit

This commit is contained in:
2026-01-17 09:53:08 +02:00
commit 159633e837
148 changed files with 42795 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "esp_err.h"
#include "esp_adc/adc_oneshot.h"
typedef enum {
INPUT_NONE = 0,
INPUT_UP,
INPUT_DOWN,
INPUT_LEFT,
INPUT_RIGHT,
INPUT_CENTER,
} input_event_t;
void input_init(void);
input_event_t input_poll(void);
esp_err_t input_read_raw(int *out_raw);
adc_channel_t input_get_channel(void);