From e35cff6d299a07d9b34f303717083a9299a37e82 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 28 Aug 2023 15:16:12 +0100 Subject: Initial import --- include/ubox_control.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/ubox_control.h (limited to 'include/ubox_control.h') diff --git a/include/ubox_control.h b/include/ubox_control.h new file mode 100644 index 0000000..47fff33 --- /dev/null +++ b/include/ubox_control.h @@ -0,0 +1,15 @@ +#ifndef _UBOX_CONTROL_H +#define _UBOX_CONTROL_H + +#define UBOX_CTL_NONE 0 +#define UBOX_CTL_UP 1 +#define UBOX_CTL_DOWN 2 +#define UBOX_CTL_RIGHT 4 +#define UBOX_CTL_LEFT 8 +#define UBOX_CTL_FIRE1 16 +#define UBOX_CTL_FIRE2 32 + +void ubox_control_init(); +uint8_t ubox_control_read(); + +#endif /* _UBOX_CONTROL_H */ -- cgit v1.2.3