Initial commit
This commit is contained in:
18
components/input/include/input.h
Normal file
18
components/input/include/input.h
Normal 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);
|
||||
Reference in New Issue
Block a user