summaryrefslogtreecommitdiff
path: root/converter/sun_usb/command_extra.c
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-06-11 13:28:27 -0500
committerIBNobody <ibnobody@gmail.com>2016-06-11 13:28:27 -0500
commit50621a2e6a7d03add0c202e5b2698338c7fbbf5b (patch)
treed6f002712c22e8cf4523e04a9da889c7ec379d6b /converter/sun_usb/command_extra.c
parent26277dbdf40ba7247981361c956ea44c92bf76ea (diff)
parentd9e4dad0a828a8a904f44dda090a4d6d08fe2948 (diff)
Merge remote-tracking branch 'remotes/jackhumbert/master'
Diffstat (limited to 'converter/sun_usb/command_extra.c')
-rw-r--r--converter/sun_usb/command_extra.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/converter/sun_usb/command_extra.c b/converter/sun_usb/command_extra.c
deleted file mode 100644
index aba3fe6da3..0000000000
--- a/converter/sun_usb/command_extra.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include "stdbool.h"
-#include "stdint.h"
-#include "keycode.h"
-#include "serial.h"
-#include "print.h"
-#include "command.h"
-
-bool command_extra(uint8_t code)
-{
- switch (code) {
- case KC_H:
- case KC_SLASH: /* ? */
- print("\n\n----- Sun converter Help -----\n");
- print("Up: Bell On\n");
- print("Down: Bell Off\n");
- print("Left: Click On\n");
- print("Right: Click Off\n");
- print("PgUp: LED all On\n");
- print("PgDown: LED all On\n");
- print("Insert: Layout\n");
- print("Delete: Reset\n");
- return false;
- case KC_DEL:
- print("Reset\n");
- serial_send(0x01);
- break;
- case KC_UP:
- print("Bell On\n");
- serial_send(0x02);
- break;
- case KC_DOWN:
- print("Bell Off\n");
- serial_send(0x03);
- break;
- case KC_LEFT:
- print("Click On\n");
- serial_send(0x0A);
- break;
- case KC_RIGHT:
- print("Click Off\n");
- serial_send(0x0B);
- break;
- case KC_PGUP:
- print("LED all on\n");
- serial_send(0x0E);
- serial_send(0xFF);
- break;
- case KC_PGDOWN:
- print("LED all off\n");
- serial_send(0x0E);
- serial_send(0x00);
- break;
- case KC_INSERT:
- print("layout\n");
- serial_send(0x0F);
- break;
- default:
- return false;
- }
- return true;
-}