diff options
Diffstat (limited to 'keyboards/evyd13')
-rw-r--r-- | keyboards/evyd13/eon75/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/eon75/eon75.c | 29 | ||||
-rw-r--r-- | keyboards/evyd13/eon95/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/eon95/eon95.c | 29 | ||||
-rw-r--r-- | keyboards/evyd13/gh80_1800/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/gh80_1800/gh80_1800.c | 28 | ||||
-rw-r--r-- | keyboards/evyd13/minitomic/config.h | 3 | ||||
-rw-r--r-- | keyboards/evyd13/minitomic/minitomic.c | 34 | ||||
-rw-r--r-- | keyboards/evyd13/mx5160/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/mx5160/mx5160.c | 42 | ||||
-rw-r--r-- | keyboards/evyd13/nt660/config.h | 2 | ||||
-rw-r--r-- | keyboards/evyd13/nt660/nt660.c | 16 | ||||
-rw-r--r-- | keyboards/evyd13/quackfire/config.h | 4 | ||||
-rw-r--r-- | keyboards/evyd13/quackfire/quackfire.c | 28 | ||||
-rw-r--r-- | keyboards/evyd13/wasdat/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/wasdat/wasdat.c | 31 | ||||
-rw-r--r-- | keyboards/evyd13/wasdat_code/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/wasdat_code/wasdat_code.c | 31 | ||||
-rw-r--r-- | keyboards/evyd13/wonderland/config.h | 5 | ||||
-rw-r--r-- | keyboards/evyd13/wonderland/wonderland.c | 33 |
20 files changed, 44 insertions, 301 deletions
diff --git a/keyboards/evyd13/eon75/config.h b/keyboards/evyd13/eon75/config.h index 707665140..d7d84de2a 100644 --- a/keyboards/evyd13/eon75/config.h +++ b/keyboards/evyd13/eon75/config.h | |||
@@ -51,6 +51,11 @@ | |||
51 | */ | 51 | */ |
52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
53 | 53 | ||
54 | #define LED_NUM_LOCK_PIN B7 | ||
55 | #define LED_CAPS_LOCK_PIN D5 | ||
56 | #define LED_SCROLL_LOCK_PIN B0 | ||
57 | #define LED_PIN_ON_STATE 0 | ||
58 | |||
54 | // #define BACKLIGHT_PIN B7 | 59 | // #define BACKLIGHT_PIN B7 |
55 | // #define BACKLIGHT_BREATHING | 60 | // #define BACKLIGHT_BREATHING |
56 | // #define BACKLIGHT_LEVELS 3 | 61 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/eon75/eon75.c b/keyboards/evyd13/eon75/eon75.c index 67e9fe66a..38620a636 100644 --- a/keyboards/evyd13/eon75/eon75.c +++ b/keyboards/evyd13/eon75/eon75.c | |||
@@ -14,32 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "eon75.h" | 16 | #include "eon75.h" |
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | matrix_init_user(); | ||
22 | led_init_ports(); | ||
23 | }; | ||
24 | |||
25 | void led_init_ports(void) { | ||
26 | // * Set our LED pins as output and high | ||
27 | setPinOutput(D5); | ||
28 | writePinHigh(D5); | ||
29 | |||
30 | setPinOutput(B7); | ||
31 | writePinHigh(B7); | ||
32 | |||
33 | setPinOutput(B0); | ||
34 | writePinHigh(B0); | ||
35 | } | ||
36 | |||
37 | bool led_update_kb(led_t led_state) { | ||
38 | if(led_update_user(led_state)) { | ||
39 | writePin(D5, !led_state.caps_lock); | ||
40 | writePin(B7, !led_state.num_lock); | ||
41 | writePin(B0, !led_state.scroll_lock); | ||
42 | } | ||
43 | |||
44 | return true; | ||
45 | } | ||
diff --git a/keyboards/evyd13/eon95/config.h b/keyboards/evyd13/eon95/config.h index eb44d8957..2d9ede3ee 100644 --- a/keyboards/evyd13/eon95/config.h +++ b/keyboards/evyd13/eon95/config.h | |||
@@ -51,6 +51,11 @@ | |||
51 | */ | 51 | */ |
52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
53 | 53 | ||
54 | #define LED_NUM_LOCK_PIN B7 | ||
55 | #define LED_CAPS_LOCK_PIN D5 | ||
56 | #define LED_SCROLL_LOCK_PIN B0 | ||
57 | #define LED_PIN_ON_STATE 0 | ||
58 | |||
54 | // #define BACKLIGHT_PIN B7 | 59 | // #define BACKLIGHT_PIN B7 |
55 | // #define BACKLIGHT_BREATHING | 60 | // #define BACKLIGHT_BREATHING |
56 | // #define BACKLIGHT_LEVELS 3 | 61 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/eon95/eon95.c b/keyboards/evyd13/eon95/eon95.c index 5eec86cc1..603d84a13 100644 --- a/keyboards/evyd13/eon95/eon95.c +++ b/keyboards/evyd13/eon95/eon95.c | |||
@@ -14,32 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "eon95.h" | 16 | #include "eon95.h" |
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | matrix_init_user(); | ||
22 | led_init_ports(); | ||
23 | } | ||
24 | |||
25 | void led_init_ports(void) { | ||
26 | // * Set our LED pins as output and high | ||
27 | setPinOutput(D5); | ||
28 | writePinHigh(D5); | ||
29 | |||
30 | setPinOutput(B7); | ||
31 | writePinHigh(B7); | ||
32 | |||
33 | setPinOutput(B0); | ||
34 | writePinHigh(B0); | ||
35 | } | ||
36 | |||
37 | bool led_update_kb(led_t led_state) { | ||
38 | if(led_update_user(led_state)) { | ||
39 | writePin(D5, !led_state.caps_lock); | ||
40 | writePin(B7, !led_state.num_lock); | ||
41 | writePin(B0, !led_state.scroll_lock); | ||
42 | } | ||
43 | |||
44 | return true; | ||
45 | } | ||
diff --git a/keyboards/evyd13/gh80_1800/config.h b/keyboards/evyd13/gh80_1800/config.h index c230aa9af..26ad8a8b1 100644 --- a/keyboards/evyd13/gh80_1800/config.h +++ b/keyboards/evyd13/gh80_1800/config.h | |||
@@ -51,6 +51,11 @@ | |||
51 | */ | 51 | */ |
52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
53 | 53 | ||
54 | #define LED_NUM_LOCK_PIN D6 | ||
55 | #define LED_CAPS_LOCK_PIN D7 | ||
56 | #define LED_SCROLL_LOCK_PIN D4 | ||
57 | #define LED_PIN_ON_STATE 0 | ||
58 | |||
54 | // #define BACKLIGHT_PIN B7 | 59 | // #define BACKLIGHT_PIN B7 |
55 | // #define BACKLIGHT_BREATHING | 60 | // #define BACKLIGHT_BREATHING |
56 | // #define BACKLIGHT_LEVELS 3 | 61 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/gh80_1800/gh80_1800.c b/keyboards/evyd13/gh80_1800/gh80_1800.c index 770c6f78b..1691b3949 100644 --- a/keyboards/evyd13/gh80_1800/gh80_1800.c +++ b/keyboards/evyd13/gh80_1800/gh80_1800.c | |||
@@ -14,31 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "gh80_1800.h" | 16 | #include "gh80_1800.h" |
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | led_init_ports(); | ||
24 | } | ||
25 | |||
26 | void led_init_ports(void) { | ||
27 | setPinOutput(D6); | ||
28 | setPinOutput(D7); | ||
29 | setPinOutput(D4); | ||
30 | |||
31 | writePinHigh(D6); | ||
32 | writePinHigh(D7); | ||
33 | writePinHigh(D4); | ||
34 | } | ||
35 | |||
36 | bool led_update_kb(led_t led_state) { | ||
37 | if(led_update_user(led_state)) { | ||
38 | writePin(D6, !led_state.num_lock); | ||
39 | writePin(D7, !led_state.caps_lock); | ||
40 | writePin(D4, !led_state.scroll_lock); | ||
41 | } | ||
42 | |||
43 | return true; | ||
44 | } | ||
diff --git a/keyboards/evyd13/minitomic/config.h b/keyboards/evyd13/minitomic/config.h index c041e86a2..f26b4d1d9 100644 --- a/keyboards/evyd13/minitomic/config.h +++ b/keyboards/evyd13/minitomic/config.h | |||
@@ -51,6 +51,9 @@ | |||
51 | */ | 51 | */ |
52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
53 | 53 | ||
54 | #define LED_CAPS_LOCK_PIN C7 | ||
55 | #define LED_PIN_ON_STATE 0 | ||
56 | |||
54 | // #define BACKLIGHT_PIN B7 | 57 | // #define BACKLIGHT_PIN B7 |
55 | // #define BACKLIGHT_BREATHING | 58 | // #define BACKLIGHT_BREATHING |
56 | // #define BACKLIGHT_LEVELS 3 | 59 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/minitomic/minitomic.c b/keyboards/evyd13/minitomic/minitomic.c index 8d5f11a50..15f282964 100644 --- a/keyboards/evyd13/minitomic/minitomic.c +++ b/keyboards/evyd13/minitomic/minitomic.c | |||
@@ -14,37 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "minitomic.h" | 16 | #include "minitomic.h" |
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | led_init_ports(); | ||
24 | } | ||
25 | |||
26 | void matrix_scan_kb(void) { | ||
27 | // put your looping keyboard code here | ||
28 | // runs every cycle (a lot) | ||
29 | |||
30 | matrix_scan_user(); | ||
31 | } | ||
32 | |||
33 | void led_init_ports(void) { | ||
34 | //Set led pin as output, then high (off) | ||
35 | writePinHigh(C7); | ||
36 | } | ||
37 | |||
38 | bool led_update_kb(led_t led_state) { | ||
39 | bool res = led_update_user(led_state); | ||
40 | if(res) { | ||
41 | // writePin sets the pin high for 1 and low for 0. | ||
42 | // In this example the pins are inverted, setting | ||
43 | // it low/0 turns it on, and high/1 turns the LED off. | ||
44 | // This behavior depends on whether the LED is between the pin | ||
45 | // and VCC or the pin and GND. | ||
46 | writePin(C7, !led_state.caps_lock); | ||
47 | } | ||
48 | return res; | ||
49 | } | ||
50 | |||
diff --git a/keyboards/evyd13/mx5160/config.h b/keyboards/evyd13/mx5160/config.h index 926095a5d..c65f81b87 100644 --- a/keyboards/evyd13/mx5160/config.h +++ b/keyboards/evyd13/mx5160/config.h | |||
@@ -55,6 +55,11 @@ | |||
55 | */ | 55 | */ |
56 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 56 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
57 | 57 | ||
58 | #define LED_NUM_LOCK_PIN B2 | ||
59 | #define LED_CAPS_LOCK_PIN B1 | ||
60 | #define LED_SCROLL_LOCK_PIN B3 | ||
61 | #define LED_PIN_ON_STATE 0 | ||
62 | |||
58 | // #define BACKLIGHT_PIN B7 | 63 | // #define BACKLIGHT_PIN B7 |
59 | // #define BACKLIGHT_BREATHING | 64 | // #define BACKLIGHT_BREATHING |
60 | // #define BACKLIGHT_LEVELS 3 | 65 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/mx5160/mx5160.c b/keyboards/evyd13/mx5160/mx5160.c index c9e412da2..298c44fd4 100644 --- a/keyboards/evyd13/mx5160/mx5160.c +++ b/keyboards/evyd13/mx5160/mx5160.c | |||
@@ -14,45 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "mx5160.h" | 16 | #include "mx5160.h" |
17 | |||
18 | |||
19 | void matrix_init_kb(void) { | ||
20 | // put your keyboard start-up code here | ||
21 | // runs once when the firmware starts up | ||
22 | |||
23 | matrix_init_user(); | ||
24 | led_init_ports(); | ||
25 | } | ||
26 | |||
27 | void matrix_scan_kb(void) { | ||
28 | // put your looping keyboard code here | ||
29 | // runs every cycle (a lot) | ||
30 | |||
31 | matrix_scan_user(); | ||
32 | } | ||
33 | |||
34 | void led_init_ports(void) { | ||
35 | //Set led pin as output, then high (off) | ||
36 | |||
37 | //Caps lock | ||
38 | setPinOutput(B1); | ||
39 | writePinHigh(B1); | ||
40 | |||
41 | //Num lock | ||
42 | setPinOutput(B2); | ||
43 | writePinHigh(B2); | ||
44 | |||
45 | //Scroll lock | ||
46 | setPinOutput(B3); | ||
47 | writePinHigh(B3); | ||
48 | } | ||
49 | |||
50 | bool led_update_kb(led_t led_state) { | ||
51 | bool res = led_update_user(led_state); | ||
52 | if (res) { | ||
53 | writePin(B2, !led_state.num_lock); | ||
54 | writePin(B1, !led_state.caps_lock); | ||
55 | writePin(B3, !led_state.scroll_lock); | ||
56 | } | ||
57 | return res; | ||
58 | } | ||
diff --git a/keyboards/evyd13/nt660/config.h b/keyboards/evyd13/nt660/config.h index 0d9bbd330..863884714 100644 --- a/keyboards/evyd13/nt660/config.h +++ b/keyboards/evyd13/nt660/config.h | |||
@@ -53,6 +53,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | */ | 53 | */ |
54 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 54 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
55 | 55 | ||
56 | #define LED_CAPS_LOCK_PIN D0 | ||
57 | |||
56 | // #define BACKLIGHT_PIN B7 | 58 | // #define BACKLIGHT_PIN B7 |
57 | // #define BACKLIGHT_BREATHING | 59 | // #define BACKLIGHT_BREATHING |
58 | // #define BACKLIGHT_LEVELS 3 | 60 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/nt660/nt660.c b/keyboards/evyd13/nt660/nt660.c index 2a8ebfb46..f89fa579c 100644 --- a/keyboards/evyd13/nt660/nt660.c +++ b/keyboards/evyd13/nt660/nt660.c | |||
@@ -14,19 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "nt660.h" | 16 | #include "nt660.h" |
17 | void matrix_init_kb(void) { | ||
18 | matrix_init_user(); | ||
19 | led_init_ports(); | ||
20 | } | ||
21 | |||
22 | void led_init_ports(void) { | ||
23 | setPinOutput(D0); | ||
24 | } | ||
25 | |||
26 | bool led_update_kb(led_t led_state) { | ||
27 | if(led_update_user(led_state)) { | ||
28 | writePin(D0, !led_state.caps_lock); | ||
29 | } | ||
30 | |||
31 | return true; | ||
32 | } | ||
diff --git a/keyboards/evyd13/quackfire/config.h b/keyboards/evyd13/quackfire/config.h index 22083e811..151219a01 100644 --- a/keyboards/evyd13/quackfire/config.h +++ b/keyboards/evyd13/quackfire/config.h | |||
@@ -52,6 +52,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
52 | */ | 52 | */ |
53 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 53 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
54 | 54 | ||
55 | #define LED_CAPS_LOCK_PIN F7 | ||
56 | #define LED_SCROLL_LOCK_PIN F6 | ||
57 | #define LED_PIN_ON_STATE 0 | ||
58 | |||
55 | // #define BACKLIGHT_PIN B7 | 59 | // #define BACKLIGHT_PIN B7 |
56 | // #define BACKLIGHT_BREATHING | 60 | // #define BACKLIGHT_BREATHING |
57 | // #define BACKLIGHT_LEVELS 5 | 61 | // #define BACKLIGHT_LEVELS 5 |
diff --git a/keyboards/evyd13/quackfire/quackfire.c b/keyboards/evyd13/quackfire/quackfire.c index ab233bd6d..634d4187c 100644 --- a/keyboards/evyd13/quackfire/quackfire.c +++ b/keyboards/evyd13/quackfire/quackfire.c | |||
@@ -14,31 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "quackfire.h" | 16 | #include "quackfire.h" |
17 | |||
18 | // Optional override functions below. | ||
19 | // You can leave any or all of these undefined. | ||
20 | // These are only required if you want to perform custom actions. | ||
21 | |||
22 | void matrix_init_kb(void) { | ||
23 | // put your keyboard start-up code here | ||
24 | // runs once when the firmware starts up | ||
25 | |||
26 | matrix_init_user(); | ||
27 | led_init_ports(); | ||
28 | } | ||
29 | |||
30 | void led_init_ports(void) { | ||
31 | setPinOutput(F6); | ||
32 | setPinOutput(F7); | ||
33 | writePinHigh(F6); | ||
34 | writePinHigh(F7); | ||
35 | } | ||
36 | |||
37 | bool led_update_kb(led_t led_state) { | ||
38 | if(led_update_user(led_state)) { | ||
39 | writePin(F7, !led_state.caps_lock); | ||
40 | writePin(F6, !led_state.scroll_lock); | ||
41 | } | ||
42 | |||
43 | return true; | ||
44 | } | ||
diff --git a/keyboards/evyd13/wasdat/config.h b/keyboards/evyd13/wasdat/config.h index c064d18a5..75b75a0d2 100644 --- a/keyboards/evyd13/wasdat/config.h +++ b/keyboards/evyd13/wasdat/config.h | |||
@@ -57,6 +57,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
57 | */ | 57 | */ |
58 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 58 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
59 | 59 | ||
60 | #define LED_NUM_LOCK_PIN B2 | ||
61 | #define LED_CAPS_LOCK_PIN B0 | ||
62 | #define LED_SCROLL_LOCK_PIN B1 | ||
63 | #define LED_PIN_ON_STATE 0 | ||
64 | |||
60 | // #define BACKLIGHT_PIN B7 | 65 | // #define BACKLIGHT_PIN B7 |
61 | // #define BACKLIGHT_BREATHING | 66 | // #define BACKLIGHT_BREATHING |
62 | // #define BACKLIGHT_LEVELS 3 | 67 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/wasdat/wasdat.c b/keyboards/evyd13/wasdat/wasdat.c index 2d0e999c4..6aaa1b842 100644 --- a/keyboards/evyd13/wasdat/wasdat.c +++ b/keyboards/evyd13/wasdat/wasdat.c | |||
@@ -14,34 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "wasdat.h" | 16 | #include "wasdat.h" |
17 | |||
18 | // Optional override functions below. | ||
19 | // You can leave any or all of these undefined. | ||
20 | // These are only required if you want to perform custom actions. | ||
21 | |||
22 | void matrix_init_kb(void) { | ||
23 | // put your keyboard start-up code here | ||
24 | // runs once when the firmware starts up | ||
25 | |||
26 | matrix_init_user(); | ||
27 | led_init_ports(); | ||
28 | } | ||
29 | |||
30 | void led_init_ports(void) { | ||
31 | setPinOutput(B0); | ||
32 | writePinHigh(B0); | ||
33 | setPinOutput(B1); | ||
34 | writePinHigh(B1); | ||
35 | setPinOutput(B2); | ||
36 | writePinHigh(B2); | ||
37 | } | ||
38 | |||
39 | bool led_update_kb(led_t led_state) { | ||
40 | if(led_update_user(led_state)) { | ||
41 | writePin(B0, !led_state.caps_lock); | ||
42 | writePin(B1, !led_state.scroll_lock); | ||
43 | writePin(B2, !led_state.num_lock); | ||
44 | } | ||
45 | |||
46 | return true; | ||
47 | } | ||
diff --git a/keyboards/evyd13/wasdat_code/config.h b/keyboards/evyd13/wasdat_code/config.h index 804839ee9..4ac77f217 100644 --- a/keyboards/evyd13/wasdat_code/config.h +++ b/keyboards/evyd13/wasdat_code/config.h | |||
@@ -57,6 +57,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
57 | */ | 57 | */ |
58 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 58 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
59 | 59 | ||
60 | #define LED_NUM_LOCK_PIN B3 | ||
61 | #define LED_CAPS_LOCK_PIN B1 | ||
62 | #define LED_SCROLL_LOCK_PIN B2 | ||
63 | #define LED_PIN_ON_STATE 0 | ||
64 | |||
60 | #define BACKLIGHT_PIN B7 | 65 | #define BACKLIGHT_PIN B7 |
61 | #define BACKLIGHT_BREATHING | 66 | #define BACKLIGHT_BREATHING |
62 | #define BACKLIGHT_LEVELS 5 | 67 | #define BACKLIGHT_LEVELS 5 |
diff --git a/keyboards/evyd13/wasdat_code/wasdat_code.c b/keyboards/evyd13/wasdat_code/wasdat_code.c index 33551c2d0..c1cdadea9 100644 --- a/keyboards/evyd13/wasdat_code/wasdat_code.c +++ b/keyboards/evyd13/wasdat_code/wasdat_code.c | |||
@@ -14,34 +14,3 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "wasdat_code.h" | 16 | #include "wasdat_code.h" |
17 | |||
18 | // Optional override functions below. | ||
19 | // You can leave any or all of these undefined. | ||
20 | // These are only required if you want to perform custom actions. | ||
21 | |||
22 | void matrix_init_kb(void) { | ||
23 | // put your keyboard start-up code here | ||
24 | // runs once when the firmware starts up | ||
25 | |||
26 | matrix_init_user(); | ||
27 | led_init_ports(); | ||
28 | } | ||
29 | |||
30 | void led_init_ports(void) { | ||
31 | setPinOutput(B1); | ||
32 | setPinOutput(B2); | ||
33 | setPinOutput(B3); | ||
34 | writePinHigh(B1); | ||
35 | writePinHigh(B2); | ||
36 | writePinHigh(B3); | ||
37 | } | ||
38 | |||
39 | bool led_update_kb(led_t led_state) { | ||
40 | if(led_update_user(led_state)) { | ||
41 | writePin(B1, !led_state.caps_lock); | ||
42 | writePin(B2, !led_state.scroll_lock); | ||
43 | writePin(B3, !led_state.num_lock); | ||
44 | } | ||
45 | |||
46 | return true; | ||
47 | } | ||
diff --git a/keyboards/evyd13/wonderland/config.h b/keyboards/evyd13/wonderland/config.h index 908c8a785..c5c7a8b6c 100644 --- a/keyboards/evyd13/wonderland/config.h +++ b/keyboards/evyd13/wonderland/config.h | |||
@@ -43,6 +43,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | /* Set 0 if debouncing isn't needed */ | 43 | /* Set 0 if debouncing isn't needed */ |
44 | #define DEBOUNCE 5 | 44 | #define DEBOUNCE 5 |
45 | 45 | ||
46 | #define LED_NUM_LOCK_PIN B1 | ||
47 | #define LED_CAPS_LOCK_PIN B2 | ||
48 | #define LED_SCROLL_LOCK_PIN B3 | ||
49 | #define LED_PIN_ON_STATE 0 | ||
50 | |||
46 | /* Backlight configuration | 51 | /* Backlight configuration |
47 | */ | 52 | */ |
48 | #define RGB_DI_PIN B7 | 53 | #define RGB_DI_PIN B7 |
diff --git a/keyboards/evyd13/wonderland/wonderland.c b/keyboards/evyd13/wonderland/wonderland.c index 441544381..f2a53a17a 100644 --- a/keyboards/evyd13/wonderland/wonderland.c +++ b/keyboards/evyd13/wonderland/wonderland.c | |||
@@ -1,34 +1 @@ | |||
1 | #include "wonderland.h" | #include "wonderland.h" | |
2 | |||
3 | __attribute__ ((weak)) | ||
4 | void matrix_init_kb(void) { | ||
5 | // put your keyboard start-up code here | ||
6 | // runs once when the firmware starts up | ||
7 | matrix_init_user(); | ||
8 | led_init_ports(); | ||
9 | }; | ||
10 | |||
11 | __attribute__ ((weak)) | ||
12 | void matrix_scan_kb(void) { | ||
13 | // put your looping keyboard code here | ||
14 | // runs every cycle (a lot) | ||
15 | matrix_scan_user(); | ||
16 | }; | ||
17 | |||
18 | __attribute__ ((weak)) | ||
19 | void led_init_ports(void) { | ||
20 | // * Set our LED pins as output | ||
21 | setPinOutput(B1); | ||
22 | setPinOutput(B2); | ||
23 | setPinOutput(B3); | ||
24 | } | ||
25 | |||
26 | bool led_update_kb(led_t led_state) { | ||
27 | bool runDefault = led_update_user(led_state); | ||
28 | if (runDefault) { | ||
29 | writePin(B1, !led_state.num_lock); | ||
30 | writePin(B2, !led_state.caps_lock); | ||
31 | writePin(B3, !led_state.scroll_lock); | ||
32 | } | ||
33 | return runDefault; | ||
34 | } | ||