aboutsummaryrefslogtreecommitdiff
path: root/include/ubox_joy.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-08-28 15:16:12 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-08-28 15:30:25 +0100
commite35cff6d299a07d9b34f303717083a9299a37e82 (patch)
tree7204099ad4978dfc67e04bc11df29d0f366af851 /include/ubox_joy.h
downloaduboxlib-dos-e35cff6d299a07d9b34f303717083a9299a37e82.tar.gz
uboxlib-dos-e35cff6d299a07d9b34f303717083a9299a37e82.zip
Initial import
Diffstat (limited to 'include/ubox_joy.h')
-rw-r--r--include/ubox_joy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ubox_joy.h b/include/ubox_joy.h
new file mode 100644
index 0000000..002b58e
--- /dev/null
+++ b/include/ubox_joy.h
@@ -0,0 +1,10 @@
+#ifndef _UBOX_JOY_H
+#define _UBOX_JOY_H
+
+/* it also calibrates */
+uint8_t ubox_joy_detect();
+
+/* returns the bits specified in ubox_control.h */
+uint8_t ubox_joy_read();
+
+#endif /* _UBOX_JOY_H */