diff options
author | tmk <nobody@nowhere> | 2014-08-01 13:26:42 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-08-01 13:26:42 +0900 |
commit | 523cc6aa2ed0879c2d297e7060de2962987c8c7a (patch) | |
tree | 04deb0e84390623311d572bb131eeceafc509d1b /converter/sun_usb/command_extra.c | |
parent | 79840c678e13f9a737f80048bc3b9c9c55e3fc77 (diff) |
Add build option and Sun specific commands
Diffstat (limited to 'converter/sun_usb/command_extra.c')
-rw-r--r-- | converter/sun_usb/command_extra.c | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/converter/sun_usb/command_extra.c b/converter/sun_usb/command_extra.c index 50389467ea..aba3fe6da3 100644 --- a/converter/sun_usb/command_extra.c +++ b/converter/sun_usb/command_extra.c @@ -11,11 +11,19 @@ bool command_extra(uint8_t 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("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); @@ -32,7 +40,17 @@ bool command_extra(uint8_t code) print("Click Off\n"); serial_send(0x0B); break; - case KC_NUMLOCK: + 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; |