add remote source code (#12)

Co-authored-by: jyy <jiangyeying@m5stack.com>
This commit is contained in:
Jiangyy
2026-04-20 16:27:57 +08:00
committed by GitHub
parent dd34f9e0ec
commit 0cb413697b
29 changed files with 10886 additions and 0 deletions
@@ -0,0 +1,29 @@
#ifndef _JOYSTICK_BASIC_H_
#define _JOYSTICK_BASIC_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int channel;
int id;
int8_t bat;
uint16_t joyX;
uint16_t joyY;
uint8_t screen_mode;
uint8_t select_mode;
bool btnB_status;
float accel_x;
float accel_y;
float accel_z;
} joystick_data_t;
extern joystick_data_t joystick_data;
#ifdef __cplusplus
}
#endif
#endif