Skip to content

Commit

Permalink
Merge pull request #464 from keyboardio/hardware/atmegakeyboard/no-ha…
Browse files Browse the repository at this point in the history
…rdcoded-list

hardware/ATMegaKeyboard: Don't hardcode the list of keyboards
  • Loading branch information
obra committed Nov 17, 2018
2 parents 6d41c79 + 1d65c02 commit aa4e338
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Kaleidoscope-Hardware-OLKB-Planck.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
*/

#pragma once

#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/olkb/Planck.h"
2 changes: 2 additions & 0 deletions src/Kaleidoscope-Hardware-Technomancy-Atreus.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
*/

#pragma once

#define KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD 1
#include "kaleidoscope/hardware/technomancy/Atreus.h"
5 changes: 3 additions & 2 deletions src/kaleidoscope/hardware/ATMegaKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/

#if ARDUINO_AVR_PLANCK || ARDUINO_AVR_ATREUS

#include "Kaleidoscope.h"

#if KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD

#include "kaleidoscope/hardware/ATMegaKeyboard.h"

namespace kaleidoscope {
Expand Down
2 changes: 1 addition & 1 deletion src/kaleidoscope/hardware/ATMegaKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

#if ARDUINO_AVR_PLANCK || ARDUINO_AVR_ATREUS
#if KALEIDOSCOPE_WITH_ATMEGA_KEYBOARD

#include <Arduino.h>
#include <KeyboardioHID.h>
Expand Down

0 comments on commit aa4e338

Please sign in to comment.