summaryrefslogtreecommitdiff
path: root/keyboards/laplace
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/laplace')
-rw-r--r--keyboards/laplace/config.h54
-rw-r--r--keyboards/laplace/keymaps/bakingpy/keymap.c63
-rw-r--r--keyboards/laplace/keymaps/bakingpy/rules.mk3
-rw-r--r--keyboards/laplace/keymaps/default/keymap.c63
-rw-r--r--keyboards/laplace/keymaps/default/rules.mk3
-rw-r--r--keyboards/laplace/laplace.c1
-rw-r--r--keyboards/laplace/laplace.h35
-rw-r--r--keyboards/laplace/readme.md20
-rw-r--r--keyboards/laplace/rules.mk64
9 files changed, 306 insertions, 0 deletions
diff --git a/keyboards/laplace/config.h b/keyboards/laplace/config.h
new file mode 100644
index 0000000000..b4a5243689
--- /dev/null
+++ b/keyboards/laplace/config.h
@@ -0,0 +1,54 @@
+/*
+Copyright 2018 Danny Nguyen <danny@keeb.io>
+
+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 2 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 <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xCB10
+#define PRODUCT_ID 0x1147
+#define DEVICE_VER 0x0100
+#define MANUFACTURER Keebio
+#define PRODUCT Laplace
+#define DESCRIPTION 40 percent staggered keyboard
+
+/* key matrix size */
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 7
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS {D3, F4, D2, F5, D7, B4, C6, E6}
+#define MATRIX_COL_PINS {D1, F6, F7, B1, B3, B2, B6}
+
+/* WS2812 RGB LED */
+#define RGB_DI_PIN D4
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 14
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+#define TAPPING_TERM 200
+
+/* key combination for magic key command */
+#define IS_COMMAND() ( \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
+)
+
+#endif
diff --git a/keyboards/laplace/keymaps/bakingpy/keymap.c b/keyboards/laplace/keymaps/bakingpy/keymap.c
new file mode 100644
index 0000000000..c600cd4ad9
--- /dev/null
+++ b/keyboards/laplace/keymaps/bakingpy/keymap.c
@@ -0,0 +1,63 @@
+#include "laplace.h"
+
+#define _BASE 0
+#define _FN1 1
+#define _FN2 2
+
+#define KC_ KC_TRNS
+#define _______ KC_TRNS
+#define XXXXXXX KC_NO
+#define KC_FN1 MO(_FN1)
+#define KC_FN2 MO(_FN2)
+#define KC_SPFN1 LT(_FN1, KC_SPACE)
+#define KC_SPFN2 LT(_FN2, KC_SPACE)
+#define KC_BSFN1 LT(_FN1, KC_BSPC)
+#define KC_BSFN2 LT(_FN2, KC_BSPC)
+#define KC_RST RESET
+#define KC_DBUG DEBUG
+#define KC_RTOG RGB_TOG
+#define KC_RMOD RGB_MOD
+#define KC_RHUI RGB_HUI
+#define KC_RHUD RGB_HUD
+#define KC_RSAI RGB_SAI
+#define KC_RSAD RGB_SAD
+#define KC_RVAI RGB_VAI
+#define KC_RVAD RGB_VAD
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = KC_KEYMAP(
+ //,----+----+----+----+----+----+----+----+----+----+----+----+----.
+ ESC , Q , W , E , R , T , Y , U , I , O , P ,DEL ,BSPC,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ TAB , A , S , D , F , G , H , J , K , L ,QUOT, ENTER ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------+
+ LSFT , Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, RSFT ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------+
+ GRV ,LCTL,LALT ,LGUI, SPFN1 , BSFN2 , FN2 ,RALT ,RCTL , FN1
+ //`-----+----+-----+----+--------+--------+-----+-----+-----+------'
+ ),
+
+ [_FN1] = KC_KEYMAP(
+ //,----+----+----+----+----+----+----+----+----+----+----+----+----.
+ GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL ,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ RST ,RHUI,RSAI,RVAI,VOLU,LBRC,RBRC, 4 , 5 , 6 ,SCLN, ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------+
+ RMOD ,RHUD,RSAD,RVAD,VOLD,LCBR,RCBR, 1 , 2 , 3 , UP , ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------+
+ RTOG , , , , , DEL , 0 ,LEFT ,DOWN , RGHT
+ //`-----+----+-----+----+--------+--------+-----+-----+-----+------'
+ ),
+
+ [_FN2] = KC_KEYMAP(
+ //,----+----+----+----+----+----+----+----+----+----+----+----+----.
+ TILD,EXLM, AT ,HASH,DLR ,PERC,CIRC,AMPR,ASTR,LPRN,RPRN,UNDS,PLUS,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ , , ,INS ,PGUP,HOME, , , , ,COLN, ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------+
+ , , ,DEL ,PGDN,END , , , , , , ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------+
+ , , , , DEL , , , , ,
+ //`-----+----+-----+----+--------+--------+-----+-----+-----+------'
+ )
+};
diff --git a/keyboards/laplace/keymaps/bakingpy/rules.mk b/keyboards/laplace/keymaps/bakingpy/rules.mk
new file mode 100644
index 0000000000..457a3d01d4
--- /dev/null
+++ b/keyboards/laplace/keymaps/bakingpy/rules.mk
@@ -0,0 +1,3 @@
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
diff --git a/keyboards/laplace/keymaps/default/keymap.c b/keyboards/laplace/keymaps/default/keymap.c
new file mode 100644
index 0000000000..c06cbdc7fb
--- /dev/null
+++ b/keyboards/laplace/keymaps/default/keymap.c
@@ -0,0 +1,63 @@
+#include "laplace.h"
+
+#define _BASE 0
+#define _FN1 1
+#define _FN2 2
+
+#define KC_ KC_TRNS
+#define _______ KC_TRNS
+#define XXXXXXX KC_NO
+#define KC_FN1 MO(_FN1)
+#define KC_FN2 MO(_FN2)
+#define KC_SPFN1 LT(_FN1, KC_SPACE)
+#define KC_SPFN2 LT(_FN2, KC_SPACE)
+#define KC_BSFN1 LT(_FN1, KC_BSPC)
+#define KC_BSFN2 LT(_FN2, KC_BSPC)
+#define KC_RST RESET
+#define KC_DBUG DEBUG
+#define KC_RTOG RGB_TOG
+#define KC_RMOD RGB_MOD
+#define KC_RHUI RGB_HUI
+#define KC_RHUD RGB_HUD
+#define KC_RSAI RGB_SAI
+#define KC_RSAD RGB_SAD
+#define KC_RVAI RGB_VAI
+#define KC_RVAD RGB_VAD
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = KC_KEYMAP(
+ //,----+----+----+----+----+----|----+----+----+----+----+----+----.
+ ESC , Q , W , E , R , T , Y , U , I , O , P ,DEL ,BSPC,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ TAB , A , S , D , F , G , H , J , K , L ,QUOT, ENTER ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------|
+ LSFT , Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, RSFT ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------|
+ LCTL ,LALT,LGUI ,FN1 , SPFN1 , BSFN2 ,RGUI ,RALT , FN2 , RCTL
+ //`-----+----+-----+----+--------`--------+-----+-----+-----+------'
+ ),
+
+ [_FN1] = KC_KEYMAP(
+ //,----+----+----+----+----+----+----+----+----+----+----+----+----.
+ GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL ,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ RST ,RHUI,RSAI,RVAI,VOLU,LBRC,RBRC, 4 , 5 , 6 ,SCLN, ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------+
+ RMOD ,RHUD,RSAD,RVAD,VOLD,LCBR,RCBR, 1 , 2 , 3 , UP , ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------+
+ RTOG , , , , , DEL , 0 ,LEFT ,DOWN , RGHT
+ //`-----+----+-----+----+--------+--------+-----+-----+-----+------'
+ ),
+
+ [_FN2] = KC_KEYMAP(
+ //,----+----+----+----+----+----+----+----+----+----+----+----+----.
+ TILD,EXLM, AT ,HASH,DLR ,PERC,CIRC,AMPR,ASTR,LPRN,RPRN,UNDS,PLUS,
+ //|----`----`----`----`----`----`----`----`----`----`----`----`----+
+ , , ,INS ,PGUP,HOME, , , , ,COLN, ,
+ //|-----`----`----`----`----`----`----`----`----`----`----`--------+
+ , , ,DEL ,PGDN,END , , , , , , ,
+ //|-------`----`----`----`----`----`----`----`----`----`----`------+
+ , , , , DEL , , , , ,
+ //`-----+----+-----+----+--------+--------+-----+-----+-----+------'
+ )
+};
diff --git a/keyboards/laplace/keymaps/default/rules.mk b/keyboards/laplace/keymaps/default/rules.mk
new file mode 100644
index 0000000000..457a3d01d4
--- /dev/null
+++ b/keyboards/laplace/keymaps/default/rules.mk
@@ -0,0 +1,3 @@
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
diff --git a/keyboards/laplace/laplace.c b/keyboards/laplace/laplace.c
new file mode 100644
index 0000000000..dcf32aee69
--- /dev/null
+++ b/keyboards/laplace/laplace.c
@@ -0,0 +1 @@
+#include "laplace.h"
diff --git a/keyboards/laplace/laplace.h b/keyboards/laplace/laplace.h
new file mode 100644
index 0000000000..f8ad40b335
--- /dev/null
+++ b/keyboards/laplace/laplace.h
@@ -0,0 +1,35 @@
+#ifndef LAPLACE_H
+#define LAPLACE_H
+
+#include "quantum.h"
+
+#define KEYMAP( \
+ A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, \
+ B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B13, \
+ C1, C2, C3, C4, C5, C6, C7, C9, C10, C11, C12, C13, \
+ D1, D2, D3, D4, D5, D7, D10, D11, D12, D13 \
+ ) { \
+ {A1, A2, A3, A4, A5, A6, A7}, \
+ {KC_NO, A13, A12, A11, A10, A9, A8}, \
+ {B1, B2, B3, B4, B5, B6, B7}, \
+ {KC_NO, B13, KC_NO, B11, B10, B9, B8}, \
+ {C1, C2, C3, C4, C5, C6, C7}, \
+ {KC_NO, C13, C12, C11, C10, C9, KC_NO}, \
+ {D1, D2, D3, D4, D5, KC_NO, D7}, \
+ {KC_NO, D13, D12, D11, D10, KC_NO, KC_NO} \
+ }
+
+// Used to create a keymap using only KC_ prefixed keys
+#define KC_KEYMAP( \
+ A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, \
+ B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B13, \
+ C1, C2, C3, C4, C5, C6, C7, C9, C10, C11, C12, C13, \
+ D1, D2, D3, D4, D5, D7, D10, D11, D12, D13 \
+ ) \
+ KEYMAP( \
+ KC_##A1, KC_##A2, KC_##A3, KC_##A4, KC_##A5, KC_##A6, KC_##A7, KC_##A8, KC_##A9, KC_##A10, KC_##A11, KC_##A12, KC_##A13, \
+ KC_##B1, KC_##B2, KC_##B3, KC_##B4, KC_##B5, KC_##B6, KC_##B7, KC_##B8, KC_##B9, KC_##B10, KC_##B11, KC_##B13, \
+ KC_##C1, KC_##C2, KC_##C3, KC_##C4, KC_##C5, KC_##C6, KC_##C7, KC_##C9, KC_##C10, KC_##C11, KC_##C12, KC_##C13, \
+ KC_##D1, KC_##D2, KC_##D3, KC_##D4, KC_##D5, KC_##D7, KC_##D10, KC_##D11, KC_##D12, KC_##D13 \
+ )
+#endif
diff --git a/keyboards/laplace/readme.md b/keyboards/laplace/readme.md
new file mode 100644
index 0000000000..71b3280082
--- /dev/null
+++ b/keyboards/laplace/readme.md
@@ -0,0 +1,20 @@
+Laplace
+=======
+
+A 40% staggered keyboard made and sold by Keebio. [More info at Keebio](https://keeb.io).
+
+Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
+Hardware Supported: Pro Micro
+Hardware Availability: [Keebio](https://keeb.io)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make laplace:default
+
+Example of flashing this keyboard:
+
+ make laplace:default:avrdude
+
+See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
+
+A build guide for this keyboard can be found here: [Keebio Build Guides](https://docs.keeb.io)
diff --git a/keyboards/laplace/rules.mk b/keyboards/laplace/rules.mk
new file mode 100644
index 0000000000..fe22161cb9
--- /dev/null
+++ b/keyboards/laplace/rules.mk
@@ -0,0 +1,64 @@
+# MCU name
+#MCU = at90usb1287
+MCU = atmega32u4
+
+# Processor frequency.
+# This will define a symbol, F_CPU, in all source code files equal to the
+# processor frequency in Hz. You can then use this symbol in your source code to
+# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
+# automatically to create a 32-bit value in your source code.
+#
+# This will be an integer division of F_USB below, as it is sourced by
+# F_USB after it has run through any CPU prescalers. Note that this value
+# does not *change* the processor frequency - it should merely be updated to
+# reflect the processor speed set externally so that the code can use accurate
+# software delays.
+F_CPU = 16000000
+
+#
+# LUFA specific
+#
+# Target architecture (see library "Board Types" documentation).
+ARCH = AVR8
+
+# Input clock frequency.
+# This will define a symbol, F_USB, in all source code files equal to the
+# input clock frequency (before any prescaling is performed) in Hz. This value may
+# differ from F_CPU if prescaling is used on the latter, and is required as the
+# raw input clock is fed directly to the PLL sections of the AVR for high speed
+# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
+# at the end, this will be done automatically to create a 32-bit value in your
+# source code.
+#
+# If no clock division is performed on the input clock inside the AVR (via the
+# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
+F_USB = $(F_CPU)
+
+# Interrupt driven control endpoint task(+60)
+OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
+
+
+# Boot Section Size in *bytes*
+# Teensy halfKay 512
+# Teensy++ halfKay 1024
+# Atmel DFU loader 4096
+# LUFA bootloader 4096
+# USBaspLoader 2048
+OPT_DEFS += -DBOOTLOADER_SIZE=4096
+
+# Build Options
+# change to "no" to disable the options, or define them in the Makefile in
+# the appropriate keymap folder that will get included automatically
+#
+BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+MIDI_ENABLE = no # MIDI controls
+AUDIO_ENABLE = no # Audio output on port C6
+UNICODE_ENABLE = no # Unicode
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.