aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r--keyboards/ergodox_ez/config.h13
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c20
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.h26
-rw-r--r--keyboards/ergodox_ez/glow/config.h26
-rw-r--r--keyboards/ergodox_ez/glow/glow.h23
-rw-r--r--keyboards/ergodox_ez/glow/rules.mk1
-rw-r--r--keyboards/ergodox_ez/led_i2c.c42
-rw-r--r--keyboards/ergodox_ez/matrix.c6
-rw-r--r--keyboards/ergodox_ez/post_config.h20
-rw-r--r--keyboards/ergodox_ez/readme.md5
-rw-r--r--keyboards/ergodox_ez/rules.mk1
-rw-r--r--keyboards/ergodox_ez/shine/config.h26
-rw-r--r--keyboards/ergodox_ez/shine/rules.mk1
-rw-r--r--keyboards/ergodox_ez/shine/shine.h23
14 files changed, 201 insertions, 32 deletions
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h
index eb0f2066d..bc63f6108 100644
--- a/keyboards/ergodox_ez/config.h
+++ b/keyboards/ergodox_ez/config.h
@@ -1,6 +1,8 @@
1/* 1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com> 2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com> 3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
4 6
5This program is free software: you can redistribute it and/or modify 7This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
@@ -21,10 +23,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include "config_common.h" 23#include "config_common.h"
22 24
23/* USB Device descriptor parameter */ 25/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED 26#define VENDOR_ID 0x3297
25#define PRODUCT_ID 0x1307
26#define DEVICE_VER 0x0001 27#define DEVICE_VER 0x0001
27#define MANUFACTURER ZSA Technology Labs Inc 28#define MANUFACTURER ZSA Technology Labs
29#define PRODUCT_ID 0x4974
28#define PRODUCT ErgoDox EZ 30#define PRODUCT ErgoDox EZ
29 31
30/* key matrix size */ 32/* key matrix size */
@@ -115,7 +117,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
115 * manufacturer specs. 117 * manufacturer specs.
116 */ 118 */
117 119
118#define USB_MAX_POWER_CONSUMPTION 500
119 120
120// RGB backlight 121// RGB backlight
121#define DRIVER_ADDR_1 0b1110100 122#define DRIVER_ADDR_1 0b1110100
@@ -154,6 +155,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
154//#define NO_ACTION_LAYER 155//#define NO_ACTION_LAYER
155//#define NO_ACTION_TAPPING 156//#define NO_ACTION_TAPPING
156//#define NO_ACTION_ONESHOT 157//#define NO_ACTION_ONESHOT
157//#define NO_ACTION_MACRO 158#define NO_ACTION_MACRO
158//#define NO_ACTION_FUNCTION 159#define NO_ACTION_FUNCTION
159//#define DEBUG_MATRIX_SCAN_RATE 160//#define DEBUG_MATRIX_SCAN_RATE
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 6c0b74ec4..e6f48c49f 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -1,3 +1,23 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
1#include "ergodox_ez.h" 21#include "ergodox_ez.h"
2 22
3extern inline void ergodox_board_led_on(void); 23extern inline void ergodox_board_led_on(void);
diff --git a/keyboards/ergodox_ez/ergodox_ez.h b/keyboards/ergodox_ez/ergodox_ez.h
index a8b02a96b..7bb271714 100644
--- a/keyboards/ergodox_ez/ergodox_ez.h
+++ b/keyboards/ergodox_ez/ergodox_ez.h
@@ -1,3 +1,23 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
1#pragma once 21#pragma once
2 22
3#include "quantum.h" 23#include "quantum.h"
@@ -5,6 +25,12 @@
5#include <stdbool.h> 25#include <stdbool.h>
6#include "i2c_master.h" 26#include "i2c_master.h"
7 27
28#if defined(KEYBOARD_ergodox_ez_glow)
29# include "glow.h"
30#elif defined(KEYBOARD_ergodox_ez_shine)
31# include "shine.h"
32#endif
33
8// I2C aliases and register addresses (see "mcp23018.md") 34// I2C aliases and register addresses (see "mcp23018.md")
9#define I2C_ADDR 0b0100000 35#define I2C_ADDR 0b0100000
10#define I2C_ADDR_WRITE ( (I2C_ADDR<<1) | I2C_WRITE ) 36#define I2C_ADDR_WRITE ( (I2C_ADDR<<1) | I2C_WRITE )
diff --git a/keyboards/ergodox_ez/glow/config.h b/keyboards/ergodox_ez/glow/config.h
new file mode 100644
index 000000000..674b7bffb
--- /dev/null
+++ b/keyboards/ergodox_ez/glow/config.h
@@ -0,0 +1,26 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#undef PRODUCT_ID
24#define PRODUCT_ID 0x4976
25#undef PRODUCT
26#define PRODUCT ErgoDox EZ Glow
diff --git a/keyboards/ergodox_ez/glow/glow.h b/keyboards/ergodox_ez/glow/glow.h
new file mode 100644
index 000000000..da7a6073e
--- /dev/null
+++ b/keyboards/ergodox_ez/glow/glow.h
@@ -0,0 +1,23 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#include "ergodox_ez.h"
diff --git a/keyboards/ergodox_ez/glow/rules.mk b/keyboards/ergodox_ez/glow/rules.mk
new file mode 100644
index 000000000..aad92997d
--- /dev/null
+++ b/keyboards/ergodox_ez/glow/rules.mk
@@ -0,0 +1 @@
RGB_MATRIX_ENABLE = yes
diff --git a/keyboards/ergodox_ez/led_i2c.c b/keyboards/ergodox_ez/led_i2c.c
index f5553a8b6..fe40ab797 100644
--- a/keyboards/ergodox_ez/led_i2c.c
+++ b/keyboards/ergodox_ez/led_i2c.c
@@ -1,31 +1,27 @@
1/* 1/*
2 * light weight WS2812 lib V2.0b 2Copyright 2012 Jun Wako <wakojun@gmail.com>
3 * 3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4 * Controls WS2811/WS2812/WS2812B RGB-LEDs 4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5 * Author: Tim (cpldcpu@gmail.com) 5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6 * 6
7 * Jan 18th, 2014 v2.0b Initial Version 7This program is free software: you can redistribute it and/or modify
8 * Nov 29th, 2015 v2.3 Added SK6812RGBW support 8it under the terms of the GNU General Public License as published by
9 * 9the Free Software Foundation, either version 2 of the License, or
10 * This program is free software: you can redistribute it and/or modify 10(at your option) any later version.
11 * it under the terms of the GNU General Public License as published by 11
12 * the Free Software Foundation, either version 2 of the License, or 12This program is distributed in the hope that it will be useful,
13 * (at your option) any later version. 13but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * This program is distributed in the hope that it will be useful, 15GNU General Public License for more details.
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17You should have received a copy of the GNU General Public License
18 * GNU General Public License for more details. 18along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * 19*/
20 * You should have received a copy of the GNU General Public License 20
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23#ifdef RGBLIGHT_ENABLE 21#ifdef RGBLIGHT_ENABLE
24 22
25# include "ergodox_ez.h" 23# include "ergodox_ez.h"
26 24
27extern rgblight_config_t rgblight_config;
28
29void rgblight_call_driver(LED_TYPE *led, uint8_t led_num) { 25void rgblight_call_driver(LED_TYPE *led, uint8_t led_num) {
30 i2c_init(); 26 i2c_init();
31 i2c_start(0x84, ERGODOX_EZ_I2C_TIMEOUT); 27 i2c_start(0x84, ERGODOX_EZ_I2C_TIMEOUT);
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c
index cfa76c1c3..685ce5009 100644
--- a/keyboards/ergodox_ez/matrix.c
+++ b/keyboards/ergodox_ez/matrix.c
@@ -1,7 +1,8 @@
1/* 1/*
2 2Copyright 2012 Jun Wako <wakojun@gmail.com>
3
4Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com> 3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
5 6
6This program is free software: you can redistribute it and/or modify 7This program is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
@@ -17,6 +18,7 @@ You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>. 18along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/ 19*/
19 20
21
20/* 22/*
21 * scan matrix 23 * scan matrix
22 */ 24 */
diff --git a/keyboards/ergodox_ez/post_config.h b/keyboards/ergodox_ez/post_config.h
index 526cc8c41..0d4fe5c68 100644
--- a/keyboards/ergodox_ez/post_config.h
+++ b/keyboards/ergodox_ez/post_config.h
@@ -1,3 +1,23 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
1#pragma once 21#pragma once
2 22
3#if !defined(ERGODOX_LED_15) && !defined(ERGODOX_LED_30) 23#if !defined(ERGODOX_LED_15) && !defined(ERGODOX_LED_30)
diff --git a/keyboards/ergodox_ez/readme.md b/keyboards/ergodox_ez/readme.md
index 796e96ce5..59a2840fd 100644
--- a/keyboards/ergodox_ez/readme.md
+++ b/keyboards/ergodox_ez/readme.md
@@ -11,6 +11,11 @@ The ErgoDox EZ is a mass produced version of the original ErgoDox keyboard, with
11Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
12 12
13 make ergodox_ez:default:flash 13 make ergodox_ez:default:flash
14
15For the ErgoDox EZ Shine, and Glow, use one of the following:
16
17 make ergodox_ez/shine:default:flash
18 make ergodox_ez/glow:default:flash
14 19
15See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). 20See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
16 21
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk
index 9ad4eaa18..b6311aca3 100644
--- a/keyboards/ergodox_ez/rules.mk
+++ b/keyboards/ergodox_ez/rules.mk
@@ -30,7 +30,6 @@ UNICODE_ENABLE = yes # Unicode
30SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard 30SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
31SLEEP_LED_ENABLE = no 31SLEEP_LED_ENABLE = no
32API_SYSEX_ENABLE = no 32API_SYSEX_ENABLE = no
33RGBLIGHT_ENABLE = yes
34 33
35RGB_MATRIX_ENABLE = no # enable later 34RGB_MATRIX_ENABLE = no # enable later
36DEBOUNCE_TYPE = eager_pr 35DEBOUNCE_TYPE = eager_pr
diff --git a/keyboards/ergodox_ez/shine/config.h b/keyboards/ergodox_ez/shine/config.h
new file mode 100644
index 000000000..cf4f59f3b
--- /dev/null
+++ b/keyboards/ergodox_ez/shine/config.h
@@ -0,0 +1,26 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#undef PRODUCT_ID
24#define PRODUCT_ID 0x4975
25#undef PRODUCT
26#define PRODUCT ErgoDox EZ Shine
diff --git a/keyboards/ergodox_ez/shine/rules.mk b/keyboards/ergodox_ez/shine/rules.mk
new file mode 100644
index 000000000..1e3cebb14
--- /dev/null
+++ b/keyboards/ergodox_ez/shine/rules.mk
@@ -0,0 +1 @@
RGBLIGHT_ENABLE = yes
diff --git a/keyboards/ergodox_ez/shine/shine.h b/keyboards/ergodox_ez/shine/shine.h
new file mode 100644
index 000000000..da7a6073e
--- /dev/null
+++ b/keyboards/ergodox_ez/shine/shine.h
@@ -0,0 +1,23 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4Copyright 2015 ZSA Technology Labs Inc (@zsa)
5Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#include "ergodox_ez.h"