|
|
@ -1,6 +1,6 @@
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
* Kaleidoscope-HostOS -- Host OS detection and tracking for Kaleidoscope
|
|
|
|
* Kaleidoscope-HostOS -- Host OS detection and tracking for Kaleidoscope
|
|
|
|
* Copyright (C) 2016, 2017 Gergely Nagy
|
|
|
|
* Copyright (C) 2016, 2017, 2018 Gergely Nagy
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
@ -19,6 +19,7 @@
|
|
|
|
#include <Kaleidoscope-HostOS.h>
|
|
|
|
#include <Kaleidoscope-HostOS.h>
|
|
|
|
#include <Kaleidoscope/HostOS-select.h>
|
|
|
|
#include <Kaleidoscope/HostOS-select.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// *INDENT-OFF*
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
[0] = KEYMAP_STACKED
|
|
|
|
(Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey,
|
|
|
|
(Key_NoKey, Key_1, Key_2, Key_3, Key_4, Key_5, Key_NoKey,
|
|
|
@ -37,12 +38,13 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
|
|
|
|
Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl,
|
|
|
|
Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl,
|
|
|
|
Key_skip),
|
|
|
|
Key_skip),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// *INDENT-ON*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(HostOS);
|
|
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
void setup() {
|
|
|
|
Serial.begin(9600);
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.use(&HostOS);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
|
|
|
|
|
|
|
|
Serial.print("Host OS id is: ");
|
|
|
|
Serial.print("Host OS id is: ");
|
|
|
|