aboutsummaryrefslogtreecommitdiff
path: root/client/cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/cmd.cpp')
-rw-r--r--client/cmd.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/cmd.cpp b/client/cmd.cpp
new file mode 100644
index 0000000..99a4dd6
--- /dev/null
+++ b/client/cmd.cpp
@@ -0,0 +1,15 @@
+#include <cstdlib>
+#include <string.h>
+
+#include "cmd.h"
+#include "sock.h"
+
+void cmd_exit(char*) {
+ exit(EXIT_SUCCESS);
+}
+
+void cmd_test(char*) {
+ const char* data = "Hello world!";
+ i2c_send(0x39, (char*) data, strlen(data));
+}
+