diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8f830f44 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# This stub makefile for a Kaleidoscope plugin pulls in +# all targets from the Kaleidoscope-Plugin library + +UNAME_S := $(shell uname -s) + +ifeq ($(UNAME_S),Darwin) +SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/ +else +SKETCHBOOK_DIR ?= $(HOME)/Arduino +endif + +BOARD_HARDWARE_PATH ?= $(SKETCHBOOK_DIR)/hardware +KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/avr/build-tools/makefiles/ +include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk diff --git a/library.properties b/library.properties new file mode 100644 index 00000000..6b2bf9ab --- /dev/null +++ b/library.properties @@ -0,0 +1,10 @@ +name=Kaleidoscope-Qukeys +version=0.0.0 +author=Michael Richters +maintainer=Michael Richters +sentence=Assign two keycodes to a single key. +paragraph=See README for more information. +category=Communication +url=https://github.com/gedankenlab/Kaleidoscope-Qukeys +architectures=avr +dot_a_linkage=true diff --git a/src/Kaleidoscope-Qukeys.h b/src/Kaleidoscope-Qukeys.h new file mode 100644 index 00000000..3a0e70f1 --- /dev/null +++ b/src/Kaleidoscope-Qukeys.h @@ -0,0 +1,21 @@ +/* -*- mode: c++ -*- + * Kaleidoscope-Qukeys -- Assign two keycodes to a single key + * Copyright (C) 2017 Michael Richters + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include diff --git a/src/Kaleidoscope/Qukeys.cpp b/src/Kaleidoscope/Qukeys.cpp new file mode 100644 index 00000000..9d6353c1 --- /dev/null +++ b/src/Kaleidoscope/Qukeys.cpp @@ -0,0 +1,35 @@ +/* -*- mode: c++ -*- + * Kaleidoscope-Qukeys -- Assign two keycodes to a single key + * Copyright (C) 2017 Michael Richters + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include +#include + +#ifdef ARDUINO_VIRTUAL +#define debug_print(...) printf(__VA_ARGS__) +#else +#define debug_print(...) +#endif + + +namespace kaleidoscope { + +// constructor +Qukeys::Qukeys(void) { +} + +} diff --git a/src/Kaleidoscope/Qukeys.h b/src/Kaleidoscope/Qukeys.h new file mode 100644 index 00000000..92da0b98 --- /dev/null +++ b/src/Kaleidoscope/Qukeys.h @@ -0,0 +1,37 @@ +/* -*- mode: c++ -*- + * Kaleidoscope-Qukeys -- Assign two keycodes to a single key + * Copyright (C) 2017 Michael Richters + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include + + +namespace kaleidoscope { + +class Qukeys : public KaleidoscopePlugin { + + public: + Qukeys(void); + + void begin(void) final; + + private: + +} + +}