diff options
Diffstat (limited to 'keyboards')
144 files changed, 1623 insertions, 5379 deletions
diff --git a/keyboards/oddball/adns/adns.h b/keyboards/anavi/macropad8/keymaps/default/config.h index 2f50b8f1b..dd687cad5 100644 --- a/keyboards/oddball/adns/adns.h +++ b/keyboards/anavi/macropad8/keymaps/default/config.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* Copyright 2020 Alexander Tulloh | 1 | /* Copyright 2021 QMK |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
@@ -16,20 +16,4 @@ | |||
16 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
19 | #include <stdint.h> | 19 | #define LAYER_STATE_8BIT |
20 | |||
21 | typedef struct { | ||
22 | /* 200 - 8200 CPI supported */ | ||
23 | uint16_t cpi; | ||
24 | } config_adns_t; | ||
25 | |||
26 | typedef struct { | ||
27 | int16_t x; | ||
28 | int16_t y; | ||
29 | } report_adns_t; | ||
30 | |||
31 | void adns_init(void); | ||
32 | config_adns_t adns_get_config(void); | ||
33 | void adns_set_config(config_adns_t); | ||
34 | /* Reads and clears the current delta values on the ADNS sensor */ | ||
35 | report_adns_t adns_get_report(void); | ||
diff --git a/keyboards/basekeys/trifecta/config.h b/keyboards/basekeys/trifecta/config.h index 8a9529126..28c9c18fb 100644 --- a/keyboards/basekeys/trifecta/config.h +++ b/keyboards/basekeys/trifecta/config.h | |||
@@ -80,11 +80,11 @@ | |||
80 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 80 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
81 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 81 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
82 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 82 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
83 | //# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 83 | //# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
84 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 84 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
85 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 85 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
86 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 86 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
87 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 87 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
88 | # define RGB_MATRIX_HUE_STEP 8 | 88 | # define RGB_MATRIX_HUE_STEP 8 |
89 | # define RGB_MATRIX_SAT_STEP 8 | 89 | # define RGB_MATRIX_SAT_STEP 8 |
90 | # define RGB_MATRIX_VAL_STEP 8 | 90 | # define RGB_MATRIX_VAL_STEP 8 |
diff --git a/keyboards/bm40hsrgb/config.h b/keyboards/bm40hsrgb/config.h index 167a5667a..8ef9a78c7 100755 --- a/keyboards/bm40hsrgb/config.h +++ b/keyboards/bm40hsrgb/config.h | |||
@@ -50,6 +50,6 @@ | |||
50 | #ifdef RGB_DI_PIN | 50 | #ifdef RGB_DI_PIN |
51 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 51 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
52 | #endif | 52 | #endif |
53 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 53 | #ifdef RGB_MATRIX_ENABLE |
54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
55 | #endif | 55 | #endif |
diff --git a/keyboards/bm68rgb/keymaps/peepeetee/config.h b/keyboards/bm68rgb/keymaps/peepeetee/config.h index 53eebce7f..aada255cd 100644 --- a/keyboards/bm68rgb/keymaps/peepeetee/config.h +++ b/keyboards/bm68rgb/keymaps/peepeetee/config.h | |||
@@ -64,7 +64,7 @@ | |||
64 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 64 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
65 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 65 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
66 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 66 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
67 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 67 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
68 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 68 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
69 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 69 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
70 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 70 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h index 5888452ce..9ca598b40 100644 --- a/keyboards/boardsource/the_mark/config.h +++ b/keyboards/boardsource/the_mark/config.h | |||
@@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | #define DRIVER_LED_TOTAL 24 // Number of LEDs | 59 | #define DRIVER_LED_TOTAL 24 // Number of LEDs |
60 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 60 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
61 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 61 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED |
62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
63 | # endif | 63 | # endif |
64 | #endif | 64 | #endif |
65 | 65 | ||
diff --git a/keyboards/checkerboards/nop60/info.json b/keyboards/checkerboards/nop60/info.json index 82ff7229f..66e770634 100644 --- a/keyboards/checkerboards/nop60/info.json +++ b/keyboards/checkerboards/nop60/info.json | |||
@@ -1,15 +1,143 @@ | |||
1 | { | 1 | { |
2 | "keyboard_name": "nop60", | 2 | "keyboard_name": "nop60", |
3 | "url": "", | ||
4 | "maintainer": "nasp", | 3 | "maintainer": "nasp", |
5 | "width": 15, | ||
6 | "height": 5, | 4 | "height": 5, |
5 | "width": 15, | ||
6 | "url": "", | ||
7 | "layouts": { | 7 | "layouts": { |
8 | "LAYOUT": { | 8 | "LAYOUT": { |
9 | "2x3u": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"~", "x":13, "y":0}, {"label":"Bksp", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":3}, {"x":7, "y":4}, {"x":8, "y":4, "w":3}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Win", "x":12.5, "y":4}, {"label":"Ctrl", "x":13.5, "y":4, "w":1.5}] | 9 | "layout": [ |
10 | { "label": "Esc", "x": 0, "y": 0 }, | ||
11 | { "label": "!", "x": 1, "y": 0 }, | ||
12 | { "label": "@", "x": 2, "y": 0 }, | ||
13 | { "label": "#", "x": 3, "y": 0 }, | ||
14 | { "label": "$", "x": 4, "y": 0 }, | ||
15 | { "label": "%", "x": 5, "y": 0 }, | ||
16 | { "label": "^", "x": 6, "y": 0 }, | ||
17 | { "label": "&", "x": 7, "y": 0 }, | ||
18 | { "label": "*", "x": 8, "y": 0 }, | ||
19 | { "label": "(", "x": 9, "y": 0 }, | ||
20 | { "label": ")", "x": 10, "y": 0 }, | ||
21 | { "label": "_", "x": 11, "y": 0 }, | ||
22 | { "label": "+", "x": 12, "y": 0 }, | ||
23 | { "label": "~", "x": 13, "y": 0 }, | ||
24 | { "label": "Bksp", "x": 14, "y": 0 }, | ||
25 | { "label": "Tab", "w": 1.5, "x": 0, "y": 1 }, | ||
26 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
27 | { "label": "W", "x": 2.5, "y": 1 }, | ||
28 | { "label": "E", "x": 3.5, "y": 1 }, | ||
29 | { "label": "R", "x": 4.5, "y": 1 }, | ||
30 | { "label": "T", "x": 5.5, "y": 1 }, | ||
31 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
32 | { "label": "U", "x": 7.5, "y": 1 }, | ||
33 | { "label": "I", "x": 8.5, "y": 1 }, | ||
34 | { "label": "O", "x": 9.5, "y": 1 }, | ||
35 | { "label": "P", "x": 10.5, "y": 1 }, | ||
36 | { "label": "{", "x": 11.5, "y": 1 }, | ||
37 | { "label": "}", "x": 12.5, "y": 1 }, | ||
38 | { "label": "|", "w": 1.5, "x": 13.5, "y": 1 }, | ||
39 | { "label": "Caps Lock", "w": 1.75, "x": 0, "y": 2 }, | ||
40 | { "label": "A", "x": 1.75, "y": 2 }, | ||
41 | { "label": "S", "x": 2.75, "y": 2 }, | ||
42 | { "label": "D", "x": 3.75, "y": 2 }, | ||
43 | { "label": "F", "x": 4.75, "y": 2 }, | ||
44 | { "label": "G", "x": 5.75, "y": 2 }, | ||
45 | { "label": "H", "x": 6.75, "y": 2 }, | ||
46 | { "label": "J", "x": 7.75, "y": 2 }, | ||
47 | { "label": "K", "x": 8.75, "y": 2 }, | ||
48 | { "label": "L", "x": 9.75, "y": 2 }, | ||
49 | { "label": ":", "x": 10.75, "y": 2 }, | ||
50 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
51 | { "label": "Enter", "w": 2.25, "x": 12.75, "y": 2 }, | ||
52 | { "label": "Shift", "w": 2.25, "x": 0, "y": 3 }, | ||
53 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
54 | { "label": "X", "x": 3.25, "y": 3 }, | ||
55 | { "label": "C", "x": 4.25, "y": 3 }, | ||
56 | { "label": "V", "x": 5.25, "y": 3 }, | ||
57 | { "label": "B", "x": 6.25, "y": 3 }, | ||
58 | { "label": "N", "x": 7.25, "y": 3 }, | ||
59 | { "label": "M", "x": 8.25, "y": 3 }, | ||
60 | { "label": "<", "x": 9.25, "y": 3 }, | ||
61 | { "label": ">", "x": 10.25, "y": 3 }, | ||
62 | { "label": "?", "x": 11.25, "y": 3 }, | ||
63 | { "label": "Shift", "w": 1.75, "x": 12.25, "y": 3 }, | ||
64 | { "label": "Fn", "x": 14, "y": 3 }, | ||
65 | { "label": "Ctrl", "w": 1.5, "x": 0, "y": 4 }, | ||
66 | { "label": "Win", "x": 1.5, "y": 4 }, | ||
67 | { "label": "Alt", "w": 1.5, "x": 2.5, "y": 4 }, | ||
68 | { "w": 7, "x": 4, "y": 4 }, | ||
69 | { "label": "Alt", "w": 1.5, "x": 11, "y": 4 }, | ||
70 | { "label": "Win", "x": 12.5, "y": 4 }, | ||
71 | { "label": "Ctrl", "w": 1.5, "x": 13.5, "y": 4 } | ||
72 | ] | ||
10 | }, | 73 | }, |
11 | "LAYOUT": { | 74 | "LAYOUT_2x3u": { |
12 | "7u": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"~", "x":13, "y":0}, {"label":"Bksp", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Win", "x":12.5, "y":4}, {"label":"Ctrl", "x":13.5, "y":4, "w":1.5}] | 75 | "layout": [ |
76 | { "label": "Esc", "x": 0, "y": 0 }, | ||
77 | { "label": "!", "x": 1, "y": 0 }, | ||
78 | { "label": "@", "x": 2, "y": 0 }, | ||
79 | { "label": "#", "x": 3, "y": 0 }, | ||
80 | { "label": "$", "x": 4, "y": 0 }, | ||
81 | { "label": "%", "x": 5, "y": 0 }, | ||
82 | { "label": "^", "x": 6, "y": 0 }, | ||
83 | { "label": "&", "x": 7, "y": 0 }, | ||
84 | { "label": "*", "x": 8, "y": 0 }, | ||
85 | { "label": "(", "x": 9, "y": 0 }, | ||
86 | { "label": ")", "x": 10, "y": 0 }, | ||
87 | { "label": "_", "x": 11, "y": 0 }, | ||
88 | { "label": "+", "x": 12, "y": 0 }, | ||
89 | { "label": "~", "x": 13, "y": 0 }, | ||
90 | { "label": "Bksp", "x": 14, "y": 0 }, | ||
91 | { "label": "Tab", "w": 1.5, "x": 0, "y": 1 }, | ||
92 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
93 | { "label": "W", "x": 2.5, "y": 1 }, | ||
94 | { "label": "E", "x": 3.5, "y": 1 }, | ||
95 | { "label": "R", "x": 4.5, "y": 1 }, | ||
96 | { "label": "T", "x": 5.5, "y": 1 }, | ||
97 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
98 | { "label": "U", "x": 7.5, "y": 1 }, | ||
99 | { "label": "I", "x": 8.5, "y": 1 }, | ||
100 | { "label": "O", "x": 9.5, "y": 1 }, | ||
101 | { "label": "P", "x": 10.5, "y": 1 }, | ||
102 | { "label": "{", "x": 11.5, "y": 1 }, | ||
103 | { "label": "}", "x": 12.5, "y": 1 }, | ||
104 | { "label": "|", "w": 1.5, "x": 13.5, "y": 1 }, | ||
105 | { "label": "Caps Lock", "w": 1.75, "x": 0, "y": 2 }, | ||
106 | { "label": "A", "x": 1.75, "y": 2 }, | ||
107 | { "label": "S", "x": 2.75, "y": 2 }, | ||
108 | { "label": "D", "x": 3.75, "y": 2 }, | ||
109 | { "label": "F", "x": 4.75, "y": 2 }, | ||
110 | { "label": "G", "x": 5.75, "y": 2 }, | ||
111 | { "label": "H", "x": 6.75, "y": 2 }, | ||
112 | { "label": "J", "x": 7.75, "y": 2 }, | ||
113 | { "label": "K", "x": 8.75, "y": 2 }, | ||
114 | { "label": "L", "x": 9.75, "y": 2 }, | ||
115 | { "label": ":", "x": 10.75, "y": 2 }, | ||
116 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
117 | { "label": "Enter", "w": 2.25, "x": 12.75, "y": 2 }, | ||
118 | { "label": "Shift", "w": 2.25, "x": 0, "y": 3 }, | ||
119 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
120 | { "label": "X", "x": 3.25, "y": 3 }, | ||
121 | { "label": "C", "x": 4.25, "y": 3 }, | ||
122 | { "label": "V", "x": 5.25, "y": 3 }, | ||
123 | { "label": "B", "x": 6.25, "y": 3 }, | ||
124 | { "label": "N", "x": 7.25, "y": 3 }, | ||
125 | { "label": "M", "x": 8.25, "y": 3 }, | ||
126 | { "label": "<", "x": 9.25, "y": 3 }, | ||
127 | { "label": ">", "x": 10.25, "y": 3 }, | ||
128 | { "label": "?", "x": 11.25, "y": 3 }, | ||
129 | { "label": "Shift", "w": 1.75, "x": 12.25, "y": 3 }, | ||
130 | { "label": "Fn", "x": 14, "y": 3 }, | ||
131 | { "label": "Ctrl", "w": 1.5, "x": 0, "y": 4 }, | ||
132 | { "label": "Win", "x": 1.5, "y": 4 }, | ||
133 | { "label": "Alt", "w": 1.5, "x": 2.5, "y": 4 }, | ||
134 | { "w": 3, "x": 4, "y": 4 }, | ||
135 | { "x": 7, "y": 4 }, | ||
136 | { "w": 3, "x": 8, "y": 4 }, | ||
137 | { "label": "Alt", "w": 1.5, "x": 11, "y": 4 }, | ||
138 | { "label": "Win", "x": 12.5, "y": 4 }, | ||
139 | { "label": "Ctrl", "w": 1.5, "x": 13.5, "y": 4 } | ||
140 | ] | ||
13 | } | 141 | } |
14 | } | 142 | } |
15 | } | 143 | } |
diff --git a/keyboards/crkbd/keymaps/devdev/config.h b/keyboards/crkbd/keymaps/devdev/config.h index 793c7b020..c858f8f2d 100644 --- a/keyboards/crkbd/keymaps/devdev/config.h +++ b/keyboards/crkbd/keymaps/devdev/config.h | |||
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
32 | 32 | ||
33 | #define CUSTOM_FONT | 33 | #define CUSTOM_FONT |
34 | 34 | ||
35 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 35 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
36 | 36 | ||
37 | #define TAPPING_FORCE_HOLD | 37 | #define TAPPING_FORCE_HOLD |
38 | #define TAPPING_TERM 200 | 38 | #define TAPPING_TERM 200 |
@@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
43 | 43 | ||
44 | #ifdef RGBLIGHT_ENABLE | 44 | #ifdef RGBLIGHT_ENABLE |
45 | #undef RGBLED_NUM | 45 | #undef RGBLED_NUM |
46 | 46 | ||
47 | //#define RGBLIGHT_ANIMATIONS | 47 | //#define RGBLIGHT_ANIMATIONS |
48 | #define RGBLIGHT_EFFECT_BREATHING | 48 | #define RGBLIGHT_EFFECT_BREATHING |
49 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 49 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
@@ -55,11 +55,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | //#define RGBLIGHT_EFFECT_RGB_TEST | 55 | //#define RGBLIGHT_EFFECT_RGB_TEST |
56 | //#define RGBLIGHT_EFFECT_ALTERNATING | 56 | //#define RGBLIGHT_EFFECT_ALTERNATING |
57 | //#define RGBLIGHT_EFFECT_TWINKLE | 57 | //#define RGBLIGHT_EFFECT_TWINKLE |
58 | 58 | ||
59 | //#define RGBLED_NUM 54 | 59 | //#define RGBLED_NUM 54 |
60 | //#define RGBLED_SPLIT 27 | 60 | //#define RGBLED_SPLIT 27 |
61 | //#define RGBLED_SPLIT { 27, 27 } // haven't figured out how to use this yet | 61 | //#define RGBLED_SPLIT { 27, 27 } // haven't figured out how to use this yet |
62 | 62 | ||
63 | #define RGBLED_NUM 27 | 63 | #define RGBLED_NUM 27 |
64 | #define RGBLIGHT_LIMIT_VAL 120 | 64 | #define RGBLIGHT_LIMIT_VAL 120 |
65 | #define RGBLIGHT_HUE_STEP 10 | 65 | #define RGBLIGHT_HUE_STEP 10 |
@@ -71,11 +71,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
71 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 71 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
72 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 72 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
73 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 73 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
74 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 74 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
75 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 75 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
76 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 76 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
77 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 77 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
78 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 78 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
79 | 79 | ||
80 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 80 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
81 | 81 | ||
diff --git a/keyboards/crkbd/keymaps/gotham/config.h b/keyboards/crkbd/keymaps/gotham/config.h index dd58a0fe0..05b04e0aa 100644 --- a/keyboards/crkbd/keymaps/gotham/config.h +++ b/keyboards/crkbd/keymaps/gotham/config.h | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | #ifdef RGB_MATRIX_ENABLE | 40 | #ifdef RGB_MATRIX_ENABLE |
41 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 41 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
42 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 42 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
43 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 43 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
44 | # define RGB_MATRIX_HUE_STEP 32 | 44 | # define RGB_MATRIX_HUE_STEP 32 |
45 | # define RGB_MATRIX_SAT_STEP 64 | 45 | # define RGB_MATRIX_SAT_STEP 64 |
diff --git a/keyboards/crkbd/keymaps/kidbrazil/config.h b/keyboards/crkbd/keymaps/kidbrazil/config.h index be1777e57..752ea862e 100644 --- a/keyboards/crkbd/keymaps/kidbrazil/config.h +++ b/keyboards/crkbd/keymaps/kidbrazil/config.h | |||
@@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
56 | //# define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 56 | //# define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
57 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 57 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
58 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 58 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
59 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 59 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
60 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 60 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
61 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 61 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
62 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 62 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/crkbd/keymaps/rpbaptist/config.h b/keyboards/crkbd/keymaps/rpbaptist/config.h index 6bd16725f..9e5f75c36 100644 --- a/keyboards/crkbd/keymaps/rpbaptist/config.h +++ b/keyboards/crkbd/keymaps/rpbaptist/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | #define NO_ACTION_ONESHOT | 42 | #define NO_ACTION_ONESHOT |
43 | 43 | ||
44 | #ifdef RGB_MATRIX_ENABLE | 44 | #ifdef RGB_MATRIX_ENABLE |
45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
46 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 | 46 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 |
47 | 47 | ||
48 | # define RGB_MATRIX_HUE_STEP 8 | 48 | # define RGB_MATRIX_HUE_STEP 8 |
diff --git a/keyboards/crkbd/keymaps/soundmonster/config.h b/keyboards/crkbd/keymaps/soundmonster/config.h index 1e58af3ab..8235b4869 100644 --- a/keyboards/crkbd/keymaps/soundmonster/config.h +++ b/keyboards/crkbd/keymaps/soundmonster/config.h | |||
@@ -59,11 +59,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
59 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 59 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
60 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 60 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
61 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 61 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
63 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 63 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
64 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 64 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
65 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 65 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
67 | # define RGB_MATRIX_HUE_STEP 8 | 67 | # define RGB_MATRIX_HUE_STEP 8 |
68 | # define RGB_MATRIX_SAT_STEP 8 | 68 | # define RGB_MATRIX_SAT_STEP 8 |
69 | # define RGB_MATRIX_VAL_STEP 8 | 69 | # define RGB_MATRIX_VAL_STEP 8 |
diff --git a/keyboards/crkbd/readme.md b/keyboards/crkbd/readme.md index 1e5bfb39a..f0b5672cf 100644 --- a/keyboards/crkbd/readme.md +++ b/keyboards/crkbd/readme.md | |||
@@ -38,7 +38,7 @@ And in your `config.h` file, add the following: | |||
38 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 38 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
39 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 39 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
40 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 40 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
41 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 41 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 43 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
44 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 44 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/draculad/config.h b/keyboards/draculad/config.h index 8a27fdea4..d8a9fbd37 100644 --- a/keyboards/draculad/config.h +++ b/keyboards/draculad/config.h | |||
@@ -65,3 +65,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
65 | #define UNUSED_PINS | 65 | #define UNUSED_PINS |
66 | 66 | ||
67 | #define EE_HANDS | 67 | #define EE_HANDS |
68 | |||
69 | #define LAYER_STATE_8BIT \ No newline at end of file | ||
diff --git a/keyboards/draculad/keymaps/pimoroni/keymap.c b/keyboards/draculad/keymaps/pimoroni/keymap.c index 87cbe3cd3..762ae26c7 100644 --- a/keyboards/draculad/keymaps/pimoroni/keymap.c +++ b/keyboards/draculad/keymaps/pimoroni/keymap.c | |||
@@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include QMK_KEYBOARD_H | 18 | #include QMK_KEYBOARD_H |
19 | #include "pimoroni_trackball.h" | 19 | #include "drivers/sensors/pimoroni_trackball.h" |
20 | #include "pointing_device.h" | 20 | #include "pointing_device.h" |
21 | 21 | ||
22 | 22 | ||
diff --git a/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.c b/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.c deleted file mode 100644 index c4f4a0441..000000000 --- a/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.c +++ /dev/null | |||
@@ -1,177 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include "pimoroni_trackball.h" | ||
18 | #include "i2c_master.h" | ||
19 | |||
20 | static uint8_t scrolling = 0; | ||
21 | static int16_t x_offset = 0; | ||
22 | static int16_t y_offset = 0; | ||
23 | static int16_t h_offset = 0; | ||
24 | static int16_t v_offset = 0; | ||
25 | static float precisionSpeed = 1; | ||
26 | |||
27 | static uint16_t i2c_timeout_timer; | ||
28 | |||
29 | #ifndef I2C_TIMEOUT | ||
30 | # define I2C_TIMEOUT 100 | ||
31 | #endif | ||
32 | #ifndef I2C_WAITCHECK | ||
33 | # define I2C_WAITCHECK 1000 | ||
34 | #endif | ||
35 | #ifndef MOUSE_DEBOUNCE | ||
36 | # define MOUSE_DEBOUNCE 5 | ||
37 | #endif | ||
38 | |||
39 | void trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white) { | ||
40 | uint8_t data[] = {0x00, red, green, blue, white}; | ||
41 | i2c_transmit(TRACKBALL_WRITE, data, sizeof(data), I2C_TIMEOUT); | ||
42 | } | ||
43 | |||
44 | int16_t mouse_offset(uint8_t positive, uint8_t negative, int16_t scale) { | ||
45 | int16_t offset = (int16_t)positive - (int16_t)negative; | ||
46 | int16_t magnitude = (int16_t)(scale * offset * offset * precisionSpeed); | ||
47 | return offset < 0 ? -magnitude : magnitude; | ||
48 | } | ||
49 | |||
50 | void update_member(int8_t* member, int16_t* offset) { | ||
51 | if (*offset > 127) { | ||
52 | *member = 127; | ||
53 | *offset -= 127; | ||
54 | } else if (*offset < -127) { | ||
55 | *member = -127; | ||
56 | *offset += 127; | ||
57 | } else { | ||
58 | *member = *offset; | ||
59 | *offset = 0; | ||
60 | } | ||
61 | } | ||
62 | |||
63 | __attribute__((weak)) void trackball_check_click(bool pressed, report_mouse_t* mouse) { | ||
64 | if (pressed) { | ||
65 | mouse->buttons |= MOUSE_BTN1; | ||
66 | } else { | ||
67 | mouse->buttons &= ~MOUSE_BTN1; | ||
68 | } | ||
69 | } | ||
70 | |||
71 | bool process_record_kb(uint16_t keycode, keyrecord_t* record) { | ||
72 | if (true) { | ||
73 | xprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed); | ||
74 | } | ||
75 | |||
76 | |||
77 | if (!process_record_user(keycode, record)) { return false; } | ||
78 | |||
79 | /* If Mousekeys is disabled, then use handle the mouse button | ||
80 | * keycodes. This makes things simpler, and allows usage of | ||
81 | * the keycodes in a consistent manner. But only do this if | ||
82 | * Mousekeys is not enable, so it's not handled twice. | ||
83 | */ | ||
84 | #ifndef MOUSEKEY_ENABLE | ||
85 | if (IS_MOUSEKEY_BUTTON(keycode)) { | ||
86 | report_mouse_t currentReport = pointing_device_get_report(); | ||
87 | if (record->event.pressed) { | ||
88 | currentReport.buttons |= 1 << (keycode - KC_MS_BTN1); | ||
89 | } else { | ||
90 | currentReport.buttons &= ~(1 << (keycode - KC_MS_BTN1)); | ||
91 | } | ||
92 | pointing_device_set_report(currentReport); | ||
93 | pointing_device_send(); | ||
94 | } | ||
95 | #endif | ||
96 | |||
97 | return true; | ||
98 | } | ||
99 | |||
100 | void trackball_register_button(bool pressed, enum mouse_buttons button) { | ||
101 | report_mouse_t currentReport = pointing_device_get_report(); | ||
102 | if (pressed) { | ||
103 | currentReport.buttons |= button; | ||
104 | } else { | ||
105 | currentReport.buttons &= ~button; | ||
106 | } | ||
107 | pointing_device_set_report(currentReport); | ||
108 | } | ||
109 | |||
110 | float trackball_get_precision(void) { return precisionSpeed; } | ||
111 | void trackball_set_precision(float precision) { precisionSpeed = precision; } | ||
112 | bool trackball_is_scrolling(void) { return scrolling; } | ||
113 | void trackball_set_scrolling(bool scroll) { scrolling = scroll; } | ||
114 | |||
115 | |||
116 | __attribute__((weak)) void pointing_device_init(void) { trackball_set_rgbw(0x80, 0x00, 0x00, 0x00); } | ||
117 | |||
118 | void pointing_device_task(void) { | ||
119 | static bool debounce; | ||
120 | static uint16_t debounce_timer; | ||
121 | uint8_t state[5] = {}; | ||
122 | if (timer_elapsed(i2c_timeout_timer) > I2C_WAITCHECK) { | ||
123 | if (i2c_readReg(TRACKBALL_WRITE, 0x04, state, 5, I2C_TIMEOUT) == I2C_STATUS_SUCCESS) { | ||
124 | if (!state[4] && !debounce) { | ||
125 | if (scrolling) { | ||
126 | #ifdef PIMORONI_TRACKBALL_INVERT_X | ||
127 | h_offset += mouse_offset(state[2], state[3], 1); | ||
128 | #else | ||
129 | h_offset -= mouse_offset(state[2], state[3], 1); | ||
130 | #endif | ||
131 | #ifdef PIMORONI_TRACKBALL_INVERT_Y | ||
132 | v_offset += mouse_offset(state[1], state[0], 1); | ||
133 | #else | ||
134 | v_offset -= mouse_offset(state[1], state[0], 1); | ||
135 | #endif | ||
136 | } else { | ||
137 | #ifdef PIMORONI_TRACKBALL_INVERT_X | ||
138 | x_offset -= mouse_offset(state[2], state[3], 5); | ||
139 | #else | ||
140 | x_offset += mouse_offset(state[2], state[3], 5); | ||
141 | #endif | ||
142 | #ifdef PIMORONI_TRACKBALL_INVERT_Y | ||
143 | y_offset -= mouse_offset(state[1], state[0], 5); | ||
144 | #else | ||
145 | y_offset += mouse_offset(state[1], state[0], 5); | ||
146 | #endif | ||
147 | } | ||
148 | } else { | ||
149 | if (state[4]) { | ||
150 | debounce = true; | ||
151 | debounce_timer = timer_read(); | ||
152 | } | ||
153 | } | ||
154 | } else { | ||
155 | i2c_timeout_timer = timer_read(); | ||
156 | } | ||
157 | } | ||
158 | |||
159 | if (timer_elapsed(debounce_timer) > MOUSE_DEBOUNCE) debounce = false; | ||
160 | |||
161 | report_mouse_t mouse = pointing_device_get_report(); | ||
162 | // trackball_check_click(state[4] & (1 << 7), &mouse); | ||
163 | |||
164 | #ifndef PIMORONI_TRACKBALL_ROTATE | ||
165 | update_member(&mouse.x, &x_offset); | ||
166 | update_member(&mouse.y, &y_offset); | ||
167 | update_member(&mouse.h, &h_offset); | ||
168 | update_member(&mouse.v, &v_offset); | ||
169 | #else | ||
170 | update_member(&mouse.x, &y_offset); | ||
171 | update_member(&mouse.y, &x_offset); | ||
172 | update_member(&mouse.h, &v_offset); | ||
173 | update_member(&mouse.v, &h_offset); | ||
174 | #endif | ||
175 | pointing_device_set_report(mouse); | ||
176 | pointing_device_send(); | ||
177 | } | ||
diff --git a/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.h b/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.h deleted file mode 100644 index cfcd5a47a..000000000 --- a/keyboards/draculad/keymaps/pimoroni/pimoroni_trackball.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | #include "pointing_device.h" | ||
21 | |||
22 | #ifndef TRACKBALL_ADDRESS | ||
23 | # define TRACKBALL_ADDRESS 0x0A | ||
24 | #endif | ||
25 | #define TRACKBALL_WRITE ((TRACKBALL_ADDRESS << 1) | I2C_WRITE) | ||
26 | #define TRACKBALL_READ ((TRACKBALL_ADDRESS << 1) | I2C_READ) | ||
27 | |||
28 | void trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); | ||
29 | void trackball_check_click(bool pressed, report_mouse_t *mouse); | ||
30 | void trackball_register_button(bool pressed, enum mouse_buttons button); | ||
31 | |||
32 | float trackball_get_precision(void); | ||
33 | void trackball_set_precision(float precision); | ||
34 | bool trackball_is_scrolling(void); | ||
35 | void trackball_set_scrolling(bool scroll); \ No newline at end of file | ||
diff --git a/keyboards/draculad/keymaps/pimoroni/rules.mk b/keyboards/draculad/keymaps/pimoroni/rules.mk index 547a02f26..d8dc92fbf 100644 --- a/keyboards/draculad/keymaps/pimoroni/rules.mk +++ b/keyboards/draculad/keymaps/pimoroni/rules.mk | |||
@@ -1,6 +1,6 @@ | |||
1 | # only uncomment on the side you have your trackball on | 1 | # only uncomment on the side you have your trackball on |
2 | POINTING_DEVICE_ENABLE = yes | 2 | POINTING_DEVICE_ENABLE = yes |
3 | SRC += pimoroni_trackball.c | 3 | SRC += drivers/sensors/pimoroni_trackball.c |
4 | QUANTUM_LIB_SRC += i2c_master.c | 4 | QUANTUM_LIB_SRC += i2c_master.c |
5 | OLED_DRIVER_ENABLE = yes | 5 | OLED_DRIVER_ENABLE = yes |
6 | MOUSEKEY_ENABLE = no | 6 | MOUSEKEY_ENABLE = no |
diff --git a/keyboards/dztech/dz60rgb/v1/config.h b/keyboards/dztech/dz60rgb/v1/config.h index 6e5b3da6f..f6ee7c4e2 100644 --- a/keyboards/dztech/dz60rgb/v1/config.h +++ b/keyboards/dztech/dz60rgb/v1/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb/v2/config.h b/keyboards/dztech/dz60rgb/v2/config.h index df84fff59..6108e9903 100644 --- a/keyboards/dztech/dz60rgb/v2/config.h +++ b/keyboards/dztech/dz60rgb/v2/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h index 8710f8d07..dc2a6f4bc 100644 --- a/keyboards/dztech/dz60rgb_ansi/v1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h index f3c9b73fb..6c1e00682 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz60rgb_wkl/v1/config.h b/keyboards/dztech/dz60rgb_wkl/v1/config.h index 9c630c75b..12317c2d3 100644 --- a/keyboards/dztech/dz60rgb_wkl/v1/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v1/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb_wkl/v2/config.h b/keyboards/dztech/dz60rgb_wkl/v2/config.h index a6145c274..945b591ce 100644 --- a/keyboards/dztech/dz60rgb_wkl/v2/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v2/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz65rgb/v1/config.h b/keyboards/dztech/dz65rgb/v1/config.h index adfa934b0..1ecd9002c 100644 --- a/keyboards/dztech/dz65rgb/v1/config.h +++ b/keyboards/dztech/dz65rgb/v1/config.h | |||
@@ -51,9 +51,9 @@ | |||
51 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 51 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
52 | # define DEBOUNCE 3 | 52 | # define DEBOUNCE 3 |
53 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 53 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
55 | # define RGB_MATRIX_KEYPRESSES | 55 | # define RGB_MATRIX_KEYPRESSES |
56 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 56 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
57 | # define DISABLE_RGB_MATRIX_BAND_SAT | 57 | # define DISABLE_RGB_MATRIX_BAND_SAT |
58 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 58 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
59 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 59 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/dztech/dz65rgb/v2/config.h b/keyboards/dztech/dz65rgb/v2/config.h index f86d65cd0..1e1e21f5e 100644 --- a/keyboards/dztech/dz65rgb/v2/config.h +++ b/keyboards/dztech/dz65rgb/v2/config.h | |||
@@ -51,7 +51,7 @@ | |||
51 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 51 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
52 | # define DEBOUNCE 3 | 52 | # define DEBOUNCE 3 |
53 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 53 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
55 | # define RGB_MATRIX_KEYPRESSES | 55 | # define RGB_MATRIX_KEYPRESSES |
56 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 56 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
57 | # define DISABLE_RGB_MATRIX_BAND_SAT | 57 | # define DISABLE_RGB_MATRIX_BAND_SAT |
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h index bc63f6108..9dcfc341e 100644 --- a/keyboards/ergodox_ez/config.h +++ b/keyboards/ergodox_ez/config.h | |||
@@ -129,7 +129,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
129 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 | 129 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 |
130 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 130 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
131 | 131 | ||
132 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 132 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
133 | 133 | ||
134 | // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF | 134 | // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF |
135 | /* #define RGBLIGHT_COLOR_LAYER_1 0x00, 0x00, 0xFF */ | 135 | /* #define RGBLIGHT_COLOR_LAYER_1 0x00, 0x00, 0xFF */ |
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h b/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h index a0ba655ed..da2082078 100644 --- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h +++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #undef IGNORE_MOD_TAP_INTERRUPT | 14 | #undef IGNORE_MOD_TAP_INTERRUPT |
15 | #define IGNORE_MOD_TAP_INTERRUPT | 15 | #define IGNORE_MOD_TAP_INTERRUPT |
16 | 16 | ||
17 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 17 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
18 | 18 | ||
19 | #undef FORCE_NKRO | 19 | #undef FORCE_NKRO |
20 | #define FORCE_NKRO | 20 | #define FORCE_NKRO |
diff --git a/keyboards/ergodox_infinity/config.h b/keyboards/ergodox_infinity/config.h index a64f3f4a1..a00c593ee 100644 --- a/keyboards/ergodox_infinity/config.h +++ b/keyboards/ergodox_infinity/config.h | |||
@@ -62,6 +62,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #define LED_BRIGHTNESS_LO 100 | 62 | #define LED_BRIGHTNESS_LO 100 |
63 | #define LED_BRIGHTNESS_HI 255 | 63 | #define LED_BRIGHTNESS_HI 255 |
64 | 64 | ||
65 | /* LED matrix driver */ | ||
66 | #define LED_DRIVER_ADDR_1 0x74 | ||
67 | #define LED_DRIVER_COUNT 1 | ||
68 | #define DRIVER_LED_TOTAL 76 | ||
69 | #define LED_MATRIX_SPLIT { 38, 38 } | ||
70 | #define LED_DISABLE_WHEN_USB_SUSPENDED | ||
71 | |||
72 | /* i2c (for LED matrix) */ | ||
73 | #define I2C1_CLOCK_SPEED 400000 | ||
74 | #define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
75 | #define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
76 | #define I2C1_BANK GPIOB | ||
77 | #define I2C1_SCL 0 | ||
78 | #define I2C1_SDA 1 | ||
79 | |||
65 | /* define if matrix has ghost */ | 80 | /* define if matrix has ghost */ |
66 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
67 | 82 | ||
diff --git a/keyboards/ergodox_infinity/ergodox_infinity.c b/keyboards/ergodox_infinity/ergodox_infinity.c index 97b628470..da8ea311a 100644 --- a/keyboards/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/ergodox_infinity/ergodox_infinity.c | |||
@@ -1,20 +1,45 @@ | |||
1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
2 | #include <ch.h> | 2 | #include <ch.h> |
3 | #include <hal.h> | 3 | #include <hal.h> |
4 | #include <string.h> | ||
5 | #include "eeconfig.h" | ||
4 | #include "serial_link/system/serial_link.h" | 6 | #include "serial_link/system/serial_link.h" |
5 | #ifdef VISUALIZER_ENABLE | 7 | #ifdef VISUALIZER_ENABLE |
6 | #include "lcd_backlight.h" | 8 | # include "lcd_backlight.h" |
7 | #endif | 9 | #endif |
8 | 10 | ||
9 | #ifdef WPM_ENABLE | 11 | #if (defined(LED_MATRIX_ENABLE) || defined(WPM_ENABLE)) |
10 | # include "serial_link/protocol/transport.h" | 12 | # include "serial_link/protocol/transport.h" |
11 | # include "wpm.h" | 13 | |
14 | # ifdef LED_MATRIX_ENABLE | ||
15 | MASTER_TO_ALL_SLAVES_OBJECT(led_matrix, led_eeconfig_t); | ||
16 | MASTER_TO_ALL_SLAVES_OBJECT(led_suspend_state, bool); | ||
17 | static led_eeconfig_t last_sent_led_matrix; | ||
18 | static uint16_t led_matrix_sent_timer = 0; | ||
19 | |||
20 | void send_led_suspend_state(void) { | ||
21 | if (is_serial_link_master()) { | ||
22 | *begin_write_led_suspend_state() = led_matrix_get_suspend_state(); | ||
23 | end_write_led_suspend_state(); | ||
24 | } | ||
25 | } | ||
26 | # endif | ||
12 | 27 | ||
28 | # ifdef WPM_ENABLE | ||
29 | # include "wpm.h" | ||
13 | MASTER_TO_ALL_SLAVES_OBJECT(current_wpm, uint8_t); | 30 | MASTER_TO_ALL_SLAVES_OBJECT(current_wpm, uint8_t); |
14 | static remote_object_t* remote_objects[] = { | 31 | static uint8_t last_sent_wpm = 0; |
32 | # endif | ||
33 | |||
34 | static remote_object_t *remote_objects[] = { | ||
35 | # ifdef LED_MATRIX_ENABLE | ||
36 | REMOTE_OBJECT(led_matrix), | ||
37 | REMOTE_OBJECT(led_suspend_state), | ||
38 | # endif | ||
39 | # ifdef WPM_ENABLE | ||
15 | REMOTE_OBJECT(current_wpm), | 40 | REMOTE_OBJECT(current_wpm), |
41 | # endif | ||
16 | }; | 42 | }; |
17 | static uint8_t last_sent_wpm = 0; | ||
18 | #endif | 43 | #endif |
19 | 44 | ||
20 | void init_serial_link_hal(void) { | 45 | void init_serial_link_hal(void) { |
@@ -52,7 +77,7 @@ void init_serial_link_hal(void) { | |||
52 | void lcd_backlight_hal_init(void) { | 77 | void lcd_backlight_hal_init(void) { |
53 | // Setup Backlight | 78 | // Setup Backlight |
54 | SIM->SCGC6 |= SIM_SCGC6_FTM0; | 79 | SIM->SCGC6 |= SIM_SCGC6_FTM0; |
55 | FTM0->CNT = 0; // Reset counter | 80 | FTM0->CNT = 0; // Reset counter |
56 | 81 | ||
57 | // PWM Period | 82 | // PWM Period |
58 | // 16-bit maximum | 83 | // 16-bit maximum |
@@ -60,25 +85,25 @@ void lcd_backlight_hal_init(void) { | |||
60 | 85 | ||
61 | // Set FTM to PWM output - Edge Aligned, Low-true pulses | 86 | // Set FTM to PWM output - Edge Aligned, Low-true pulses |
62 | #define CNSC_MODE FTM_SC_CPWMS | FTM_SC_PS(4) | FTM_SC_CLKS(0) | 87 | #define CNSC_MODE FTM_SC_CPWMS | FTM_SC_PS(4) | FTM_SC_CLKS(0) |
63 | CHANNEL_RED.CnSC = CNSC_MODE; | 88 | CHANNEL_RED.CnSC = CNSC_MODE; |
64 | CHANNEL_GREEN.CnSC = CNSC_MODE; | 89 | CHANNEL_GREEN.CnSC = CNSC_MODE; |
65 | CHANNEL_BLUE.CnSC = CNSC_MODE; | 90 | CHANNEL_BLUE.CnSC = CNSC_MODE; |
66 | 91 | ||
67 | // System clock, /w prescalar setting | 92 | // System clock, /w prescalar setting |
68 | FTM0->SC = FTM_SC_CLKS(1) | FTM_SC_PS(PRESCALAR_DEFINE); | 93 | FTM0->SC = FTM_SC_CLKS(1) | FTM_SC_PS(PRESCALAR_DEFINE); |
69 | 94 | ||
70 | CHANNEL_RED.CnV = 0; | 95 | CHANNEL_RED.CnV = 0; |
71 | CHANNEL_GREEN.CnV = 0; | 96 | CHANNEL_GREEN.CnV = 0; |
72 | CHANNEL_BLUE.CnV = 0; | 97 | CHANNEL_BLUE.CnV = 0; |
73 | 98 | ||
74 | RGB_PORT_GPIO->PDDR |= (1 << RED_PIN); | 99 | RGB_PORT_GPIO->PDDR |= (1 << RED_PIN); |
75 | RGB_PORT_GPIO->PDDR |= (1 << GREEN_PIN); | 100 | RGB_PORT_GPIO->PDDR |= (1 << GREEN_PIN); |
76 | RGB_PORT_GPIO->PDDR |= (1 << BLUE_PIN); | 101 | RGB_PORT_GPIO->PDDR |= (1 << BLUE_PIN); |
77 | 102 | ||
78 | #define RGB_MODE PORTx_PCRn_SRE | PORTx_PCRn_DSE | PORTx_PCRn_MUX(4) | 103 | #define RGB_MODE PORTx_PCRn_SRE | PORTx_PCRn_DSE | PORTx_PCRn_MUX(4) |
79 | RGB_PORT->PCR[RED_PIN] = RGB_MODE; | 104 | RGB_PORT->PCR[RED_PIN] = RGB_MODE; |
80 | RGB_PORT->PCR[GREEN_PIN] = RGB_MODE; | 105 | RGB_PORT->PCR[GREEN_PIN] = RGB_MODE; |
81 | RGB_PORT->PCR[BLUE_PIN] = RGB_MODE; | 106 | RGB_PORT->PCR[BLUE_PIN] = RGB_MODE; |
82 | } | 107 | } |
83 | 108 | ||
84 | static uint16_t cie_lightness(uint16_t v) { | 109 | static uint16_t cie_lightness(uint16_t v) { |
@@ -89,12 +114,11 @@ static uint16_t cie_lightness(uint16_t v) { | |||
89 | // Y = (L* / 902.3) if L* <= 8 | 114 | // Y = (L* / 902.3) if L* <= 8 |
90 | // Y = ((L* + 16) / 116)^3 if L* > 8 | 115 | // Y = ((L* + 16) / 116)^3 if L* > 8 |
91 | 116 | ||
92 | float l = 100.0f * (v / 65535.0f); | 117 | float l = 100.0f * (v / 65535.0f); |
93 | float y = 0.0f; | 118 | float y = 0.0f; |
94 | if (l <= 8.0f) { | 119 | if (l <= 8.0f) { |
95 | y = l / 902.3; | 120 | y = l / 902.3; |
96 | } | 121 | } else { |
97 | else { | ||
98 | y = ((l + 16.0f) / 116.0f); | 122 | y = ((l + 16.0f) / 116.0f); |
99 | y = y * y * y; | 123 | y = y * y * y; |
100 | if (y > 1.0f) { | 124 | if (y > 1.0f) { |
@@ -105,31 +129,48 @@ static uint16_t cie_lightness(uint16_t v) { | |||
105 | } | 129 | } |
106 | 130 | ||
107 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) { | 131 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) { |
108 | CHANNEL_RED.CnV = cie_lightness(r); | 132 | CHANNEL_RED.CnV = cie_lightness(r); |
109 | CHANNEL_GREEN.CnV = cie_lightness(g); | 133 | CHANNEL_GREEN.CnV = cie_lightness(g); |
110 | CHANNEL_BLUE.CnV = cie_lightness(b); | 134 | CHANNEL_BLUE.CnV = cie_lightness(b); |
111 | } | 135 | } |
112 | 136 | ||
113 | __attribute__ ((weak)) | 137 | __attribute__ ((weak)) void matrix_init_user(void) {} |
114 | void matrix_init_user(void) { | 138 | |
115 | } | 139 | __attribute__ ((weak)) void matrix_scan_user(void) {} |
116 | 140 | ||
117 | __attribute__ ((weak)) | ||
118 | void matrix_scan_user(void) { | ||
119 | } | ||
120 | 141 | ||
142 | void keyboard_pre_init_kb() { | ||
143 | #ifdef LED_MATRIX_ENABLE | ||
144 | // Turn on LED controller | ||
145 | setPinOutput(B16); | ||
146 | writePinHigh(B16); | ||
147 | #endif | ||
148 | keyboard_pre_init_user(); | ||
149 | } | ||
121 | 150 | ||
122 | void matrix_init_kb(void) { | 151 | void matrix_init_kb(void) { |
123 | // put your keyboard start-up code here | 152 | // put your keyboard start-up code here |
124 | // runs once when the firmware starts up | 153 | // runs once when the firmware starts up |
125 | 154 | ||
155 | #ifdef LED_MATRIX_ENABLE | ||
156 | /* | ||
157 | * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), | ||
158 | * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. | ||
159 | */ | ||
160 | # if !defined(LED_MATRIX_STARTUP_SPD) | ||
161 | # define LED_MATRIX_STARTUP_SPD UINT8_MAX / 2 | ||
162 | # endif | ||
163 | led_matrix_set_speed(LED_MATRIX_STARTUP_SPD); | ||
164 | led_matrix_set_flags(LED_FLAG_ALL); | ||
165 | #endif | ||
166 | |||
126 | matrix_init_user(); | 167 | matrix_init_user(); |
127 | // The backlight always has to be initialized, otherwise it will stay lit | 168 | // The backlight always has to be initialized, otherwise it will stay lit |
128 | #ifndef VISUALIZER_ENABLE | 169 | #ifndef VISUALIZER_ENABLE |
129 | lcd_backlight_hal_init(); | 170 | lcd_backlight_hal_init(); |
130 | #endif | 171 | #endif |
131 | #ifdef WPM_ENABLE | 172 | #if (defined(LED_MATRIX_ENABLE) || defined(WPM_ENABLE)) |
132 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*)); | 173 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t *)); |
133 | #endif | 174 | #endif |
134 | } | 175 | } |
135 | 176 | ||
@@ -137,6 +178,30 @@ void matrix_scan_kb(void) { | |||
137 | // put your looping keyboard code here | 178 | // put your looping keyboard code here |
138 | // runs every cycle (a lot) | 179 | // runs every cycle (a lot) |
139 | 180 | ||
181 | #ifdef LED_MATRIX_ENABLE | ||
182 | if (is_serial_link_master()) { | ||
183 | if (!led_matrix_get_suspend_state()) { | ||
184 | if (timer_elapsed(led_matrix_sent_timer) >= 5000 || memcmp((void *)&last_sent_led_matrix, (void *)&led_matrix_eeconfig, sizeof(last_sent_led_matrix))) { | ||
185 | led_matrix_sent_timer = timer_read(); | ||
186 | memcpy((void *)&last_sent_led_matrix, (void *)&led_matrix_eeconfig, sizeof(last_sent_led_matrix)); | ||
187 | *begin_write_led_matrix() = last_sent_led_matrix; | ||
188 | end_write_led_matrix(); | ||
189 | } | ||
190 | } | ||
191 | } else if (is_serial_link_connected()) { | ||
192 | bool *new_led_suspend_state = read_led_suspend_state(); | ||
193 | if (new_led_suspend_state) { | ||
194 | led_matrix_set_suspend_state(*new_led_suspend_state); | ||
195 | } | ||
196 | if (!led_matrix_get_suspend_state()) { | ||
197 | led_eeconfig_t *new_led_matrix = read_led_matrix(); | ||
198 | if (new_led_matrix) { | ||
199 | memcpy((void *)&led_matrix_eeconfig, (void *)new_led_matrix, sizeof(last_sent_led_matrix)); | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | #endif | ||
204 | |||
140 | #ifdef WPM_ENABLE | 205 | #ifdef WPM_ENABLE |
141 | if (is_serial_link_master()) { | 206 | if (is_serial_link_master()) { |
142 | uint8_t current_wpm = get_current_wpm(); | 207 | uint8_t current_wpm = get_current_wpm(); |
@@ -146,67 +211,68 @@ void matrix_scan_kb(void) { | |||
146 | last_sent_wpm = current_wpm; | 211 | last_sent_wpm = current_wpm; |
147 | } | 212 | } |
148 | } else if (is_serial_link_connected()) { | 213 | } else if (is_serial_link_connected()) { |
149 | uint8_t* new_wpm = read_current_wpm(); | 214 | uint8_t *new_wpm = read_current_wpm(); |
150 | if (new_wpm) { | 215 | if (new_wpm) { |
151 | set_current_wpm(*new_wpm); | 216 | set_current_wpm(*new_wpm); |
152 | } | 217 | } |
153 | } | 218 | } |
154 | #endif | 219 | #endif |
220 | |||
155 | matrix_scan_user(); | 221 | matrix_scan_user(); |
156 | } | 222 | } |
157 | 223 | ||
158 | bool is_keyboard_master(void) { | 224 | bool is_keyboard_master(void) { return is_serial_link_master(); } |
159 | return is_serial_link_master(); | ||
160 | } | ||
161 | 225 | ||
162 | __attribute__ ((weak)) | 226 | bool is_keyboard_left(void) { |
163 | void ergodox_board_led_on(void){ | 227 | #if defined(EE_HANDS) |
228 | return eeconfig_read_handedness(); | ||
229 | #elif defined(MASTER_IS_ON_RIGHT) | ||
230 | return !is_keyboard_master(); | ||
231 | #else | ||
232 | return is_keyboard_master(); | ||
233 | #endif | ||
164 | } | 234 | } |
165 | 235 | ||
166 | __attribute__ ((weak)) | 236 | __attribute__ ((weak)) void ergodox_board_led_on(void) {} |
167 | void ergodox_right_led_1_on(void){ | ||
168 | } | ||
169 | 237 | ||
170 | __attribute__ ((weak)) | 238 | __attribute__ ((weak)) void ergodox_right_led_1_on(void) {} |
171 | void ergodox_right_led_2_on(void){ | ||
172 | } | ||
173 | 239 | ||
174 | __attribute__ ((weak)) | 240 | __attribute__ ((weak)) void ergodox_right_led_2_on(void) {} |
175 | void ergodox_right_led_3_on(void){ | ||
176 | } | ||
177 | 241 | ||
178 | __attribute__ ((weak)) | 242 | __attribute__ ((weak)) void ergodox_right_led_3_on(void) {} |
179 | void ergodox_board_led_off(void){ | ||
180 | } | ||
181 | 243 | ||
182 | __attribute__ ((weak)) | 244 | __attribute__ ((weak)) void ergodox_board_led_off(void) {} |
183 | void ergodox_right_led_1_off(void){ | ||
184 | } | ||
185 | 245 | ||
186 | __attribute__ ((weak)) | 246 | __attribute__ ((weak)) void ergodox_right_led_1_off(void) {} |
187 | void ergodox_right_led_2_off(void){ | ||
188 | } | ||
189 | 247 | ||
190 | __attribute__ ((weak)) | 248 | __attribute__ ((weak)) void ergodox_right_led_2_off(void) {} |
191 | void ergodox_right_led_3_off(void){ | ||
192 | } | ||
193 | 249 | ||
194 | __attribute__ ((weak)) | 250 | __attribute__ ((weak)) void ergodox_right_led_3_off(void) {} |
195 | void ergodox_right_led_1_set(uint8_t n) { | ||
196 | } | ||
197 | 251 | ||
198 | __attribute__ ((weak)) | 252 | __attribute__ ((weak)) void ergodox_right_led_1_set(uint8_t n) {} |
199 | void ergodox_right_led_2_set(uint8_t n) { | 253 | |
254 | __attribute__ ((weak)) void ergodox_right_led_2_set(uint8_t n) {} | ||
255 | |||
256 | __attribute__ ((weak)) void ergodox_right_led_3_set(uint8_t n) {} | ||
257 | |||
258 | void suspend_power_down_kb(void) { | ||
259 | #ifdef LED_MATRIX_ENABLE | ||
260 | send_led_suspend_state(); | ||
261 | #endif | ||
262 | suspend_power_down_user(); | ||
200 | } | 263 | } |
201 | 264 | ||
202 | __attribute__ ((weak)) | 265 | void suspend_wakeup_init_kb(void) { |
203 | void ergodox_right_led_3_set(uint8_t n) { | 266 | #ifdef LED_MATRIX_ENABLE |
267 | send_led_suspend_state(); | ||
268 | #endif | ||
269 | suspend_wakeup_init_user(); | ||
204 | } | 270 | } |
205 | 271 | ||
206 | #ifdef SWAP_HANDS_ENABLE | 272 | #ifdef SWAP_HANDS_ENABLE |
207 | __attribute__ ((weak)) | 273 | __attribute__ ((weak)) |
208 | const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 274 | const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
209 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, | 275 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, |
210 | {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}}, | 276 | {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}}, |
211 | {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}}, | 277 | {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}}, |
212 | {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}}, | 278 | {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}}, |
@@ -226,3 +292,115 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
226 | {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}}, | 292 | {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}}, |
227 | }; | 293 | }; |
228 | #endif | 294 | #endif |
295 | |||
296 | #ifdef LED_MATRIX_ENABLE | ||
297 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { | ||
298 | // The numbers in the comments are the led numbers DXX on the PCB | ||
299 | /* Refer to IS31 manual for these locations | ||
300 | * driver | ||
301 | * | LED address | ||
302 | * | | */ | ||
303 | // Left half | ||
304 | // 45 44 43 42 41 40 39 | ||
305 | { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, | ||
306 | // 52 51 50 49 48 47 46 | ||
307 | { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, | ||
308 | // 58 57 56 55 54 53 | ||
309 | { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, | ||
310 | // 67 66 65 64 63 62 61 | ||
311 | { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, | ||
312 | // 76 75 74 73 72 | ||
313 | { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, | ||
314 | // 60 59 | ||
315 | { 0, C2_5 }, { 0, C1_5 }, | ||
316 | // 68 | ||
317 | { 0, C5_6 }, | ||
318 | // 71 70 69 | ||
319 | { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, | ||
320 | // Right half (mirrored) | ||
321 | // Due to how LED_MATRIX_SPLIT is implemented, only the first half of g_is31_leds is actually used. | ||
322 | // Luckily, the right half has the same LED pinouts, just mirrored. | ||
323 | // 45 44 43 42 41 40 39 | ||
324 | { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, | ||
325 | // 52 51 50 49 48 47 46 | ||
326 | { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, | ||
327 | // 58 57 56 55 54 53 | ||
328 | { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, | ||
329 | // 67 66 65 64 63 62 61 | ||
330 | { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, | ||
331 | // 76 75 74 73 72 | ||
332 | { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, | ||
333 | // 60 59 | ||
334 | { 0, C2_5 }, { 0, C1_5 }, | ||
335 | // 68 | ||
336 | { 0, C5_6 }, | ||
337 | // 71 70 69 | ||
338 | { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, | ||
339 | }; | ||
340 | |||
341 | led_config_t g_led_config = { | ||
342 | { | ||
343 | // Key Matrix to LED Index | ||
344 | // Left half | ||
345 | { NO_LED, NO_LED, NO_LED, 33, 34 }, | ||
346 | { NO_LED, NO_LED, NO_LED, 32, 37 }, | ||
347 | { 6, 13, NO_LED, 26, 36 }, | ||
348 | { 5, 12, 19, 25, 35 }, | ||
349 | { 4, 11, 18, 24, 31 }, | ||
350 | { 3, 10, 17, 23, 30 }, | ||
351 | { 2, 9, 16, 22, 29 }, | ||
352 | { 1, 8, 15, 21, 28 }, | ||
353 | { 0, 7, 14, 20, 27 }, | ||
354 | // Right half | ||
355 | { NO_LED, NO_LED, NO_LED, 71, 72 }, | ||
356 | { NO_LED, NO_LED, NO_LED, 70, 75 }, | ||
357 | { 44, 51, NO_LED, 64, 74 }, | ||
358 | { 43, 50, 57, 63, 73 }, | ||
359 | { 42, 49, 56, 62, 69 }, | ||
360 | { 41, 48, 55, 61, 68 }, | ||
361 | { 40, 47, 54, 60, 67 }, | ||
362 | { 39, 46, 53, 59, 66 }, | ||
363 | { 38, 45, 52, 58, 65 }, | ||
364 | }, { | ||
365 | // LED Index to Physical Position (assumes a reasonable gap between halves) | ||
366 | // Left half | ||
367 | { 0, 3 }, { 15, 3 }, { 27, 1 }, { 39, 0 }, { 51, 1 }, { 63, 2 }, { 75, 2 }, | ||
368 | { 0, 13 }, { 15, 13 }, { 27, 11 }, { 39, 10 }, { 51, 11 }, { 63, 12 }, { 78, 17 }, | ||
369 | { 0, 23 }, { 15, 23 }, { 27, 21 }, { 39, 20 }, { 51, 21 }, { 63, 22 }, | ||
370 | { 0, 33 }, { 15, 33 }, { 27, 31 }, { 39, 30 }, { 51, 31 }, { 63, 32 }, { 78, 32 }, | ||
371 | { 4, 43 }, { 15, 43 }, { 27, 41 }, { 39, 40 }, { 51, 41 }, | ||
372 | { 89, 41 }, { 100, 46 }, | ||
373 | { 95, 55 }, | ||
374 | { 72, 54 }, { 83, 59 }, { 90, 64 }, | ||
375 | // Right half (mirrored) | ||
376 | { 224, 3 }, { 209, 3 }, { 197, 1 }, { 185, 0 }, { 173, 1 }, { 161, 2 }, { 149, 2 }, | ||
377 | { 224, 13 }, { 209, 13 }, { 197, 11 }, { 185, 10 }, { 173, 11 }, { 161, 12 }, { 146, 17 }, | ||
378 | { 224, 23 }, { 209, 23 }, { 197, 21 }, { 185, 20 }, { 173, 21 }, { 161, 22 }, | ||
379 | { 224, 33 }, { 209, 33 }, { 197, 31 }, { 185, 30 }, { 173, 31 }, { 161, 32 }, { 146, 32 }, | ||
380 | { 220, 43 }, { 209, 43 }, { 197, 41 }, { 185, 40 }, { 173, 41 }, | ||
381 | { 135, 41 }, { 124, 46 }, | ||
382 | { 129, 55 }, | ||
383 | { 152, 54 }, { 141, 59 }, { 134, 64 }, | ||
384 | }, { | ||
385 | // LED Index to Flag | ||
386 | // Left half | ||
387 | 1, 4, 4, 4, 4, 4, 1, | ||
388 | 1, 4, 4, 4, 4, 4, 1, | ||
389 | 1, 4, 4, 4, 4, 4, | ||
390 | 1, 4, 4, 4, 4, 4, 1, | ||
391 | 1, 1, 1, 1, 1, | ||
392 | 1, 1, | ||
393 | 1, | ||
394 | 1, 1, 1, | ||
395 | // Right half (mirrored) | ||
396 | 1, 4, 4, 4, 4, 4, 1, | ||
397 | 1, 4, 4, 4, 4, 4, 1, | ||
398 | 1, 4, 4, 4, 4, 4, | ||
399 | 1, 4, 4, 4, 4, 4, 1, | ||
400 | 1, 1, 1, 1, 1, | ||
401 | 1, 1, | ||
402 | 1, | ||
403 | 1, 1, 1, | ||
404 | } | ||
405 | }; | ||
406 | #endif | ||
diff --git a/keyboards/ergodox_infinity/matrix.c b/keyboards/ergodox_infinity/matrix.c index 7baacd24d..0fca56a97 100644 --- a/keyboards/ergodox_infinity/matrix.c +++ b/keyboards/ergodox_infinity/matrix.c | |||
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
24 | #include "print.h" | 24 | #include "print.h" |
25 | #include "debug.h" | 25 | #include "debug.h" |
26 | #include "matrix.h" | 26 | #include "matrix.h" |
27 | #include "eeconfig.h" | 27 | #include "keyboard.h" |
28 | #include "serial_link/system/serial_link.h" | 28 | #include "serial_link/system/serial_link.h" |
29 | 29 | ||
30 | 30 | ||
@@ -119,15 +119,9 @@ uint8_t matrix_scan(void) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | uint8_t offset = 0; | 121 | uint8_t offset = 0; |
122 | #if (defined(EE_HANDS) || defined(MASTER_IS_ON_RIGHT)) | 122 | if (is_serial_link_master() && !is_keyboard_left()) { |
123 | #ifdef EE_HANDS | ||
124 | if (is_serial_link_master() && !eeconfig_read_handedness()) { | ||
125 | #else | ||
126 | if (is_serial_link_master()) { | ||
127 | #endif | ||
128 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS; | 123 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS; |
129 | } | 124 | } |
130 | #endif | ||
131 | 125 | ||
132 | if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) { | 126 | if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) { |
133 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { | 127 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { |
@@ -167,17 +161,11 @@ void matrix_print(void) | |||
167 | 161 | ||
168 | void matrix_set_remote(matrix_row_t* rows, uint8_t index) { | 162 | void matrix_set_remote(matrix_row_t* rows, uint8_t index) { |
169 | uint8_t offset = 0; | 163 | uint8_t offset = 0; |
170 | #ifdef EE_HANDS | 164 | if (is_keyboard_left()) { |
171 | if (eeconfig_read_handedness()) { | ||
172 | offset = LOCAL_MATRIX_ROWS * (index + 1); | 165 | offset = LOCAL_MATRIX_ROWS * (index + 1); |
173 | } else { | 166 | } else { |
174 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); | 167 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); |
175 | } | 168 | } |
176 | #elif defined(MASTER_IS_ON_RIGHT) | ||
177 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); | ||
178 | #else | ||
179 | offset = LOCAL_MATRIX_ROWS * (index + 1); | ||
180 | #endif | ||
181 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { | 169 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { |
182 | matrix[offset + row] = rows[row]; | 170 | matrix[offset + row] = rows[row]; |
183 | } | 171 | } |
diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk index b9ead9e87..70bcabe80 100644 --- a/keyboards/ergodox_infinity/rules.mk +++ b/keyboards/ergodox_infinity/rules.mk | |||
@@ -22,8 +22,6 @@ CUSTOM_MATRIX = yes # Custom matrix file | |||
22 | SERIAL_LINK_ENABLE = yes | 22 | SERIAL_LINK_ENABLE = yes |
23 | VISUALIZER_ENABLE = yes | 23 | VISUALIZER_ENABLE = yes |
24 | LCD_ENABLE = yes | 24 | LCD_ENABLE = yes |
25 | BACKLIGHT_ENABLE = yes | ||
26 | BACKLIGHT_DRIVER = custom | ||
27 | LCD_BACKLIGHT_ENABLE = yes | 25 | LCD_BACKLIGHT_ENABLE = yes |
28 | MIDI_ENABLE = no | 26 | MIDI_ENABLE = no |
29 | RGBLIGHT_ENABLE = no | 27 | RGBLIGHT_ENABLE = no |
@@ -32,9 +30,8 @@ LCD_DRIVER = st7565 | |||
32 | LCD_WIDTH = 128 | 30 | LCD_WIDTH = 128 |
33 | LCD_HEIGHT = 32 | 31 | LCD_HEIGHT = 32 |
34 | 32 | ||
35 | LED_DRIVER = is31fl3731c | 33 | LED_MATRIX_ENABLE = yes |
36 | LED_WIDTH = 7 | 34 | LED_MATRIX_DRIVER = IS31FL3731 |
37 | LED_HEIGHT = 7 | ||
38 | 35 | ||
39 | # project specific files | 36 | # project specific files |
40 | SRC = matrix.c \ | 37 | SRC = matrix.c \ |
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h index 5f11cdddb..d0e208f9b 100644 --- a/keyboards/geekboards/macropad_v2/config.h +++ b/keyboards/geekboards/macropad_v2/config.h | |||
@@ -41,7 +41,7 @@ | |||
41 | #define WS2812_DMA_CHANNEL 3 | 41 | #define WS2812_DMA_CHANNEL 3 |
42 | 42 | ||
43 | #ifdef RGB_MATRIX_ENABLE | 43 | #ifdef RGB_MATRIX_ENABLE |
44 | #define RGB_MATRIX_KEYPRESSES | 44 | #define RGB_MATRIX_KEYPRESSES |
45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
46 | #define DISABLE_RGB_MATRIX_ALPHAS_MODS | 46 | #define DISABLE_RGB_MATRIX_ALPHAS_MODS |
47 | #define DISABLE_RGB_MATRIX_BAND_SAT | 47 | #define DISABLE_RGB_MATRIX_BAND_SAT |
@@ -67,7 +67,7 @@ | |||
67 | #define RGB_MATRIX_STARTUP_SPD 30 | 67 | #define RGB_MATRIX_STARTUP_SPD 30 |
68 | #endif //RGB_MATRIX_ENABLE | 68 | #endif //RGB_MATRIX_ENABLE |
69 | 69 | ||
70 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 70 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
71 | #define WAIT_FOR_USB | 71 | #define WAIT_FOR_USB |
72 | 72 | ||
73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
diff --git a/keyboards/geekboards/tester/config.h b/keyboards/geekboards/tester/config.h index 4f072c0ee..3e3daccd5 100644 --- a/keyboards/geekboards/tester/config.h +++ b/keyboards/geekboards/tester/config.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define DEBOUNCE 3 | 24 | #define DEBOUNCE 3 |
25 | #ifdef RGB_MATRIX_ENABLE | 25 | #ifdef RGB_MATRIX_ENABLE |
26 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 26 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
28 | #define RGB_MATRIX_KEYPRESSES | 28 | #define RGB_MATRIX_KEYPRESSES |
29 | #define DISABLE_RGB_MATRIX_SPLASH | 29 | #define DISABLE_RGB_MATRIX_SPLASH |
30 | #define DISABLE_RGB_MATRIX_MULTISPLASH | 30 | #define DISABLE_RGB_MATRIX_MULTISPLASH |
@@ -36,4 +36,4 @@ | |||
36 | #define DRIVER_1_LED_TOTAL 8 | 36 | #define DRIVER_1_LED_TOTAL 8 |
37 | #define DRIVER_2_LED_TOTAL 0 | 37 | #define DRIVER_2_LED_TOTAL 0 |
38 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | 38 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) |
39 | #endif \ No newline at end of file | 39 | #endif |
diff --git a/keyboards/gmmk/pro/config.h b/keyboards/gmmk/pro/config.h index ab3c7a7a2..64062bece 100644 --- a/keyboards/gmmk/pro/config.h +++ b/keyboards/gmmk/pro/config.h | |||
@@ -46,3 +46,20 @@ | |||
46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
47 | /* Locking resynchronize hack */ | 47 | /* Locking resynchronize hack */ |
48 | #define LOCKING_RESYNC_ENABLE | 48 | #define LOCKING_RESYNC_ENABLE |
49 | |||
50 | /* SPI Config for LED Driver */ | ||
51 | #define SPI_DRIVER SPID1 | ||
52 | #define SPI_SCK_PIN A5 | ||
53 | #define SPI_MOSI_PIN A6 | ||
54 | #define SPI_MISO_PIN A7 | ||
55 | |||
56 | #define DRIVER_1_CS B13 | ||
57 | #define DRIVER_2_CS B14 | ||
58 | #define DRIVER_1_EN C13 | ||
59 | #define DRIVER_2_EN C13 | ||
60 | |||
61 | #define DRIVER_COUNT 2 | ||
62 | #define DRIVER_1_LED_TOTAL 66 | ||
63 | #define DRIVER_2_LED_TOTAL 32 | ||
64 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
65 | |||
diff --git a/keyboards/gmmk/pro/halconf.h b/keyboards/gmmk/pro/halconf.h new file mode 100644 index 000000000..23ecb202a --- /dev/null +++ b/keyboards/gmmk/pro/halconf.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #define HAL_USE_SPI TRUE | ||
4 | #define SPI_USE_WAIT TRUE | ||
5 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
6 | |||
7 | #include_next <halconf.h> | ||
diff --git a/keyboards/gmmk/pro/mcuconf.h b/keyboards/gmmk/pro/mcuconf.h new file mode 100644 index 000000000..bb1c0acde --- /dev/null +++ b/keyboards/gmmk/pro/mcuconf.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include_next <mcuconf.h> | ||
4 | |||
5 | #undef STM32_SPI_USE_SPI1 | ||
6 | #define STM32_SPI_USE_SPI1 TRUE | ||
diff --git a/keyboards/gmmk/pro/pro.c b/keyboards/gmmk/pro/pro.c index 816d089a5..9ed7ac886 100644 --- a/keyboards/gmmk/pro/pro.c +++ b/keyboards/gmmk/pro/pro.c | |||
@@ -14,3 +14,225 @@ | |||
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 "pro.h" | 16 | #include "pro.h" |
17 | |||
18 | #ifdef RGB_MATRIX_ENABLE | ||
19 | led_config_t g_led_config = { { | ||
20 | { 4, NO_LED, NO_LED, 95, 65, 79, 5, 28 }, | ||
21 | { 8, 2, 9, 0, 10, 75, 1, 7 }, | ||
22 | { 14, 3, 15, NO_LED, 16, 86, 6, 13 }, | ||
23 | { 20, 18, 21, 23, 22, 94, 12, 19 }, | ||
24 | { 25, 30, 26, 31, 27, 32, 29, 24 }, | ||
25 | { 41, 36, 42, 37, 43, 38, 35, 40 }, | ||
26 | { 46, 89, 47, 34, 48, 72, 78, 45 }, | ||
27 | { 52, 39, 53, 97, 54, 82, 44, 51 }, | ||
28 | { 58, 63, 59, 64, NO_LED, 60, 62, 57 }, | ||
29 | { 11, 90, 55, 17, 33, 49, NO_LED, 69 }, | ||
30 | { NO_LED, 85, 93, 61, 96, 66, 50, 56 } | ||
31 | }, { | ||
32 | { 0, 0 }, // 0, ESC, k13 | ||
33 | { 0, 15 }, // 1, ~, k16 | ||
34 | { 4, 26 }, // 2, Tab, k11 | ||
35 | { 5, 38 }, // 3, Caps, k21 | ||
36 | { 9, 49 }, // 4, Sh_L, k00 | ||
37 | { 2, 61 }, // 5, Ct_L, k06 | ||
38 | { 18, 0 }, // 6, F1, k26 | ||
39 | { 14, 15 }, // 7, 1, k17 | ||
40 | { 22, 26 }, // 8, Q, k10 | ||
41 | { 25, 38 }, // 9, A, k12 | ||
42 | { 33, 49 }, // 10, Z, k14 | ||
43 | { 20, 61 }, // 11, Win_L, k90 | ||
44 | { 33, 0 }, // 12, F2, k36 | ||
45 | { 29, 15 }, // 13, 2, k27 | ||
46 | { 36, 26 }, // 14, W, k20 | ||
47 | { 40, 38 }, // 15, S, k22 | ||
48 | { 47, 49 }, // 16, X, k24 | ||
49 | { 38, 61 }, // 17, Alt_L, k93 | ||
50 | { 47, 0 }, // 18, F3, k31 | ||
51 | { 43, 15 }, // 19, 3, k37 | ||
52 | { 51, 26 }, // 20, E, k30 | ||
53 | { 54, 38 }, // 21, D, k32 | ||
54 | { 61, 49 }, // 22, C, k34 | ||
55 | { 61, 0 }, // 23, F4, k33 | ||
56 | { 58, 15 }, // 24, 4, k47 | ||
57 | { 65, 26 }, // 25, R, k40 | ||
58 | { 69, 38 }, // 26, F, k42 | ||
59 | { 76, 49 }, // 27, V, k44 | ||
60 | { 79, 0 }, // 28, F5, k07 | ||
61 | { 72, 15 }, // 29, 5, k46 | ||
62 | { 79, 26 }, // 30, T, k41 | ||
63 | { 83, 38 }, // 31, G, k43 | ||
64 | { 90, 49 }, // 32, B, k45 | ||
65 | { 92, 61 }, // 33, SPACE, k94 | ||
66 | { 94, 0 }, // 34, F6, k63 | ||
67 | { 87, 15 }, // 35, 6, k56 | ||
68 | { 94, 26 }, // 36, Y, k51 | ||
69 | { 98, 38 }, // 37, H, k53 | ||
70 | { 105, 49 }, // 38, N, k55 | ||
71 | { 108, 0 }, // 39, F7, k71 | ||
72 | { 101, 15 }, // 40, 7, k57 | ||
73 | { 108, 26 }, // 41, U, k50 | ||
74 | { 112, 38 }, // 42, J, k52 | ||
75 | { 119, 49 }, // 43, M, k54 | ||
76 | { 123, 0 }, // 44, F8, k76 | ||
77 | { 116, 15 }, // 45, 8, k67 | ||
78 | { 123, 26 }, // 46, I, k60 | ||
79 | { 126, 38 }, // 47, K, k62 | ||
80 | { 134, 49 }, // 48, ,, k64 | ||
81 | { 145, 61 }, // 49, Alt_R, k95 | ||
82 | { 141, 0 }, // 50, F9, ka6 | ||
83 | { 130, 15 }, // 51, 9, k77 | ||
84 | { 137, 26 }, // 52, O, k70 | ||
85 | { 141, 38 }, // 53, L, k72 | ||
86 | { 148, 49 }, // 54, ., k74 | ||
87 | { 159, 61 }, // 55, FN, k92 | ||
88 | { 155, 0 }, // 56, F10, ka7 | ||
89 | { 145, 15 }, // 57, 0, k87 | ||
90 | { 152, 26 }, // 58, P, k80 | ||
91 | { 155, 38 }, // 59, ;, k82 | ||
92 | { 163, 49 }, // 60, ?, k85 | ||
93 | { 170, 0 }, // 61, F11, ka3 | ||
94 | { 159, 15 }, // 62, -, k86 | ||
95 | { 166, 26 }, // 63, [, k81 | ||
96 | { 170, 38 }, // 64, ", k83 | ||
97 | { 173, 61 }, // 65, Ct_R, k04 | ||
98 | { 184, 0 }, // 66, F12, ka5 | ||
99 | { 0, 8 }, // 67, LED, l01 | ||
100 | { 224, 8 }, // 68, LED, l11 | ||
101 | { 202, 0 }, // 69, Prt, k97 | ||
102 | { 0, 15 }, // 70, LED, l02 | ||
103 | { 224, 15 }, // 71, LED, l12 | ||
104 | { 224, 15 }, // 72, Del, k65 | ||
105 | { 0, 21 }, // 73, LED, l03 | ||
106 | { 224, 21 }, // 74, LED, l13 | ||
107 | { 224, 26 }, // 75, PgUp, k15 | ||
108 | { 0, 28 }, // 76, LED, l04 | ||
109 | { 224, 28 }, // 77, LED, l14 | ||
110 | { 173, 15 }, // 78, =, k66 | ||
111 | { 220, 64 }, // 79, Right, k05 | ||
112 | { 0, 35 }, // 80, LED, l05 | ||
113 | { 224, 35 }, // 81, LED, l15 | ||
114 | { 224, 49 }, // 82, End, k75 | ||
115 | { 0, 42 }, // 83, LED, l06 | ||
116 | { 224, 42 }, // 84, LED, l16 | ||
117 | { 195, 15 }, // 85, BSpc, ka1 | ||
118 | { 224, 38 }, // 86, PgDn, k25 | ||
119 | { 0, 48 }, // 87, LED, l07 | ||
120 | { 224, 48 }, // 88, LED, l17 | ||
121 | { 181, 26 }, // 89, ], k61 | ||
122 | { 182, 49 }, // 90, Sh_R, k91 | ||
123 | { 0, 55 }, // 91, LED, l08 | ||
124 | { 224, 55 }, // 92, LED, l18 | ||
125 | { 199, 26 }, // 93, \, ka2 | ||
126 | { 206, 52 }, // 94, Up, k35 | ||
127 | { 191, 64 }, // 95, Left, k03 | ||
128 | { 193, 38 }, // 96, Enter, ka4 | ||
129 | { 206, 64 } // 97, Down, k73 | ||
130 | }, { | ||
131 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
132 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
133 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 4, 2, 2, 4, 2, 2, | ||
134 | 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 | ||
135 | } }; | ||
136 | |||
137 | const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { | ||
138 | { 0, CS1_SW1, CS2_SW1, CS3_SW1 }, // 0, ESC, k13 | ||
139 | { 0, CS4_SW1, CS5_SW1, CS6_SW1 }, // 1, ~, k16 | ||
140 | { 0, CS7_SW1, CS8_SW1, CS9_SW1 }, // 2, Tab, k11 | ||
141 | { 0, CS10_SW1, CS11_SW1, CS12_SW1 }, // 3, Caps, k21 | ||
142 | { 0, CS13_SW1, CS14_SW1, CS15_SW1 }, // 4, Sh_L, k00 | ||
143 | { 0, CS16_SW1, CS17_SW1, CS18_SW1 }, // 5, Ct_L, k06 | ||
144 | { 0, CS1_SW2, CS2_SW2, CS3_SW2 }, // 6, F1, k26 | ||
145 | { 0, CS4_SW2, CS5_SW2, CS6_SW2 }, // 7, 1, k17 | ||
146 | { 0, CS7_SW2, CS8_SW2, CS9_SW2 }, // 8, Q, k10 | ||
147 | { 0, CS10_SW2, CS11_SW2, CS12_SW2 }, // 9, A, k12 | ||
148 | { 0, CS13_SW2, CS14_SW2, CS15_SW2 }, // 10, Z, k14 | ||
149 | { 0, CS16_SW2, CS17_SW2, CS18_SW2 }, // 11, Win_L, k90 | ||
150 | { 0, CS1_SW3, CS2_SW3, CS3_SW3 }, // 12, F2, k36 | ||
151 | { 0, CS4_SW3, CS5_SW3, CS6_SW3 }, // 13, 2, k27 | ||
152 | { 0, CS7_SW3, CS8_SW3, CS9_SW3 }, // 14, W, k20 | ||
153 | { 0, CS10_SW3, CS11_SW3, CS12_SW3 }, // 15, S, k22 | ||
154 | { 0, CS13_SW3, CS14_SW3, CS15_SW3 }, // 16, X, k24 | ||
155 | { 0, CS16_SW3, CS17_SW3, CS18_SW3 }, // 17, Alt_L, k93 | ||
156 | { 0, CS1_SW4, CS2_SW4, CS3_SW4 }, // 18, F3, k31 | ||
157 | { 0, CS4_SW4, CS5_SW4, CS6_SW4 }, // 19, 3, k37 | ||
158 | { 0, CS7_SW4, CS8_SW4, CS9_SW4 }, // 20, E, k30 | ||
159 | { 0, CS10_SW4, CS11_SW4, CS12_SW4 }, // 21, D, k32 | ||
160 | { 0, CS13_SW4, CS14_SW4, CS15_SW4 }, // 22, C, k34 | ||
161 | { 0, CS1_SW5, CS2_SW5, CS3_SW5 }, // 23, F4, k33 | ||
162 | { 0, CS4_SW5, CS5_SW5, CS6_SW5 }, // 24, 4, k47 | ||
163 | { 0, CS7_SW5, CS8_SW5, CS9_SW5 }, // 25, R, k40 | ||
164 | { 0, CS10_SW5, CS11_SW5, CS12_SW5 }, // 26, F, k42 | ||
165 | { 0, CS13_SW5, CS14_SW5, CS15_SW5 }, // 27, V, k44 | ||
166 | { 0, CS1_SW6, CS2_SW6, CS3_SW6 }, // 28, F5, k07 | ||
167 | { 0, CS4_SW6, CS5_SW6, CS6_SW6 }, // 29, 5, k46 | ||
168 | { 0, CS7_SW6, CS8_SW6, CS9_SW6 }, // 30, T, k41 | ||
169 | { 0, CS10_SW6, CS11_SW6, CS12_SW6 }, // 31, G, k43 | ||
170 | { 0, CS13_SW6, CS14_SW6, CS15_SW6 }, // 32, B, k45 | ||
171 | { 0, CS16_SW6, CS17_SW6, CS18_SW6 }, // 33, SPACE, k94 | ||
172 | { 0, CS1_SW7, CS2_SW7, CS3_SW7 }, // 34, F6, k63 | ||
173 | { 0, CS4_SW7, CS5_SW7, CS6_SW7 }, // 35, 6, k56 | ||
174 | { 0, CS7_SW7, CS8_SW7, CS9_SW7 }, // 36, Y, k51 | ||
175 | { 0, CS10_SW7, CS11_SW7, CS12_SW7 }, // 37, H, k53 | ||
176 | { 0, CS13_SW7, CS14_SW7, CS15_SW7 }, // 38, N, k55 | ||
177 | { 0, CS1_SW8, CS2_SW8, CS3_SW8 }, // 39, F7, k71 | ||
178 | { 0, CS4_SW8, CS5_SW8, CS6_SW8 }, // 40, 7, k57 | ||
179 | { 0, CS7_SW8, CS8_SW8, CS9_SW8 }, // 41, U, k50 | ||
180 | { 0, CS10_SW8, CS11_SW8, CS12_SW8 }, // 42, J, k52 | ||
181 | { 0, CS13_SW8, CS14_SW8, CS15_SW8 }, // 43, M, k54 | ||
182 | { 0, CS1_SW9, CS2_SW9, CS3_SW9 }, // 44, F8, k76 | ||
183 | { 0, CS4_SW9, CS5_SW9, CS6_SW9 }, // 45, 8, k67 | ||
184 | { 0, CS7_SW9, CS8_SW9, CS9_SW9 }, // 46, I, k60 | ||
185 | { 0, CS10_SW9, CS11_SW9, CS12_SW9 }, // 47, K, k62 | ||
186 | { 0, CS13_SW9, CS14_SW9, CS15_SW9 }, // 48, ,, k64 | ||
187 | { 0, CS16_SW9, CS17_SW9, CS18_SW9 }, // 49, Alt_R, k95 | ||
188 | { 0, CS1_SW10, CS2_SW10, CS3_SW10 }, // 50, F9, ka6 | ||
189 | { 0, CS4_SW10, CS5_SW10, CS6_SW10 }, // 51, 9, k77 | ||
190 | { 0, CS7_SW10, CS8_SW10, CS9_SW10 }, // 52, O, k70 | ||
191 | { 0, CS10_SW10, CS11_SW10, CS12_SW10 }, // 53, L, k72 | ||
192 | { 0, CS13_SW10, CS14_SW10, CS15_SW10 }, // 54, ., k74 | ||
193 | { 0, CS16_SW10, CS17_SW10, CS18_SW10 }, // 55, FN, k92 | ||
194 | { 0, CS1_SW11, CS2_SW11, CS3_SW11 }, // 56, F10, ka7 | ||
195 | { 0, CS4_SW11, CS5_SW11, CS6_SW11 }, // 57, 0, k87 | ||
196 | { 0, CS7_SW11, CS8_SW11, CS9_SW11 }, // 58, P, k80 | ||
197 | { 0, CS10_SW11, CS11_SW11, CS12_SW11 }, // 59, ;, k82 | ||
198 | { 0, CS13_SW11, CS14_SW11, CS15_SW11 }, // 60, ?, k85 | ||
199 | { 0, CS1_SW12, CS2_SW12, CS3_SW12 }, // 61, F11, ka3 | ||
200 | { 0, CS4_SW12, CS5_SW12, CS6_SW12 }, // 62, -, k86 | ||
201 | { 0, CS7_SW12, CS8_SW12, CS9_SW12 }, // 63, [, k81 | ||
202 | { 0, CS10_SW12, CS11_SW12, CS12_SW12 }, // 64, ", k83 | ||
203 | { 0, CS16_SW12, CS17_SW12, CS18_SW12 }, // 65, Ct_R, k04 | ||
204 | |||
205 | { 1, CS1_SW1, CS2_SW1, CS3_SW1 }, // 66, F12, ka5 | ||
206 | { 1, CS13_SW1, CS14_SW1, CS15_SW1 }, // 67, LED, l01 | ||
207 | { 1, CS16_SW1, CS17_SW1, CS18_SW1 }, // 68, LED, l11 | ||
208 | { 1, CS4_SW2, CS5_SW2, CS6_SW2 }, // 69, Prt, k97 | ||
209 | { 1, CS13_SW2, CS14_SW2, CS15_SW2 }, // 70, LED, l02 | ||
210 | { 1, CS16_SW2, CS17_SW2, CS18_SW2 }, // 71, LED, l12 | ||
211 | { 1, CS4_SW3, CS5_SW3, CS6_SW3 }, // 72, Del, k65 | ||
212 | { 1, CS13_SW3, CS14_SW3, CS15_SW3 }, // 73, LED, l03 | ||
213 | { 1, CS16_SW3, CS17_SW3, CS18_SW3 }, // 74, LED, l13 | ||
214 | { 1, CS4_SW4, CS5_SW4, CS6_SW4 }, // 75, PgUp, k15 | ||
215 | { 1, CS13_SW4, CS14_SW4, CS15_SW4 }, // 76, LED, l04 | ||
216 | { 1, CS16_SW4, CS17_SW4, CS18_SW4 }, // 77, LED, l14 | ||
217 | { 1, CS1_SW5, CS2_SW5, CS3_SW5 }, // 78, =, k66 | ||
218 | { 1, CS10_SW5, CS11_SW5, CS12_SW5 }, // 79, Right, k05 | ||
219 | { 1, CS13_SW5, CS14_SW5, CS15_SW5 }, // 80, LED, l05 | ||
220 | { 1, CS16_SW5, CS17_SW5, CS18_SW5 }, // 81, LED, l15 | ||
221 | { 1, CS4_SW6, CS5_SW6, CS6_SW6 }, // 82, End, k75 | ||
222 | { 1, CS13_SW6, CS14_SW6, CS15_SW6 }, // 83, LED, l06 | ||
223 | { 1, CS16_SW6, CS17_SW6, CS18_SW6 }, // 84, LED, l16 | ||
224 | { 1, CS1_SW7, CS2_SW7, CS3_SW7 }, // 85, BSpc, ka1 | ||
225 | { 1, CS4_SW7, CS5_SW7, CS6_SW7 }, // 86, PgDn, k25 | ||
226 | { 1, CS13_SW7, CS14_SW7, CS15_SW7 }, // 87, LED, l07 | ||
227 | { 1, CS16_SW7, CS17_SW7, CS18_SW7 }, // 88, LED, l17 | ||
228 | { 1, CS1_SW8, CS2_SW8, CS3_SW8 }, // 89, ], k61 | ||
229 | { 1, CS4_SW8, CS5_SW8, CS6_SW8 }, // 90, Sh_R, k91 | ||
230 | { 1, CS13_SW8, CS14_SW8, CS15_SW8 }, // 91, LED, l08 | ||
231 | { 1, CS16_SW8, CS17_SW8, CS18_SW8 }, // 92, LED, l18 | ||
232 | { 1, CS1_SW9, CS2_SW9, CS3_SW9 }, // 93, \, ka2 | ||
233 | { 1, CS4_SW9, CS5_SW9, CS6_SW9 }, // 94, Up, k35 | ||
234 | { 1, CS4_SW10, CS5_SW10, CS6_SW10 }, // 95, Left, k03 | ||
235 | { 1, CS1_SW11, CS2_SW11, CS3_SW11 }, // 96, Enter, ka4 | ||
236 | { 1, CS4_SW11, CS5_SW11, CS6_SW11 }, // 97, Down, k73 | ||
237 | }; | ||
238 | #endif | ||
diff --git a/keyboards/gmmk/pro/rules.mk b/keyboards/gmmk/pro/rules.mk index b12d055a3..6221d6408 100644 --- a/keyboards/gmmk/pro/rules.mk +++ b/keyboards/gmmk/pro/rules.mk | |||
@@ -21,3 +21,5 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | ENCODER_ENABLE = yes | 23 | ENCODER_ENABLE = yes |
24 | RGB_MATRIX_ENABLE = yes | ||
25 | RGB_MATRIX_DRIVER = AW20216 | ||
diff --git a/keyboards/handwired/colorlice/config.h b/keyboards/handwired/colorlice/config.h index 206a4004e..0148817f3 100644 --- a/keyboards/handwired/colorlice/config.h +++ b/keyboards/handwired/colorlice/config.h | |||
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
49 | /* RGB LEDs */ | 49 | /* RGB LEDs */ |
50 | #define RGB_DI_PIN B1 | 50 | #define RGB_DI_PIN B1 |
51 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 51 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
52 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 52 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
53 | #define RGB_MATRIX_KEYPRESSES | 53 | #define RGB_MATRIX_KEYPRESSES |
54 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 54 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
55 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 55 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/5x6_right_trackball.h b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/5x6_right_trackball.h index c8650f73d..ed408563f 100644 --- a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/5x6_right_trackball.h +++ b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/5x6_right_trackball.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "dactyl_manuform.h" | 19 | #include "dactyl_manuform.h" |
20 | #include "quantum.h" | 20 | #include "quantum.h" |
21 | #include "spi_master.h" | 21 | #include "spi_master.h" |
22 | #include "pmw3360.h" | 22 | #include "drivers/sensors/pmw3360.h" |
23 | #include "pointing_device.h" | 23 | #include "pointing_device.h" |
24 | 24 | ||
25 | 25 | ||
diff --git a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.c b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.c deleted file mode 100644 index 59e349512..000000000 --- a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.c +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #ifdef POINTING_DEVICE_ENABLE | ||
20 | |||
21 | #include "wait.h" | ||
22 | #include "debug.h" | ||
23 | #include "print.h" | ||
24 | #include "pmw3360.h" | ||
25 | #include "pmw3360_firmware.h" | ||
26 | |||
27 | bool _inBurst = false; | ||
28 | |||
29 | #ifndef PMW_CPI | ||
30 | # define PMW_CPI 1600 | ||
31 | #endif | ||
32 | #ifndef SPI_DIVISOR | ||
33 | # define SPI_DIVISOR 2 | ||
34 | #endif | ||
35 | #ifndef ROTATIONAL_TRANSFORM_ANGLE | ||
36 | # define ROTATIONAL_TRANSFORM_ANGLE 0x00 | ||
37 | #endif | ||
38 | |||
39 | void print_byte(uint8_t byte) { dprintf("%c%c%c%c%c%c%c%c|", (byte & 0x80 ? '1' : '0'), (byte & 0x40 ? '1' : '0'), (byte & 0x20 ? '1' : '0'), (byte & 0x10 ? '1' : '0'), (byte & 0x08 ? '1' : '0'), (byte & 0x04 ? '1' : '0'), (byte & 0x02 ? '1' : '0'), (byte & 0x01 ? '1' : '0')); } | ||
40 | |||
41 | bool spi_start_adv(void) { | ||
42 | bool status = spi_start(SPI_SS_PIN, false, 3, SPI_DIVISOR); | ||
43 | wait_us(1); | ||
44 | return status; | ||
45 | } | ||
46 | |||
47 | void spi_stop_adv(void) { | ||
48 | wait_us(1); | ||
49 | spi_stop(); | ||
50 | } | ||
51 | |||
52 | spi_status_t spi_write_adv(uint8_t reg_addr, uint8_t data) { | ||
53 | if (reg_addr != REG_Motion_Burst) { | ||
54 | _inBurst = false; | ||
55 | } | ||
56 | |||
57 | spi_start_adv(); | ||
58 | // send address of the register, with MSBit = 1 to indicate it's a write | ||
59 | spi_status_t status = spi_write(reg_addr | 0x80); | ||
60 | status = spi_write(data); | ||
61 | |||
62 | // tSCLK-NCS for write operation | ||
63 | wait_us(20); | ||
64 | |||
65 | // tSWW/tSWR (=120us) minus tSCLK-NCS. Could be shortened, but is looks like a safe lower bound | ||
66 | wait_us(100); | ||
67 | spi_stop(); | ||
68 | return status; | ||
69 | } | ||
70 | |||
71 | uint8_t spi_read_adv(uint8_t reg_addr) { | ||
72 | spi_start_adv(); | ||
73 | // send adress of the register, with MSBit = 0 to indicate it's a read | ||
74 | spi_write(reg_addr & 0x7f); | ||
75 | |||
76 | uint8_t data = spi_read(); | ||
77 | |||
78 | // tSCLK-NCS for read operation is 120ns | ||
79 | wait_us(1); | ||
80 | |||
81 | // tSRW/tSRR (=20us) minus tSCLK-NCS | ||
82 | wait_us(19); | ||
83 | |||
84 | spi_stop(); | ||
85 | return data; | ||
86 | } | ||
87 | |||
88 | void pmw_set_cpi(uint16_t cpi) { | ||
89 | int cpival = constrain((cpi / 100) - 1, 0, 0x77); // limits to 0--119 | ||
90 | |||
91 | spi_start_adv(); | ||
92 | spi_write_adv(REG_Config1, cpival); | ||
93 | spi_stop(); | ||
94 | } | ||
95 | |||
96 | bool pmw_spi_init(void) { | ||
97 | spi_init(); | ||
98 | _inBurst = false; | ||
99 | |||
100 | spi_stop(); | ||
101 | spi_start_adv(); | ||
102 | spi_stop(); | ||
103 | |||
104 | spi_write_adv(REG_Shutdown, 0xb6); // Shutdown first | ||
105 | wait_ms(300); | ||
106 | |||
107 | spi_start_adv(); | ||
108 | wait_us(40); | ||
109 | spi_stop_adv(); | ||
110 | wait_us(40); | ||
111 | |||
112 | spi_write_adv(REG_Power_Up_Reset, 0x5a); | ||
113 | wait_ms(50); | ||
114 | |||
115 | spi_read_adv(REG_Motion); | ||
116 | spi_read_adv(REG_Delta_X_L); | ||
117 | spi_read_adv(REG_Delta_X_H); | ||
118 | spi_read_adv(REG_Delta_Y_L); | ||
119 | spi_read_adv(REG_Delta_Y_H); | ||
120 | |||
121 | pmw_upload_firmware(); | ||
122 | |||
123 | spi_stop_adv(); | ||
124 | |||
125 | wait_ms(10); | ||
126 | pmw_set_cpi(PMW_CPI); | ||
127 | |||
128 | wait_ms(1); | ||
129 | |||
130 | return pmw_check_signature(); | ||
131 | } | ||
132 | |||
133 | void pmw_upload_firmware(void) { | ||
134 | spi_write_adv(REG_Config2, 0x00); | ||
135 | |||
136 | spi_write_adv(REG_Angle_Tune, constrain(ROTATIONAL_TRANSFORM_ANGLE, -30, 30)); | ||
137 | |||
138 | spi_write_adv(REG_SROM_Enable, 0x1d); | ||
139 | |||
140 | wait_ms(10); | ||
141 | |||
142 | spi_write_adv(REG_SROM_Enable, 0x18); | ||
143 | |||
144 | spi_start_adv(); | ||
145 | spi_write(REG_SROM_Load_Burst | 0x80); | ||
146 | wait_us(15); | ||
147 | |||
148 | unsigned char c; | ||
149 | for (int i = 0; i < firmware_length; i++) { | ||
150 | c = (unsigned char)pgm_read_byte(firmware_data + i); | ||
151 | spi_write(c); | ||
152 | wait_us(15); | ||
153 | } | ||
154 | wait_us(200); | ||
155 | |||
156 | spi_read_adv(REG_SROM_ID); | ||
157 | |||
158 | spi_write_adv(REG_Config2, 0x00); | ||
159 | |||
160 | spi_stop(); | ||
161 | wait_ms(10); | ||
162 | } | ||
163 | |||
164 | bool pmw_check_signature(void) { | ||
165 | uint8_t pid = spi_read_adv(REG_Product_ID); | ||
166 | uint8_t iv_pid = spi_read_adv(REG_Inverse_Product_ID); | ||
167 | uint8_t SROM_ver = spi_read_adv(REG_SROM_ID); | ||
168 | return (pid == 0x42 && iv_pid == 0xBD && SROM_ver == 0x04); // signature for SROM 0x04 | ||
169 | } | ||
170 | |||
171 | report_pmw_t pmw_read_burst(void) { | ||
172 | if (!_inBurst) { | ||
173 | dprintf("burst on"); | ||
174 | spi_write_adv(REG_Motion_Burst, 0x00); | ||
175 | _inBurst = true; | ||
176 | } | ||
177 | |||
178 | spi_start_adv(); | ||
179 | spi_write(REG_Motion_Burst); | ||
180 | wait_us(35); // waits for tSRAD | ||
181 | |||
182 | report_pmw_t data; | ||
183 | data.motion = 0; | ||
184 | data.dx = 0; | ||
185 | data.mdx = 0; | ||
186 | data.dy = 0; | ||
187 | data.mdx = 0; | ||
188 | |||
189 | data.motion = spi_read(); | ||
190 | spi_write(0x00); // skip Observation | ||
191 | data.dx = spi_read(); | ||
192 | data.mdx = spi_read(); | ||
193 | data.dy = spi_read(); | ||
194 | data.mdy = spi_read(); | ||
195 | |||
196 | spi_stop(); | ||
197 | |||
198 | print_byte(data.motion); | ||
199 | print_byte(data.dx); | ||
200 | print_byte(data.mdx); | ||
201 | print_byte(data.dy); | ||
202 | print_byte(data.mdy); | ||
203 | dprintf("\n"); | ||
204 | |||
205 | data.isMotion = (data.motion & 0x80) != 0; | ||
206 | data.isOnSurface = (data.motion & 0x08) == 0; | ||
207 | data.dx |= (data.mdx << 8); | ||
208 | data.dx = data.dx * -1; | ||
209 | data.dy |= (data.mdy << 8); | ||
210 | data.dy = data.dy * -1; | ||
211 | |||
212 | spi_stop(); | ||
213 | |||
214 | if (data.motion & 0b111) { // panic recovery, sometimes burst mode works weird. | ||
215 | _inBurst = false; | ||
216 | } | ||
217 | |||
218 | return data; | ||
219 | } | ||
220 | |||
221 | #endif | ||
diff --git a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.h b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.h deleted file mode 100644 index c1d5e3bad..000000000 --- a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.h +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #include "spi_master.h" | ||
22 | |||
23 | // Registers | ||
24 | #define REG_Product_ID 0x00 | ||
25 | #define REG_Revision_ID 0x01 | ||
26 | #define REG_Motion 0x02 | ||
27 | #define REG_Delta_X_L 0x03 | ||
28 | #define REG_Delta_X_H 0x04 | ||
29 | #define REG_Delta_Y_L 0x05 | ||
30 | #define REG_Delta_Y_H 0x06 | ||
31 | #define REG_SQUAL 0x07 | ||
32 | #define REG_Raw_Data_Sum 0x08 | ||
33 | #define REG_Maximum_Raw_data 0x09 | ||
34 | #define REG_Minimum_Raw_data 0x0A | ||
35 | #define REG_Shutter_Lower 0x0B | ||
36 | #define REG_Shutter_Upper 0x0C | ||
37 | #define REG_Control 0x0D | ||
38 | #define REG_Config1 0x0F | ||
39 | #define REG_Config2 0x10 | ||
40 | #define REG_Angle_Tune 0x11 | ||
41 | #define REG_Frame_Capture 0x12 | ||
42 | #define REG_SROM_Enable 0x13 | ||
43 | #define REG_Run_Downshift 0x14 | ||
44 | #define REG_Rest1_Rate_Lower 0x15 | ||
45 | #define REG_Rest1_Rate_Upper 0x16 | ||
46 | #define REG_Rest1_Downshift 0x17 | ||
47 | #define REG_Rest2_Rate_Lower 0x18 | ||
48 | #define REG_Rest2_Rate_Upper 0x19 | ||
49 | #define REG_Rest2_Downshift 0x1A | ||
50 | #define REG_Rest3_Rate_Lower 0x1B | ||
51 | #define REG_Rest3_Rate_Upper 0x1C | ||
52 | #define REG_Observation 0x24 | ||
53 | #define REG_Data_Out_Lower 0x25 | ||
54 | #define REG_Data_Out_Upper 0x26 | ||
55 | #define REG_Raw_Data_Dump 0x29 | ||
56 | #define REG_SROM_ID 0x2A | ||
57 | #define REG_Min_SQ_Run 0x2B | ||
58 | #define REG_Raw_Data_Threshold 0x2C | ||
59 | #define REG_Config5 0x2F | ||
60 | #define REG_Power_Up_Reset 0x3A | ||
61 | #define REG_Shutdown 0x3B | ||
62 | #define REG_Inverse_Product_ID 0x3F | ||
63 | #define REG_LiftCutoff_Tune3 0x41 | ||
64 | #define REG_Angle_Snap 0x42 | ||
65 | #define REG_LiftCutoff_Tune1 0x4A | ||
66 | #define REG_Motion_Burst 0x50 | ||
67 | #define REG_LiftCutoff_Tune_Timeout 0x58 | ||
68 | #define REG_LiftCutoff_Tune_Min_Length 0x5A | ||
69 | #define REG_SROM_Load_Burst 0x62 | ||
70 | #define REG_Lift_Config 0x63 | ||
71 | #define REG_Raw_Data_Burst 0x64 | ||
72 | #define REG_LiftCutoff_Tune2 0x65 | ||
73 | |||
74 | #ifdef CONSOLE_ENABLE | ||
75 | void print_byte(uint8_t byte); | ||
76 | #endif | ||
77 | |||
78 | typedef struct { | ||
79 | int8_t motion; | ||
80 | bool isMotion; // True if a motion is detected. | ||
81 | bool isOnSurface; // True when a chip is on a surface | ||
82 | int16_t dx; // displacement on x directions. Unit: Count. (CPI * Count = Inch value) | ||
83 | int8_t mdx; | ||
84 | int16_t dy; // displacement on y directions. | ||
85 | int8_t mdy; | ||
86 | } report_pmw_t; | ||
87 | |||
88 | |||
89 | |||
90 | bool spi_start_adv(void); | ||
91 | void spi_stop_adv(void); | ||
92 | spi_status_t spi_write_adv(uint8_t reg_addr, uint8_t data); | ||
93 | uint8_t spi_read_adv(uint8_t reg_addr); | ||
94 | bool pmw_spi_init(void); | ||
95 | void pmw_set_cpi(uint16_t cpi); | ||
96 | void pmw_upload_firmware(void); | ||
97 | bool pmw_check_signature(void); | ||
98 | report_pmw_t pmw_read_burst(void); | ||
99 | |||
100 | |||
101 | #define degToRad(angleInDegrees) ((angleInDegrees)*M_PI / 180.0) | ||
102 | #define radToDeg(angleInRadians) ((angleInRadians)*180.0 / M_PI) | ||
103 | #define constrain(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) | ||
diff --git a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360_firmware.h b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360_firmware.h deleted file mode 100644 index cca5a6a4d..000000000 --- a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360_firmware.h +++ /dev/null | |||
@@ -1,300 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | // clang-format off | ||
22 | // Firmware Blob foor PMW3360 | ||
23 | const uint16_t firmware_length = 4094; | ||
24 | // clang-format off | ||
25 | const uint8_t firmware_data[] PROGMEM = { // SROM 0x04 | ||
26 | 0x01, 0x04, 0x8e, 0x96, 0x6e, 0x77, 0x3e, 0xfe, 0x7e, 0x5f, 0x1d, 0xb8, 0xf2, 0x66, 0x4e, | ||
27 | 0xff, 0x5d, 0x19, 0xb0, 0xc2, 0x04, 0x69, 0x54, 0x2a, 0xd6, 0x2e, 0xbf, 0xdd, 0x19, 0xb0, | ||
28 | 0xc3, 0xe5, 0x29, 0xb1, 0xe0, 0x23, 0xa5, 0xa9, 0xb1, 0xc1, 0x00, 0x82, 0x67, 0x4c, 0x1a, | ||
29 | 0x97, 0x8d, 0x79, 0x51, 0x20, 0xc7, 0x06, 0x8e, 0x7c, 0x7c, 0x7a, 0x76, 0x4f, 0xfd, 0x59, | ||
30 | 0x30, 0xe2, 0x46, 0x0e, 0x9e, 0xbe, 0xdf, 0x1d, 0x99, 0x91, 0xa0, 0xa5, 0xa1, 0xa9, 0xd0, | ||
31 | 0x22, 0xc6, 0xef, 0x5c, 0x1b, 0x95, 0x89, 0x90, 0xa2, 0xa7, 0xcc, 0xfb, 0x55, 0x28, 0xb3, | ||
32 | 0xe4, 0x4a, 0xf7, 0x6c, 0x3b, 0xf4, 0x6a, 0x56, 0x2e, 0xde, 0x1f, 0x9d, 0xb8, 0xd3, 0x05, | ||
33 | 0x88, 0x92, 0xa6, 0xce, 0x1e, 0xbe, 0xdf, 0x1d, 0x99, 0xb0, 0xe2, 0x46, 0xef, 0x5c, 0x07, | ||
34 | 0x11, 0x5d, 0x98, 0x0b, 0x9d, 0x94, 0x97, 0xee, 0x4e, 0x45, 0x33, 0x6b, 0x44, 0xc7, 0x29, | ||
35 | 0x56, 0x27, 0x30, 0xc6, 0xa7, 0xd5, 0xf2, 0x56, 0xdf, 0xb4, 0x38, 0x62, 0xcb, 0xa0, 0xb6, | ||
36 | 0xe3, 0x0f, 0x84, 0x06, 0x24, 0x05, 0x65, 0x6f, 0x76, 0x89, 0xb5, 0x77, 0x41, 0x27, 0x82, | ||
37 | 0x66, 0x65, 0x82, 0xcc, 0xd5, 0xe6, 0x20, 0xd5, 0x27, 0x17, 0xc5, 0xf8, 0x03, 0x23, 0x7c, | ||
38 | 0x5f, 0x64, 0xa5, 0x1d, 0xc1, 0xd6, 0x36, 0xcb, 0x4c, 0xd4, 0xdb, 0x66, 0xd7, 0x8b, 0xb1, | ||
39 | 0x99, 0x7e, 0x6f, 0x4c, 0x36, 0x40, 0x06, 0xd6, 0xeb, 0xd7, 0xa2, 0xe4, 0xf4, 0x95, 0x51, | ||
40 | 0x5a, 0x54, 0x96, 0xd5, 0x53, 0x44, 0xd7, 0x8c, 0xe0, 0xb9, 0x40, 0x68, 0xd2, 0x18, 0xe9, | ||
41 | 0xdd, 0x9a, 0x23, 0x92, 0x48, 0xee, 0x7f, 0x43, 0xaf, 0xea, 0x77, 0x38, 0x84, 0x8c, 0x0a, | ||
42 | 0x72, 0xaf, 0x69, 0xf8, 0xdd, 0xf1, 0x24, 0x83, 0xa3, 0xf8, 0x4a, 0xbf, 0xf5, 0x94, 0x13, | ||
43 | 0xdb, 0xbb, 0xd8, 0xb4, 0xb3, 0xa0, 0xfb, 0x45, 0x50, 0x60, 0x30, 0x59, 0x12, 0x31, 0x71, | ||
44 | 0xa2, 0xd3, 0x13, 0xe7, 0xfa, 0xe7, 0xce, 0x0f, 0x63, 0x15, 0x0b, 0x6b, 0x94, 0xbb, 0x37, | ||
45 | 0x83, 0x26, 0x05, 0x9d, 0xfb, 0x46, 0x92, 0xfc, 0x0a, 0x15, 0xd1, 0x0d, 0x73, 0x92, 0xd6, | ||
46 | 0x8c, 0x1b, 0x8c, 0xb8, 0x55, 0x8a, 0xce, 0xbd, 0xfe, 0x8e, 0xfc, 0xed, 0x09, 0x12, 0x83, | ||
47 | 0x91, 0x82, 0x51, 0x31, 0x23, 0xfb, 0xb4, 0x0c, 0x76, 0xad, 0x7c, 0xd9, 0xb4, 0x4b, 0xb2, | ||
48 | 0x67, 0x14, 0x09, 0x9c, 0x7f, 0x0c, 0x18, 0xba, 0x3b, 0xd6, 0x8e, 0x14, 0x2a, 0xe4, 0x1b, | ||
49 | 0x52, 0x9f, 0x2b, 0x7d, 0xe1, 0xfb, 0x6a, 0x33, 0x02, 0xfa, 0xac, 0x5a, 0xf2, 0x3e, 0x88, | ||
50 | 0x7e, 0xae, 0xd1, 0xf3, 0x78, 0xe8, 0x05, 0xd1, 0xe3, 0xdc, 0x21, 0xf6, 0xe1, 0x9a, 0xbd, | ||
51 | 0x17, 0x0e, 0xd9, 0x46, 0x9b, 0x88, 0x03, 0xea, 0xf6, 0x66, 0xbe, 0x0e, 0x1b, 0x50, 0x49, | ||
52 | 0x96, 0x40, 0x97, 0xf1, 0xf1, 0xe4, 0x80, 0xa6, 0x6e, 0xe8, 0x77, 0x34, 0xbf, 0x29, 0x40, | ||
53 | 0x44, 0xc2, 0xff, 0x4e, 0x98, 0xd3, 0x9c, 0xa3, 0x32, 0x2b, 0x76, 0x51, 0x04, 0x09, 0xe7, | ||
54 | 0xa9, 0xd1, 0xa6, 0x32, 0xb1, 0x23, 0x53, 0xe2, 0x47, 0xab, 0xd6, 0xf5, 0x69, 0x5c, 0x3e, | ||
55 | 0x5f, 0xfa, 0xae, 0x45, 0x20, 0xe5, 0xd2, 0x44, 0xff, 0x39, 0x32, 0x6d, 0xfd, 0x27, 0x57, | ||
56 | 0x5c, 0xfd, 0xf0, 0xde, 0xc1, 0xb5, 0x99, 0xe5, 0xf5, 0x1c, 0x77, 0x01, 0x75, 0xc5, 0x6d, | ||
57 | 0x58, 0x92, 0xf2, 0xb2, 0x47, 0x00, 0x01, 0x26, 0x96, 0x7a, 0x30, 0xff, 0xb7, 0xf0, 0xef, | ||
58 | 0x77, 0xc1, 0x8a, 0x5d, 0xdc, 0xc0, 0xd1, 0x29, 0x30, 0x1e, 0x77, 0x38, 0x7a, 0x94, 0xf1, | ||
59 | 0xb8, 0x7a, 0x7e, 0xef, 0xa4, 0xd1, 0xac, 0x31, 0x4a, 0xf2, 0x5d, 0x64, 0x3d, 0xb2, 0xe2, | ||
60 | 0xf0, 0x08, 0x99, 0xfc, 0x70, 0xee, 0x24, 0xa7, 0x7e, 0xee, 0x1e, 0x20, 0x69, 0x7d, 0x44, | ||
61 | 0xbf, 0x87, 0x42, 0xdf, 0x88, 0x3b, 0x0c, 0xda, 0x42, 0xc9, 0x04, 0xf9, 0x45, 0x50, 0xfc, | ||
62 | 0x83, 0x8f, 0x11, 0x6a, 0x72, 0xbc, 0x99, 0x95, 0xf0, 0xac, 0x3d, 0xa7, 0x3b, 0xcd, 0x1c, | ||
63 | 0xe2, 0x88, 0x79, 0x37, 0x11, 0x5f, 0x39, 0x89, 0x95, 0x0a, 0x16, 0x84, 0x7a, 0xf6, 0x8a, | ||
64 | 0xa4, 0x28, 0xe4, 0xed, 0x83, 0x80, 0x3b, 0xb1, 0x23, 0xa5, 0x03, 0x10, 0xf4, 0x66, 0xea, | ||
65 | 0xbb, 0x0c, 0x0f, 0xc5, 0xec, 0x6c, 0x69, 0xc5, 0xd3, 0x24, 0xab, 0xd4, 0x2a, 0xb7, 0x99, | ||
66 | 0x88, 0x76, 0x08, 0xa0, 0xa8, 0x95, 0x7c, 0xd8, 0x38, 0x6d, 0xcd, 0x59, 0x02, 0x51, 0x4b, | ||
67 | 0xf1, 0xb5, 0x2b, 0x50, 0xe3, 0xb6, 0xbd, 0xd0, 0x72, 0xcf, 0x9e, 0xfd, 0x6e, 0xbb, 0x44, | ||
68 | 0xc8, 0x24, 0x8a, 0x77, 0x18, 0x8a, 0x13, 0x06, 0xef, 0x97, 0x7d, 0xfa, 0x81, 0xf0, 0x31, | ||
69 | 0xe6, 0xfa, 0x77, 0xed, 0x31, 0x06, 0x31, 0x5b, 0x54, 0x8a, 0x9f, 0x30, 0x68, 0xdb, 0xe2, | ||
70 | 0x40, 0xf8, 0x4e, 0x73, 0xfa, 0xab, 0x74, 0x8b, 0x10, 0x58, 0x13, 0xdc, 0xd2, 0xe6, 0x78, | ||
71 | 0xd1, 0x32, 0x2e, 0x8a, 0x9f, 0x2c, 0x58, 0x06, 0x48, 0x27, 0xc5, 0xa9, 0x5e, 0x81, 0x47, | ||
72 | 0x89, 0x46, 0x21, 0x91, 0x03, 0x70, 0xa4, 0x3e, 0x88, 0x9c, 0xda, 0x33, 0x0a, 0xce, 0xbc, | ||
73 | 0x8b, 0x8e, 0xcf, 0x9f, 0xd3, 0x71, 0x80, 0x43, 0xcf, 0x6b, 0xa9, 0x51, 0x83, 0x76, 0x30, | ||
74 | 0x82, 0xc5, 0x6a, 0x85, 0x39, 0x11, 0x50, 0x1a, 0x82, 0xdc, 0x1e, 0x1c, 0xd5, 0x7d, 0xa9, | ||
75 | 0x71, 0x99, 0x33, 0x47, 0x19, 0x97, 0xb3, 0x5a, 0xb1, 0xdf, 0xed, 0xa4, 0xf2, 0xe6, 0x26, | ||
76 | 0x84, 0xa2, 0x28, 0x9a, 0x9e, 0xdf, 0xa6, 0x6a, 0xf4, 0xd6, 0xfc, 0x2e, 0x5b, 0x9d, 0x1a, | ||
77 | 0x2a, 0x27, 0x68, 0xfb, 0xc1, 0x83, 0x21, 0x4b, 0x90, 0xe0, 0x36, 0xdd, 0x5b, 0x31, 0x42, | ||
78 | 0x55, 0xa0, 0x13, 0xf7, 0xd0, 0x89, 0x53, 0x71, 0x99, 0x57, 0x09, 0x29, 0xc5, 0xf3, 0x21, | ||
79 | 0xf8, 0x37, 0x2f, 0x40, 0xf3, 0xd4, 0xaf, 0x16, 0x08, 0x36, 0x02, 0xfc, 0x77, 0xc5, 0x8b, | ||
80 | 0x04, 0x90, 0x56, 0xb9, 0xc9, 0x67, 0x9a, 0x99, 0xe8, 0x00, 0xd3, 0x86, 0xff, 0x97, 0x2d, | ||
81 | 0x08, 0xe9, 0xb7, 0xb3, 0x91, 0xbc, 0xdf, 0x45, 0xc6, 0xed, 0x0f, 0x8c, 0x4c, 0x1e, 0xe6, | ||
82 | 0x5b, 0x6e, 0x38, 0x30, 0xe4, 0xaa, 0xe3, 0x95, 0xde, 0xb9, 0xe4, 0x9a, 0xf5, 0xb2, 0x55, | ||
83 | 0x9a, 0x87, 0x9b, 0xf6, 0x6a, 0xb2, 0xf2, 0x77, 0x9a, 0x31, 0xf4, 0x7a, 0x31, 0xd1, 0x1d, | ||
84 | 0x04, 0xc0, 0x7c, 0x32, 0xa2, 0x9e, 0x9a, 0xf5, 0x62, 0xf8, 0x27, 0x8d, 0xbf, 0x51, 0xff, | ||
85 | 0xd3, 0xdf, 0x64, 0x37, 0x3f, 0x2a, 0x6f, 0x76, 0x3a, 0x7d, 0x77, 0x06, 0x9e, 0x77, 0x7f, | ||
86 | 0x5e, 0xeb, 0x32, 0x51, 0xf9, 0x16, 0x66, 0x9a, 0x09, 0xf3, 0xb0, 0x08, 0xa4, 0x70, 0x96, | ||
87 | 0x46, 0x30, 0xff, 0xda, 0x4f, 0xe9, 0x1b, 0xed, 0x8d, 0xf8, 0x74, 0x1f, 0x31, 0x92, 0xb3, | ||
88 | 0x73, 0x17, 0x36, 0xdb, 0x91, 0x30, 0xd6, 0x88, 0x55, 0x6b, 0x34, 0x77, 0x87, 0x7a, 0xe7, | ||
89 | 0xee, 0x06, 0xc6, 0x1c, 0x8c, 0x19, 0x0c, 0x48, 0x46, 0x23, 0x5e, 0x9c, 0x07, 0x5c, 0xbf, | ||
90 | 0xb4, 0x7e, 0xd6, 0x4f, 0x74, 0x9c, 0xe2, 0xc5, 0x50, 0x8b, 0xc5, 0x8b, 0x15, 0x90, 0x60, | ||
91 | 0x62, 0x57, 0x29, 0xd0, 0x13, 0x43, 0xa1, 0x80, 0x88, 0x91, 0x00, 0x44, 0xc7, 0x4d, 0x19, | ||
92 | 0x86, 0xcc, 0x2f, 0x2a, 0x75, 0x5a, 0xfc, 0xeb, 0x97, 0x2a, 0x70, 0xe3, 0x78, 0xd8, 0x91, | ||
93 | 0xb0, 0x4f, 0x99, 0x07, 0xa3, 0x95, 0xea, 0x24, 0x21, 0xd5, 0xde, 0x51, 0x20, 0x93, 0x27, | ||
94 | 0x0a, 0x30, 0x73, 0xa8, 0xff, 0x8a, 0x97, 0xe9, 0xa7, 0x6a, 0x8e, 0x0d, 0xe8, 0xf0, 0xdf, | ||
95 | 0xec, 0xea, 0xb4, 0x6c, 0x1d, 0x39, 0x2a, 0x62, 0x2d, 0x3d, 0x5a, 0x8b, 0x65, 0xf8, 0x90, | ||
96 | 0x05, 0x2e, 0x7e, 0x91, 0x2c, 0x78, 0xef, 0x8e, 0x7a, 0xc1, 0x2f, 0xac, 0x78, 0xee, 0xaf, | ||
97 | 0x28, 0x45, 0x06, 0x4c, 0x26, 0xaf, 0x3b, 0xa2, 0xdb, 0xa3, 0x93, 0x06, 0xb5, 0x3c, 0xa5, | ||
98 | 0xd8, 0xee, 0x8f, 0xaf, 0x25, 0xcc, 0x3f, 0x85, 0x68, 0x48, 0xa9, 0x62, 0xcc, 0x97, 0x8f, | ||
99 | 0x7f, 0x2a, 0xea, 0xe0, 0x15, 0x0a, 0xad, 0x62, 0x07, 0xbd, 0x45, 0xf8, 0x41, 0xd8, 0x36, | ||
100 | 0xcb, 0x4c, 0xdb, 0x6e, 0xe6, 0x3a, 0xe7, 0xda, 0x15, 0xe9, 0x29, 0x1e, 0x12, 0x10, 0xa0, | ||
101 | 0x14, 0x2c, 0x0e, 0x3d, 0xf4, 0xbf, 0x39, 0x41, 0x92, 0x75, 0x0b, 0x25, 0x7b, 0xa3, 0xce, | ||
102 | 0x39, 0x9c, 0x15, 0x64, 0xc8, 0xfa, 0x3d, 0xef, 0x73, 0x27, 0xfe, 0x26, 0x2e, 0xce, 0xda, | ||
103 | 0x6e, 0xfd, 0x71, 0x8e, 0xdd, 0xfe, 0x76, 0xee, 0xdc, 0x12, 0x5c, 0x02, 0xc5, 0x3a, 0x4e, | ||
104 | 0x4e, 0x4f, 0xbf, 0xca, 0x40, 0x15, 0xc7, 0x6e, 0x8d, 0x41, 0xf1, 0x10, 0xe0, 0x4f, 0x7e, | ||
105 | 0x97, 0x7f, 0x1c, 0xae, 0x47, 0x8e, 0x6b, 0xb1, 0x25, 0x31, 0xb0, 0x73, 0xc7, 0x1b, 0x97, | ||
106 | 0x79, 0xf9, 0x80, 0xd3, 0x66, 0x22, 0x30, 0x07, 0x74, 0x1e, 0xe4, 0xd0, 0x80, 0x21, 0xd6, | ||
107 | 0xee, 0x6b, 0x6c, 0x4f, 0xbf, 0xf5, 0xb7, 0xd9, 0x09, 0x87, 0x2f, 0xa9, 0x14, 0xbe, 0x27, | ||
108 | 0xd9, 0x72, 0x50, 0x01, 0xd4, 0x13, 0x73, 0xa6, 0xa7, 0x51, 0x02, 0x75, 0x25, 0xe1, 0xb3, | ||
109 | 0x45, 0x34, 0x7d, 0xa8, 0x8e, 0xeb, 0xf3, 0x16, 0x49, 0xcb, 0x4f, 0x8c, 0xa1, 0xb9, 0x36, | ||
110 | 0x85, 0x39, 0x75, 0x5d, 0x08, 0x00, 0xae, 0xeb, 0xf6, 0xea, 0xd7, 0x13, 0x3a, 0x21, 0x5a, | ||
111 | 0x5f, 0x30, 0x84, 0x52, 0x26, 0x95, 0xc9, 0x14, 0xf2, 0x57, 0x55, 0x6b, 0xb1, 0x10, 0xc2, | ||
112 | 0xe1, 0xbd, 0x3b, 0x51, 0xc0, 0xb7, 0x55, 0x4c, 0x71, 0x12, 0x26, 0xc7, 0x0d, 0xf9, 0x51, | ||
113 | 0xa4, 0x38, 0x02, 0x05, 0x7f, 0xb8, 0xf1, 0x72, 0x4b, 0xbf, 0x71, 0x89, 0x14, 0xf3, 0x77, | ||
114 | 0x38, 0xd9, 0x71, 0x24, 0xf3, 0x00, 0x11, 0xa1, 0xd8, 0xd4, 0x69, 0x27, 0x08, 0x37, 0x35, | ||
115 | 0xc9, 0x11, 0x9d, 0x90, 0x1c, 0x0e, 0xe7, 0x1c, 0xff, 0x2d, 0x1e, 0xe8, 0x92, 0xe1, 0x18, | ||
116 | 0x10, 0x95, 0x7c, 0xe0, 0x80, 0xf4, 0x96, 0x43, 0x21, 0xf9, 0x75, 0x21, 0x64, 0x38, 0xdd, | ||
117 | 0x9f, 0x1e, 0x95, 0x16, 0xda, 0x56, 0x1d, 0x4f, 0x9a, 0x53, 0xb2, 0xe2, 0xe4, 0x18, 0xcb, | ||
118 | 0x6b, 0x1a, 0x65, 0xeb, 0x56, 0xc6, 0x3b, 0xe5, 0xfe, 0xd8, 0x26, 0x3f, 0x3a, 0x84, 0x59, | ||
119 | 0x72, 0x66, 0xa2, 0xf3, 0x75, 0xff, 0xfb, 0x60, 0xb3, 0x22, 0xad, 0x3f, 0x2d, 0x6b, 0xf9, | ||
120 | 0xeb, 0xea, 0x05, 0x7c, 0xd8, 0x8f, 0x6d, 0x2c, 0x98, 0x9e, 0x2b, 0x93, 0xf1, 0x5e, 0x46, | ||
121 | 0xf0, 0x87, 0x49, 0x29, 0x73, 0x68, 0xd7, 0x7f, 0xf9, 0xf0, 0xe5, 0x7d, 0xdb, 0x1d, 0x75, | ||
122 | 0x19, 0xf3, 0xc4, 0x58, 0x9b, 0x17, 0x88, 0xa8, 0x92, 0xe0, 0xbe, 0xbd, 0x8b, 0x1d, 0x8d, | ||
123 | 0x9f, 0x56, 0x76, 0xad, 0xaf, 0x29, 0xe2, 0xd9, 0xd5, 0x52, 0xf6, 0xb5, 0x56, 0x35, 0x57, | ||
124 | 0x3a, 0xc8, 0xe1, 0x56, 0x43, 0x19, 0x94, 0xd3, 0x04, 0x9b, 0x6d, 0x35, 0xd8, 0x0b, 0x5f, | ||
125 | 0x4d, 0x19, 0x8e, 0xec, 0xfa, 0x64, 0x91, 0x0a, 0x72, 0x20, 0x2b, 0xbc, 0x1a, 0x4a, 0xfe, | ||
126 | 0x8b, 0xfd, 0xbb, 0xed, 0x1b, 0x23, 0xea, 0xad, 0x72, 0x82, 0xa1, 0x29, 0x99, 0x71, 0xbd, | ||
127 | 0xf0, 0x95, 0xc1, 0x03, 0xdd, 0x7b, 0xc2, 0xb2, 0x3c, 0x28, 0x54, 0xd3, 0x68, 0xa4, 0x72, | ||
128 | 0xc8, 0x66, 0x96, 0xe0, 0xd1, 0xd8, 0x7f, 0xf8, 0xd1, 0x26, 0x2b, 0xf7, 0xad, 0xba, 0x55, | ||
129 | 0xca, 0x15, 0xb9, 0x32, 0xc3, 0xe5, 0x88, 0x97, 0x8e, 0x5c, 0xfb, 0x92, 0x25, 0x8b, 0xbf, | ||
130 | 0xa2, 0x45, 0x55, 0x7a, 0xa7, 0x6f, 0x8b, 0x57, 0x5b, 0xcf, 0x0e, 0xcb, 0x1d, 0xfb, 0x20, | ||
131 | 0x82, 0x77, 0xa8, 0x8c, 0xcc, 0x16, 0xce, 0x1d, 0xfa, 0xde, 0xcc, 0x0b, 0x62, 0xfe, 0xcc, | ||
132 | 0xe1, 0xb7, 0xf0, 0xc3, 0x81, 0x64, 0x73, 0x40, 0xa0, 0xc2, 0x4d, 0x89, 0x11, 0x75, 0x33, | ||
133 | 0x55, 0x33, 0x8d, 0xe8, 0x4a, 0xfd, 0xea, 0x6e, 0x30, 0x0b, 0xd7, 0x31, 0x2c, 0xde, 0x47, | ||
134 | 0xe3, 0xbf, 0xf8, 0x55, 0x42, 0xe2, 0x7f, 0x59, 0xe5, 0x17, 0xef, 0x99, 0x34, 0x69, 0x91, | ||
135 | 0xb1, 0x23, 0x8e, 0x20, 0x87, 0x2d, 0xa8, 0xfe, 0xd5, 0x8a, 0xf3, 0x84, 0x3a, 0xf0, 0x37, | ||
136 | 0xe4, 0x09, 0x00, 0x54, 0xee, 0x67, 0x49, 0x93, 0xe4, 0x81, 0x70, 0xe3, 0x90, 0x4d, 0xef, | ||
137 | 0xfe, 0x41, 0xb7, 0x99, 0x7b, 0xc1, 0x83, 0xba, 0x62, 0x12, 0x6f, 0x7d, 0xde, 0x6b, 0xaf, | ||
138 | 0xda, 0x16, 0xf9, 0x55, 0x51, 0xee, 0xa6, 0x0c, 0x2b, 0x02, 0xa3, 0xfd, 0x8d, 0xfb, 0x30, | ||
139 | 0x17, 0xe4, 0x6f, 0xdf, 0x36, 0x71, 0xc4, 0xca, 0x87, 0x25, 0x48, 0xb0, 0x47, 0xec, 0xea, | ||
140 | 0xb4, 0xbf, 0xa5, 0x4d, 0x9b, 0x9f, 0x02, 0x93, 0xc4, 0xe3, 0xe4, 0xe8, 0x42, 0x2d, 0x68, | ||
141 | 0x81, 0x15, 0x0a, 0xeb, 0x84, 0x5b, 0xd6, 0xa8, 0x74, 0xfb, 0x7d, 0x1d, 0xcb, 0x2c, 0xda, | ||
142 | 0x46, 0x2a, 0x76, 0x62, 0xce, 0xbc, 0x5c, 0x9e, 0x8b, 0xe7, 0xcf, 0xbe, 0x78, 0xf5, 0x7c, | ||
143 | 0xeb, 0xb3, 0x3a, 0x9c, 0xaa, 0x6f, 0xcc, 0x72, 0xd1, 0x59, 0xf2, 0x11, 0x23, 0xd6, 0x3f, | ||
144 | 0x48, 0xd1, 0xb7, 0xce, 0xb0, 0xbf, 0xcb, 0xea, 0x80, 0xde, 0x57, 0xd4, 0x5e, 0x97, 0x2f, | ||
145 | 0x75, 0xd1, 0x50, 0x8e, 0x80, 0x2c, 0x66, 0x79, 0xbf, 0x72, 0x4b, 0xbd, 0x8a, 0x81, 0x6c, | ||
146 | 0xd3, 0xe1, 0x01, 0xdc, 0xd2, 0x15, 0x26, 0xc5, 0x36, 0xda, 0x2c, 0x1a, 0xc0, 0x27, 0x94, | ||
147 | 0xed, 0xb7, 0x9b, 0x85, 0x0b, 0x5e, 0x80, 0x97, 0xc5, 0xec, 0x4f, 0xec, 0x88, 0x5d, 0x50, | ||
148 | 0x07, 0x35, 0x47, 0xdc, 0x0b, 0x3b, 0x3d, 0xdd, 0x60, 0xaf, 0xa8, 0x5d, 0x81, 0x38, 0x24, | ||
149 | 0x25, 0x5d, 0x5c, 0x15, 0xd1, 0xde, 0xb3, 0xab, 0xec, 0x05, 0x69, 0xef, 0x83, 0xed, 0x57, | ||
150 | 0x54, 0xb8, 0x64, 0x64, 0x11, 0x16, 0x32, 0x69, 0xda, 0x9f, 0x2d, 0x7f, 0x36, 0xbb, 0x44, | ||
151 | 0x5a, 0x34, 0xe8, 0x7f, 0xbf, 0x03, 0xeb, 0x00, 0x7f, 0x59, 0x68, 0x22, 0x79, 0xcf, 0x73, | ||
152 | 0x6c, 0x2c, 0x29, 0xa7, 0xa1, 0x5f, 0x38, 0xa1, 0x1d, 0xf0, 0x20, 0x53, 0xe0, 0x1a, 0x63, | ||
153 | 0x14, 0x58, 0x71, 0x10, 0xaa, 0x08, 0x0c, 0x3e, 0x16, 0x1a, 0x60, 0x22, 0x82, 0x7f, 0xba, | ||
154 | 0xa4, 0x43, 0xa0, 0xd0, 0xac, 0x1b, 0xd5, 0x6b, 0x64, 0xb5, 0x14, 0x93, 0x31, 0x9e, 0x53, | ||
155 | 0x50, 0xd0, 0x57, 0x66, 0xee, 0x5a, 0x4f, 0xfb, 0x03, 0x2a, 0x69, 0x58, 0x76, 0xf1, 0x83, | ||
156 | 0xf7, 0x4e, 0xba, 0x8c, 0x42, 0x06, 0x60, 0x5d, 0x6d, 0xce, 0x60, 0x88, 0xae, 0xa4, 0xc3, | ||
157 | 0xf1, 0x03, 0xa5, 0x4b, 0x98, 0xa1, 0xff, 0x67, 0xe1, 0xac, 0xa2, 0xb8, 0x62, 0xd7, 0x6f, | ||
158 | 0xa0, 0x31, 0xb4, 0xd2, 0x77, 0xaf, 0x21, 0x10, 0x06, 0xc6, 0x9a, 0xff, 0x1d, 0x09, 0x17, | ||
159 | 0x0e, 0x5f, 0xf1, 0xaa, 0x54, 0x34, 0x4b, 0x45, 0x8a, 0x87, 0x63, 0xa6, 0xdc, 0xf9, 0x24, | ||
160 | 0x30, 0x67, 0xc6, 0xb2, 0xd6, 0x61, 0x33, 0x69, 0xee, 0x50, 0x61, 0x57, 0x28, 0xe7, 0x7e, | ||
161 | 0xee, 0xec, 0x3a, 0x5a, 0x73, 0x4e, 0xa8, 0x8d, 0xe4, 0x18, 0xea, 0xec, 0x41, 0x64, 0xc8, | ||
162 | 0xe2, 0xe8, 0x66, 0xb6, 0x2d, 0xb6, 0xfb, 0x6a, 0x6c, 0x16, 0xb3, 0xdd, 0x46, 0x43, 0xb9, | ||
163 | 0x73, 0x00, 0x6a, 0x71, 0xed, 0x4e, 0x9d, 0x25, 0x1a, 0xc3, 0x3c, 0x4a, 0x95, 0x15, 0x99, | ||
164 | 0x35, 0x81, 0x14, 0x02, 0xd6, 0x98, 0x9b, 0xec, 0xd8, 0x23, 0x3b, 0x84, 0x29, 0xaf, 0x0c, | ||
165 | 0x99, 0x83, 0xa6, 0x9a, 0x34, 0x4f, 0xfa, 0xe8, 0xd0, 0x3c, 0x4b, 0xd0, 0xfb, 0xb6, 0x68, | ||
166 | 0xb8, 0x9e, 0x8f, 0xcd, 0xf7, 0x60, 0x2d, 0x7a, 0x22, 0xe5, 0x7d, 0xab, 0x65, 0x1b, 0x95, | ||
167 | 0xa7, 0xa8, 0x7f, 0xb6, 0x77, 0x47, 0x7b, 0x5f, 0x8b, 0x12, 0x72, 0xd0, 0xd4, 0x91, 0xef, | ||
168 | 0xde, 0x19, 0x50, 0x3c, 0xa7, 0x8b, 0xc4, 0xa9, 0xb3, 0x23, 0xcb, 0x76, 0xe6, 0x81, 0xf0, | ||
169 | 0xc1, 0x04, 0x8f, 0xa3, 0xb8, 0x54, 0x5b, 0x97, 0xac, 0x19, 0xff, 0x3f, 0x55, 0x27, 0x2f, | ||
170 | 0xe0, 0x1d, 0x42, 0x9b, 0x57, 0xfc, 0x4b, 0x4e, 0x0f, 0xce, 0x98, 0xa9, 0x43, 0x57, 0x03, | ||
171 | 0xbd, 0xe7, 0xc8, 0x94, 0xdf, 0x6e, 0x36, 0x73, 0x32, 0xb4, 0xef, 0x2e, 0x85, 0x7a, 0x6e, | ||
172 | 0xfc, 0x6c, 0x18, 0x82, 0x75, 0x35, 0x90, 0x07, 0xf3, 0xe4, 0x9f, 0x3e, 0xdc, 0x68, 0xf3, | ||
173 | 0xb5, 0xf3, 0x19, 0x80, 0x92, 0x06, 0x99, 0xa2, 0xe8, 0x6f, 0xff, 0x2e, 0x7f, 0xae, 0x42, | ||
174 | 0xa4, 0x5f, 0xfb, 0xd4, 0x0e, 0x81, 0x2b, 0xc3, 0x04, 0xff, 0x2b, 0xb3, 0x74, 0x4e, 0x36, | ||
175 | 0x5b, 0x9c, 0x15, 0x00, 0xc6, 0x47, 0x2b, 0xe8, 0x8b, 0x3d, 0xf1, 0x9c, 0x03, 0x9a, 0x58, | ||
176 | 0x7f, 0x9b, 0x9c, 0xbf, 0x85, 0x49, 0x79, 0x35, 0x2e, 0x56, 0x7b, 0x41, 0x14, 0x39, 0x47, | ||
177 | 0x83, 0x26, 0xaa, 0x07, 0x89, 0x98, 0x11, 0x1b, 0x86, 0xe7, 0x73, 0x7a, 0xd8, 0x7d, 0x78, | ||
178 | 0x61, 0x53, 0xe9, 0x79, 0xf5, 0x36, 0x8d, 0x44, 0x92, 0x84, 0xf9, 0x13, 0x50, 0x58, 0x3b, | ||
179 | 0xa4, 0x6a, 0x36, 0x65, 0x49, 0x8e, 0x3c, 0x0e, 0xf1, 0x6f, 0xd2, 0x84, 0xc4, 0x7e, 0x8e, | ||
180 | 0x3f, 0x39, 0xae, 0x7c, 0x84, 0xf1, 0x63, 0x37, 0x8e, 0x3c, 0xcc, 0x3e, 0x44, 0x81, 0x45, | ||
181 | 0xf1, 0x4b, 0xb9, 0xed, 0x6b, 0x36, 0x5d, 0xbb, 0x20, 0x60, 0x1a, 0x0f, 0xa3, 0xaa, 0x55, | ||
182 | 0x77, 0x3a, 0xa9, 0xae, 0x37, 0x4d, 0xba, 0xb8, 0x86, 0x6b, 0xbc, 0x08, 0x50, 0xf6, 0xcc, | ||
183 | 0xa4, 0xbd, 0x1d, 0x40, 0x72, 0xa5, 0x86, 0xfa, 0xe2, 0x10, 0xae, 0x3d, 0x58, 0x4b, 0x97, | ||
184 | 0xf3, 0x43, 0x74, 0xa9, 0x9e, 0xeb, 0x21, 0xb7, 0x01, 0xa4, 0x86, 0x93, 0x97, 0xee, 0x2f, | ||
185 | 0x4f, 0x3b, 0x86, 0xa1, 0x41, 0x6f, 0x41, 0x26, 0x90, 0x78, 0x5c, 0x7f, 0x30, 0x38, 0x4b, | ||
186 | 0x3f, 0xaa, 0xec, 0xed, 0x5c, 0x6f, 0x0e, 0xad, 0x43, 0x87, 0xfd, 0x93, 0x35, 0xe6, 0x01, | ||
187 | 0xef, 0x41, 0x26, 0x90, 0x99, 0x9e, 0xfb, 0x19, 0x5b, 0xad, 0xd2, 0x91, 0x8a, 0xe0, 0x46, | ||
188 | 0xaf, 0x65, 0xfa, 0x4f, 0x84, 0xc1, 0xa1, 0x2d, 0xcf, 0x45, 0x8b, 0xd3, 0x85, 0x50, 0x55, | ||
189 | 0x7c, 0xf9, 0x67, 0x88, 0xd4, 0x4e, 0xe9, 0xd7, 0x6b, 0x61, 0x54, 0xa1, 0xa4, 0xa6, 0xa2, | ||
190 | 0xc2, 0xbf, 0x30, 0x9c, 0x40, 0x9f, 0x5f, 0xd7, 0x69, 0x2b, 0x24, 0x82, 0x5e, 0xd9, 0xd6, | ||
191 | 0xa7, 0x12, 0x54, 0x1a, 0xf7, 0x55, 0x9f, 0x76, 0x50, 0xa9, 0x95, 0x84, 0xe6, 0x6b, 0x6d, | ||
192 | 0xb5, 0x96, 0x54, 0xd6, 0xcd, 0xb3, 0xa1, 0x9b, 0x46, 0xa7, 0x94, 0x4d, 0xc4, 0x94, 0xb4, | ||
193 | 0x98, 0xe3, 0xe1, 0xe2, 0x34, 0xd5, 0x33, 0x16, 0x07, 0x54, 0xcd, 0xb7, 0x77, 0x53, 0xdb, | ||
194 | 0x4f, 0x4d, 0x46, 0x9d, 0xe9, 0xd4, 0x9c, 0x8a, 0x36, 0xb6, 0xb8, 0x38, 0x26, 0x6c, 0x0e, | ||
195 | 0xff, 0x9c, 0x1b, 0x43, 0x8b, 0x80, 0xcc, 0xb9, 0x3d, 0xda, 0xc7, 0xf1, 0x8a, 0xf2, 0x6d, | ||
196 | 0xb8, 0xd7, 0x74, 0x2f, 0x7e, 0x1e, 0xb7, 0xd3, 0x4a, 0xb4, 0xac, 0xfc, 0x79, 0x48, 0x6c, | ||
197 | 0xbc, 0x96, 0xb6, 0x94, 0x46, 0x57, 0x2d, 0xb0, 0xa3, 0xfc, 0x1e, 0xb9, 0x52, 0x60, 0x85, | ||
198 | 0x2d, 0x41, 0xd0, 0x43, 0x01, 0x1e, 0x1c, 0xd5, 0x7d, 0xfc, 0xf3, 0x96, 0x0d, 0xc7, 0xcb, | ||
199 | 0x2a, 0x29, 0x9a, 0x93, 0xdd, 0x88, 0x2d, 0x37, 0x5d, 0xaa, 0xfb, 0x49, 0x68, 0xa0, 0x9c, | ||
200 | 0x50, 0x86, 0x7f, 0x68, 0x56, 0x57, 0xf9, 0x79, 0x18, 0x39, 0xd4, 0xe0, 0x01, 0x84, 0x33, | ||
201 | 0x61, 0xca, 0xa5, 0xd2, 0xd6, 0xe4, 0xc9, 0x8a, 0x4a, 0x23, 0x44, 0x4e, 0xbc, 0xf0, 0xdc, | ||
202 | 0x24, 0xa1, 0xa0, 0xc4, 0xe2, 0x07, 0x3c, 0x10, 0xc4, 0xb5, 0x25, 0x4b, 0x65, 0x63, 0xf4, | ||
203 | 0x80, 0xe7, 0xcf, 0x61, 0xb1, 0x71, 0x82, 0x21, 0x87, 0x2c, 0xf5, 0x91, 0x00, 0x32, 0x0c, | ||
204 | 0xec, 0xa9, 0xb5, 0x9a, 0x74, 0x85, 0xe3, 0x36, 0x8f, 0x76, 0x4f, 0x9c, 0x6d, 0xce, 0xbc, | ||
205 | 0xad, 0x0a, 0x4b, 0xed, 0x76, 0x04, 0xcb, 0xc3, 0xb9, 0x33, 0x9e, 0x01, 0x93, 0x96, 0x69, | ||
206 | 0x7d, 0xc5, 0xa2, 0x45, 0x79, 0x9b, 0x04, 0x5c, 0x84, 0x09, 0xed, 0x88, 0x43, 0xc7, 0xab, | ||
207 | 0x93, 0x14, 0x26, 0xa1, 0x40, 0xb5, 0xce, 0x4e, 0xbf, 0x2a, 0x42, 0x85, 0x3e, 0x2c, 0x3b, | ||
208 | 0x54, 0xe8, 0x12, 0x1f, 0x0e, 0x97, 0x59, 0xb2, 0x27, 0x89, 0xfa, 0xf2, 0xdf, 0x8e, 0x68, | ||
209 | 0x59, 0xdc, 0x06, 0xbc, 0xb6, 0x85, 0x0d, 0x06, 0x22, 0xec, 0xb1, 0xcb, 0xe5, 0x04, 0xe6, | ||
210 | 0x3d, 0xb3, 0xb0, 0x41, 0x73, 0x08, 0x3f, 0x3c, 0x58, 0x86, 0x63, 0xeb, 0x50, 0xee, 0x1d, | ||
211 | 0x2c, 0x37, 0x74, 0xa9, 0xd3, 0x18, 0xa3, 0x47, 0x6e, 0x93, 0x54, 0xad, 0x0a, 0x5d, 0xb8, | ||
212 | 0x2a, 0x55, 0x5d, 0x78, 0xf6, 0xee, 0xbe, 0x8e, 0x3c, 0x76, 0x69, 0xb9, 0x40, 0xc2, 0x34, | ||
213 | 0xec, 0x2a, 0xb9, 0xed, 0x7e, 0x20, 0xe4, 0x8d, 0x00, 0x38, 0xc7, 0xe6, 0x8f, 0x44, 0xa8, | ||
214 | 0x86, 0xce, 0xeb, 0x2a, 0xe9, 0x90, 0xf1, 0x4c, 0xdf, 0x32, 0xfb, 0x73, 0x1b, 0x6d, 0x92, | ||
215 | 0x1e, 0x95, 0xfe, 0xb4, 0xdb, 0x65, 0xdf, 0x4d, 0x23, 0x54, 0x89, 0x48, 0xbf, 0x4a, 0x2e, | ||
216 | 0x70, 0xd6, 0xd7, 0x62, 0xb4, 0x33, 0x29, 0xb1, 0x3a, 0x33, 0x4c, 0x23, 0x6d, 0xa6, 0x76, | ||
217 | 0xa5, 0x21, 0x63, 0x48, 0xe6, 0x90, 0x5d, 0xed, 0x90, 0x95, 0x0b, 0x7a, 0x84, 0xbe, 0xb8, | ||
218 | 0x0d, 0x5e, 0x63, 0x0c, 0x62, 0x26, 0x4c, 0x14, 0x5a, 0xb3, 0xac, 0x23, 0xa4, 0x74, 0xa7, | ||
219 | 0x6f, 0x33, 0x30, 0x05, 0x60, 0x01, 0x42, 0xa0, 0x28, 0xb7, 0xee, 0x19, 0x38, 0xf1, 0x64, | ||
220 | 0x80, 0x82, 0x43, 0xe1, 0x41, 0x27, 0x1f, 0x1f, 0x90, 0x54, 0x7a, 0xd5, 0x23, 0x2e, 0xd1, | ||
221 | 0x3d, 0xcb, 0x28, 0xba, 0x58, 0x7f, 0xdc, 0x7c, 0x91, 0x24, 0xe9, 0x28, 0x51, 0x83, 0x6e, | ||
222 | 0xc5, 0x56, 0x21, 0x42, 0xed, 0xa0, 0x56, 0x22, 0xa1, 0x40, 0x80, 0x6b, 0xa8, 0xf7, 0x94, | ||
223 | 0xca, 0x13, 0x6b, 0x0c, 0x39, 0xd9, 0xfd, 0xe9, 0xf3, 0x6f, 0xa6, 0x9e, 0xfc, 0x70, 0x8a, | ||
224 | 0xb3, 0xbc, 0x59, 0x3c, 0x1e, 0x1d, 0x6c, 0xf9, 0x7c, 0xaf, 0xf9, 0x88, 0x71, 0x95, 0xeb, | ||
225 | 0x57, 0x00, 0xbd, 0x9f, 0x8c, 0x4f, 0xe1, 0x24, 0x83, 0xc5, 0x22, 0xea, 0xfd, 0xd3, 0x0c, | ||
226 | 0xe2, 0x17, 0x18, 0x7c, 0x6a, 0x4c, 0xde, 0x77, 0xb4, 0x53, 0x9b, 0x4c, 0x81, 0xcd, 0x23, | ||
227 | 0x60, 0xaa, 0x0e, 0x25, 0x73, 0x9c, 0x02, 0x79, 0x32, 0x30, 0xdf, 0x74, 0xdf, 0x75, 0x19, | ||
228 | 0xf4, 0xa5, 0x14, 0x5c, 0xf7, 0x7a, 0xa8, 0xa5, 0x91, 0x84, 0x7c, 0x60, 0x03, 0x06, 0x3b, | ||
229 | 0xcd, 0x50, 0xb6, 0x27, 0x9c, 0xfe, 0xb1, 0xdd, 0xcc, 0xd3, 0xb0, 0x59, 0x24, 0xb2, 0xca, | ||
230 | 0xe2, 0x1c, 0x81, 0x22, 0x9d, 0x07, 0x8f, 0x8e, 0xb9, 0xbe, 0x4e, 0xfa, 0xfc, 0x39, 0x65, | ||
231 | 0xba, 0xbf, 0x9d, 0x12, 0x37, 0x5e, 0x97, 0x7e, 0xf3, 0x89, 0xf5, 0x5d, 0xf5, 0xe3, 0x09, | ||
232 | 0x8c, 0x62, 0xb5, 0x20, 0x9d, 0x0c, 0x53, 0x8a, 0x68, 0x1b, 0xd2, 0x8f, 0x75, 0x17, 0x5d, | ||
233 | 0xd4, 0xe5, 0xda, 0x75, 0x62, 0x19, 0x14, 0x6a, 0x26, 0x2d, 0xeb, 0xf8, 0xaf, 0x37, 0xf0, | ||
234 | 0x6c, 0xa4, 0x55, 0xb1, 0xbc, 0xe2, 0x33, 0xc0, 0x9a, 0xca, 0xb0, 0x11, 0x49, 0x4f, 0x68, | ||
235 | 0x9b, 0x3b, 0x6b, 0x3c, 0xcc, 0x13, 0xf6, 0xc7, 0x85, 0x61, 0x68, 0x42, 0xae, 0xbb, 0xdd, | ||
236 | 0xcd, 0x45, 0x16, 0x29, 0x1d, 0xea, 0xdb, 0xc8, 0x03, 0x94, 0x3c, 0xee, 0x4f, 0x82, 0x11, | ||
237 | 0xc3, 0xec, 0x28, 0xbd, 0x97, 0x05, 0x99, 0xde, 0xd7, 0xbb, 0x5e, 0x22, 0x1f, 0xd4, 0xeb, | ||
238 | 0x64, 0xd9, 0x92, 0xd9, 0x85, 0xb7, 0x6a, 0x05, 0x6a, 0xe4, 0x24, 0x41, 0xf1, 0xcd, 0xf0, | ||
239 | 0xd8, 0x3f, 0xf8, 0x9e, 0x0e, 0xcd, 0x0b, 0x7a, 0x70, 0x6b, 0x5a, 0x75, 0x0a, 0x6a, 0x33, | ||
240 | 0x88, 0xec, 0x17, 0x75, 0x08, 0x70, 0x10, 0x2f, 0x24, 0xcf, 0xc4, 0xe9, 0x42, 0x00, 0x61, | ||
241 | 0x94, 0xca, 0x1f, 0x3a, 0x76, 0x06, 0xfa, 0xd2, 0x48, 0x81, 0xf0, 0x77, 0x60, 0x03, 0x45, | ||
242 | 0xd9, 0x61, 0xf4, 0xa4, 0x6f, 0x3d, 0xd9, 0x30, 0xc3, 0x04, 0x6b, 0x54, 0x2a, 0xb7, 0xec, | ||
243 | 0x3b, 0xf4, 0x4b, 0xf5, 0x68, 0x52, 0x26, 0xce, 0xff, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xa5, | ||
244 | 0xa9, 0xb1, 0xe0, 0x23, 0xc4, 0x0a, 0x77, 0x4d, 0xf9, 0x51, 0x20, 0xa3, 0xa5, 0xa9, 0xb1, | ||
245 | 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xc4, 0xeb, 0x54, 0x0b, | ||
246 | 0x75, 0x68, 0x52, 0x07, 0x8c, 0x9a, 0x97, 0x8d, 0x79, 0x70, 0x62, 0x46, 0xef, 0x5c, 0x1b, | ||
247 | 0x95, 0x89, 0x71, 0x41, 0xe1, 0x21, 0xa1, 0xa1, 0xa1, 0xc0, 0x02, 0x67, 0x4c, 0x1a, 0xb6, | ||
248 | 0xcf, 0xfd, 0x78, 0x53, 0x24, 0xab, 0xb5, 0xc9, 0xf1, 0x60, 0x23, 0xa5, 0xc8, 0x12, 0x87, | ||
249 | 0x6d, 0x58, 0x13, 0x85, 0x88, 0x92, 0x87, 0x6d, 0x58, 0x32, 0xc7, 0x0c, 0x9a, 0x97, 0xac, | ||
250 | 0xda, 0x36, 0xee, 0x5e, 0x3e, 0xdf, 0x1d, 0xb8, 0xf2, 0x66, 0x2f, 0xbd, 0xf8, 0x72, 0x47, | ||
251 | 0xed, 0x58, 0x13, 0x85, 0x88, 0x92, 0x87, 0x8c, 0x7b, 0x55, 0x09, 0x90, 0xa2, 0xc6, 0xef, | ||
252 | 0x3d, 0xf8, 0x53, 0x24, 0xab, 0xd4, 0x2a, 0xb7, 0xec, 0x5a, 0x36, 0xee, 0x5e, 0x3e, 0xdf, | ||
253 | 0x3c, 0xfa, 0x76, 0x4f, 0xfd, 0x59, 0x30, 0xe2, 0x46, 0xef, 0x3d, 0xf8, 0x53, 0x05, 0x69, | ||
254 | 0x31, 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, 0x19, 0xb0, 0xe2, 0x27, 0xcc, 0xfb, 0x74, | ||
255 | 0x4b, 0x14, 0x8b, 0x94, 0x8b, 0x75, 0x68, 0x33, 0xc5, 0x08, 0x92, 0x87, 0x8c, 0x9a, 0xb6, | ||
256 | 0xcf, 0x1c, 0xba, 0xd7, 0x0d, 0x98, 0xb2, 0xe6, 0x2f, 0xdc, 0x1b, 0x95, 0x89, 0x71, 0x60, | ||
257 | 0x23, 0xc4, 0x0a, 0x96, 0x8f, 0x9c, 0xba, 0xf6, 0x6e, 0x3f, 0xfc, 0x5b, 0x15, 0xa8, 0xd2, | ||
258 | 0x26, 0xaf, 0xbd, 0xf8, 0x72, 0x66, 0x2f, 0xdc, 0x1b, 0xb4, 0xcb, 0x14, 0x8b, 0x94, 0xaa, | ||
259 | 0xb7, 0xcd, 0xf9, 0x51, 0x01, 0x80, 0x82, 0x86, 0x6f, 0x3d, 0xd9, 0x30, 0xe2, 0x27, 0xcc, | ||
260 | 0xfb, 0x74, 0x4b, 0x14, 0xaa, 0xb7, 0xcd, 0xf9, 0x70, 0x43, 0x04, 0x6b, 0x35, 0xc9, 0xf1, | ||
261 | 0x60, 0x23, 0xa5, 0xc8, 0xf3, 0x45, 0x08, 0x92, 0x87, 0x6d, 0x58, 0x32, 0xe6, 0x2f, 0xbd, | ||
262 | 0xf8, 0x72, 0x66, 0x4e, 0x1e, 0xbe, 0xfe, 0x7e, 0x7e, 0x7e, 0x5f, 0x1d, 0x99, 0x91, 0xa0, | ||
263 | 0xa3, 0xc4, 0x0a, 0x77, 0x4d, 0x18, 0x93, 0xa4, 0xab, 0xd4, 0x0b, 0x75, 0x49, 0x10, 0xa2, | ||
264 | 0xc6, 0xef, 0x3d, 0xf8, 0x53, 0x24, 0xab, 0xb5, 0xe8, 0x33, 0xe4, 0x4a, 0x16, 0xae, 0xde, | ||
265 | 0x1f, 0xbc, 0xdb, 0x15, 0xa8, 0xb3, 0xc5, 0x08, 0x73, 0x45, 0xe9, 0x31, 0xc1, 0xe1, 0x21, | ||
266 | 0xa1, 0xa1, 0xa1, 0xc0, 0x02, 0x86, 0x6f, 0x5c, 0x3a, 0xd7, 0x0d, 0x98, 0x93, 0xa4, 0xca, | ||
267 | 0x16, 0xae, 0xde, 0x1f, 0x9d, 0x99, 0xb0, 0xe2, 0x46, 0xef, 0x3d, 0xf8, 0x72, 0x47, 0x0c, | ||
268 | 0x9a, 0xb6, 0xcf, 0xfd, 0x59, 0x11, 0xa0, 0xa3, 0xa5, 0xc8, 0xf3, 0x45, 0x08, 0x92, 0x87, | ||
269 | 0x6d, 0x39, 0xf0, 0x43, 0x04, 0x8a, 0x96, 0xae, 0xde, 0x3e, 0xdf, 0x1d, 0x99, 0x91, 0xa0, | ||
270 | 0xc2, 0x06, 0x6f, 0x3d, 0xf8, 0x72, 0x47, 0x0c, 0x9a, 0x97, 0x8d, 0x98, 0x93, 0x85, 0x88, | ||
271 | 0x73, 0x45, 0xe9, 0x31, 0xe0, 0x23, 0xa5, 0xa9, 0xd0, 0x03, 0x84, 0x8a, 0x96, 0xae, 0xde, | ||
272 | 0x1f, 0xbc, 0xdb, 0x15, 0xa8, 0xd2, 0x26, 0xce, 0xff, 0x5d, 0x19, 0x91, 0x81, 0x80, 0x82, | ||
273 | 0x67, 0x2d, 0xd8, 0x13, 0xa4, 0xab, 0xd4, 0x0b, 0x94, 0xaa, 0xb7, 0xcd, 0xf9, 0x51, 0x20, | ||
274 | 0xa3, 0xa5, 0xc8, 0xf3, 0x45, 0xe9, 0x50, 0x22, 0xc6, 0xef, 0x5c, 0x3a, 0xd7, 0x0d, 0x98, | ||
275 | 0x93, 0x85, 0x88, 0x73, 0x64, 0x4a, 0xf7, 0x4d, 0xf9, 0x51, 0x20, 0xa3, 0xc4, 0x0a, 0x96, | ||
276 | 0xae, 0xde, 0x3e, 0xfe, 0x7e, 0x7e, 0x7e, 0x5f, 0x3c, 0xfa, 0x76, 0x4f, 0xfd, 0x78, 0x72, | ||
277 | 0x66, 0x2f, 0xbd, 0xd9, 0x30, 0xc3, 0xe5, 0x48, 0x12, 0x87, 0x8c, 0x7b, 0x55, 0x28, 0xd2, | ||
278 | 0x07, 0x8c, 0x9a, 0x97, 0xac, 0xda, 0x17, 0x8d, 0x79, 0x51, 0x20, 0xa3, 0xc4, 0xeb, 0x54, | ||
279 | 0x0b, 0x94, 0x8b, 0x94, 0xaa, 0xd6, 0x2e, 0xbf, 0xfc, 0x5b, 0x15, 0xa8, 0xd2, 0x26, 0xaf, | ||
280 | 0xdc, 0x1b, 0xb4, 0xea, 0x37, 0xec, 0x3b, 0xf4, 0x6a, 0x37, 0xcd, 0x18, 0x93, 0x85, 0x69, | ||
281 | 0x31, 0xc1, 0xe1, 0x40, 0xe3, 0x25, 0xc8, 0x12, 0x87, 0x8c, 0x9a, 0xb6, 0xcf, 0xfd, 0x59, | ||
282 | 0x11, 0xa0, 0xc2, 0x06, 0x8e, 0x7f, 0x5d, 0x38, 0xf2, 0x47, 0x0c, 0x7b, 0x74, 0x6a, 0x37, | ||
283 | 0xec, 0x5a, 0x36, 0xee, 0x3f, 0xfc, 0x7a, 0x76, 0x4f, 0x1c, 0x9b, 0x95, 0x89, 0x71, 0x41, | ||
284 | 0x00, 0x63, 0x44, 0xeb, 0x54, 0x2a, 0xd6, 0x0f, 0x9c, 0xba, 0xd7, 0x0d, 0x98, 0x93, 0x85, | ||
285 | 0x69, 0x31, 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x9e, 0xbe, 0xdf, 0x3c, 0xfa, 0x57, 0x2c, 0xda, | ||
286 | 0x36, 0xee, 0x3f, 0xfc, 0x5b, 0x15, 0x89, 0x71, 0x41, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, | ||
287 | 0x38, 0xf2, 0x47, 0xed, 0x58, 0x13, 0xa4, 0xca, 0xf7, 0x4d, 0xf9, 0x51, 0x01, 0x80, 0x63, | ||
288 | 0x44, 0xeb, 0x54, 0x2a, 0xd6, 0x2e, 0xbf, 0xdd, 0x19, 0x91, 0xa0, 0xa3, 0xa5, 0xa9, 0xb1, | ||
289 | 0xe0, 0x42, 0x06, 0x8e, 0x7f, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xc4, 0x0a, 0x96, 0x8f, 0x7d, | ||
290 | 0x78, 0x72, 0x47, 0x0c, 0x7b, 0x74, 0x6a, 0x56, 0x2e, 0xde, 0x1f, 0xbc, 0xfa, 0x57, 0x0d, | ||
291 | 0x79, 0x51, 0x01, 0x61, 0x21, 0xa1, 0xc0, 0xe3, 0x25, 0xa9, 0xb1, 0xc1, 0xe1, 0x40, 0x02, | ||
292 | 0x67, 0x4c, 0x1a, 0x97, 0x8d, 0x98, 0x93, 0xa4, 0xab, 0xd4, 0x2a, 0xd6, 0x0f, 0x9c, 0x9b, | ||
293 | 0xb4, 0xcb, 0x14, 0xaa, 0xb7, 0xcd, 0xf9, 0x51, 0x20, 0xa3, 0xc4, 0xeb, 0x35, 0xc9, 0xf1, | ||
294 | 0x60, 0x42, 0x06, 0x8e, 0x7f, 0x7c, 0x7a, 0x76, 0x6e, 0x3f, 0xfc, 0x7a, 0x76, 0x6e, 0x5e, | ||
295 | 0x3e, 0xfe, 0x7e, 0x5f, 0x3c, 0xdb, 0x15, 0x89, 0x71, 0x41, 0xe1, 0x21, 0xc0, 0xe3, 0x44, | ||
296 | 0xeb, 0x54, 0x2a, 0xb7, 0xcd, 0xf9, 0x70, 0x62, 0x27, 0xad, 0xd8, 0x32, 0xc7, 0x0c, 0x7b, | ||
297 | 0x74, 0x4b, 0x14, 0xaa, 0xb7, 0xec, 0x3b, 0xd5, 0x28, 0xd2, 0x07, 0x6d, 0x39, 0xd1, 0x20, | ||
298 | 0xc2, 0xe7, 0x4c, 0x1a, 0x97, 0x8d, 0x98, 0xb2, 0xc7, 0x0c, 0x59, 0x28, 0xf3, 0x9b }; | ||
299 | |||
300 | // clang-format off | ||
diff --git a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/rules.mk b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/rules.mk index 3fb9ab2a8..9f4a5ea02 100644 --- a/keyboards/handwired/dactyl_manuform/5x6_right_trackball/rules.mk +++ b/keyboards/handwired/dactyl_manuform/5x6_right_trackball/rules.mk | |||
@@ -27,5 +27,5 @@ MOUSE_SHARED_EP = no | |||
27 | SPLIT_KEYBOARD = yes | 27 | SPLIT_KEYBOARD = yes |
28 | SPLIT_TRANSPORT = custom | 28 | SPLIT_TRANSPORT = custom |
29 | 29 | ||
30 | SRC += pmw3360.c | 30 | SRC += drivers/sensors/pmw3360.c |
31 | QUANTUM_LIB_SRC += pointer_transport.c serial.c i2c_master.c i2c_slave.c spi_master.c | 31 | QUANTUM_LIB_SRC += pointer_transport.c serial.c i2c_master.c i2c_slave.c spi_master.c |
diff --git a/keyboards/handwired/frankie_macropad/keymaps/default/config.h b/keyboards/handwired/frankie_macropad/keymaps/default/config.h new file mode 100644 index 000000000..dd687cad5 --- /dev/null +++ b/keyboards/handwired/frankie_macropad/keymaps/default/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2021 QMK | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #define LAYER_STATE_8BIT | ||
diff --git a/keyboards/handwired/freoduo/rules.mk b/keyboards/handwired/freoduo/rules.mk index e3da3753e..d8923557d 100644 --- a/keyboards/handwired/freoduo/rules.mk +++ b/keyboards/handwired/freoduo/rules.mk | |||
@@ -11,7 +11,7 @@ BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | |||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | 11 | MOUSEKEY_ENABLE = yes # Mouse keys |
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
13 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | 14 | COMMAND_ENABLE = no # Commands for debug and configuration |
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
@@ -21,4 +21,4 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
23 | VELOCIKEY_ENABLE = yes | 23 | VELOCIKEY_ENABLE = yes |
24 | SPLIT_KEYBOARD = yes \ No newline at end of file | 24 | SPLIT_KEYBOARD = yes |
diff --git a/keyboards/handwired/hnah40rgb/config.h b/keyboards/handwired/hnah40rgb/config.h index e6271738c..3d558f97f 100644 --- a/keyboards/handwired/hnah40rgb/config.h +++ b/keyboards/handwired/hnah40rgb/config.h | |||
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
60 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 60 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
61 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 61 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
62 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 62 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
63 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 63 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
64 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 64 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
65 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 65 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
66 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 66 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/handwired/p65rgb/config.h b/keyboards/handwired/p65rgb/config.h index c50fc2826..142d3c03e 100644 --- a/keyboards/handwired/p65rgb/config.h +++ b/keyboards/handwired/p65rgb/config.h | |||
@@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
40 | 40 | ||
41 | #define RGB_DI_PIN B4 | 41 | #define RGB_DI_PIN B4 |
42 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 42 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
43 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 43 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
44 | #define RGB_MATRIX_KEYPRESSES | 44 | #define RGB_MATRIX_KEYPRESSES |
45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
46 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 46 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk index 206e836ec..c16f3e2b8 100644 --- a/keyboards/helix/rev2/keymaps/default/rules.mk +++ b/keyboards/helix/rev2/keymaps/default/rules.mk | |||
@@ -5,7 +5,7 @@ | |||
5 | # See TOP/keyboards/helix/rules.mk for a list of options that can be set. | 5 | # See TOP/keyboards/helix/rules.mk for a list of options that can be set. |
6 | # See TOP/docs/config_options.md for more information. | 6 | # See TOP/docs/config_options.md for more information. |
7 | # | 7 | # |
8 | LTO_ENABLE = no # if firmware size over limit, try this option | 8 | LTO_ENABLE = yes # if firmware size over limit, try this option |
9 | 9 | ||
10 | # Helix Spacific Build Options | 10 | # Helix Spacific Build Options |
11 | # you can uncomment and edit follows 7 Variables | 11 | # you can uncomment and edit follows 7 Variables |
diff --git a/keyboards/helix/rev3_4rows/config.h b/keyboards/helix/rev3_4rows/config.h index 9102104bf..95eb8bf0c 100644 --- a/keyboards/helix/rev3_4rows/config.h +++ b/keyboards/helix/rev3_4rows/config.h | |||
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/helix/rev3_5rows/config.h b/keyboards/helix/rev3_5rows/config.h index 4dda76206..a373de7d1 100644 --- a/keyboards/helix/rev3_5rows/config.h +++ b/keyboards/helix/rev3_5rows/config.h | |||
@@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/hs60/v1/config.h b/keyboards/hs60/v1/config.h index 68c75b2af..41246b6ee 100644 --- a/keyboards/hs60/v1/config.h +++ b/keyboards/hs60/v1/config.h | |||
@@ -118,7 +118,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
118 | //#define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | 118 | //#define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) |
119 | 119 | ||
120 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 120 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
121 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 121 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
122 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 215 | 122 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 215 |
123 | 123 | ||
124 | #define DRIVER_ADDR_1 0b1110100 | 124 | #define DRIVER_ADDR_1 0b1110100 |
diff --git a/keyboards/kbdfans/bella/rgb/config.h b/keyboards/kbdfans/bella/rgb/config.h index f56049690..07594a34a 100644 --- a/keyboards/kbdfans/bella/rgb/config.h +++ b/keyboards/kbdfans/bella/rgb/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | /* disable these deprecated features by default */ | 37 | /* disable these deprecated features by default */ |
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/kbdfans/bella/rgb_iso/config.h b/keyboards/kbdfans/bella/rgb_iso/config.h index fc7a9d7c0..4fda99867 100644 --- a/keyboards/kbdfans/bella/rgb_iso/config.h +++ b/keyboards/kbdfans/bella/rgb_iso/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | /* disable these deprecated features by default */ | 37 | /* disable these deprecated features by default */ |
38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h index a832110d3..b0b7e1dad 100644 --- a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h +++ b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h | |||
@@ -16,9 +16,9 @@ | |||
16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
21 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 21 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
22 | #define DISABLE_RGB_MATRIX_BAND_SAT | 22 | #define DISABLE_RGB_MATRIX_BAND_SAT |
23 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
24 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h index 1ac9c770d..51e732f10 100644 --- a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h +++ b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h | |||
@@ -16,10 +16,10 @@ | |||
16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
21 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 21 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
23 | #define DISABLE_RGB_MATRIX_BAND_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_SAT |
24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h b/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h index a3ed4f762..90fb10ebb 100644 --- a/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h +++ b/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h | |||
@@ -16,4 +16,4 @@ | |||
16 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
19 | // place overrides here | 19 | #define LAYER_STATE_8BIT |
diff --git a/keyboards/kbdfans/kbdmini/config.h b/keyboards/kbdfans/kbdmini/config.h index 5a36e983d..fc65f4341 100644 --- a/keyboards/kbdfans/kbdmini/config.h +++ b/keyboards/kbdfans/kbdmini/config.h | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #ifdef RGB_MATRIX_ENABLE | 36 | #ifdef RGB_MATRIX_ENABLE |
37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
39 | #define RGB_MATRIX_KEYPRESSES | 39 | #define RGB_MATRIX_KEYPRESSES |
40 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 40 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
41 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/kbdfans/maja/config.h b/keyboards/kbdfans/maja/config.h index d8553766b..3722c8381 100755 --- a/keyboards/kbdfans/maja/config.h +++ b/keyboards/kbdfans/maja/config.h | |||
@@ -18,9 +18,9 @@ | |||
18 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 18 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
19 | #define DEBOUNCE 3 | 19 | #define DEBOUNCE 3 |
20 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 20 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
22 | #define RGB_MATRIX_KEYPRESSES | 22 | #define RGB_MATRIX_KEYPRESSES |
23 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 23 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
24 | #define DISABLE_RGB_MATRIX_BAND_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_SAT |
25 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
26 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 26 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/keebio/iris/rev2/rules.mk b/keyboards/keebio/iris/rev2/rules.mk index 765fa7f07..197bad476 100644 --- a/keyboards/keebio/iris/rev2/rules.mk +++ b/keyboards/keebio/iris/rev2/rules.mk | |||
@@ -32,3 +32,5 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | |||
32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
33 | 33 | ||
34 | SPLIT_KEYBOARD = yes | 34 | SPLIT_KEYBOARD = yes |
35 | |||
36 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/keebio/iris/rev3/rules.mk b/keyboards/keebio/iris/rev3/rules.mk index ea92bc98f..b64eab5a4 100644 --- a/keyboards/keebio/iris/rev3/rules.mk +++ b/keyboards/keebio/iris/rev3/rules.mk | |||
@@ -33,3 +33,4 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
33 | 33 | ||
34 | SPLIT_KEYBOARD = yes | 34 | SPLIT_KEYBOARD = yes |
35 | ENCODER_ENABLE = yes | 35 | ENCODER_ENABLE = yes |
36 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/keebio/iris/rev4/rules.mk b/keyboards/keebio/iris/rev4/rules.mk index ea92bc98f..9bf5688da 100644 --- a/keyboards/keebio/iris/rev4/rules.mk +++ b/keyboards/keebio/iris/rev4/rules.mk | |||
@@ -33,3 +33,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
33 | 33 | ||
34 | SPLIT_KEYBOARD = yes | 34 | SPLIT_KEYBOARD = yes |
35 | ENCODER_ENABLE = yes | 35 | ENCODER_ENABLE = yes |
36 | |||
37 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/keebio/quefrency/rules.mk b/keyboards/keebio/quefrency/rules.mk index 2c5ad0c36..c674e1016 100644 --- a/keyboards/keebio/quefrency/rules.mk +++ b/keyboards/keebio/quefrency/rules.mk | |||
@@ -19,3 +19,4 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
19 | SPLIT_KEYBOARD = yes | 19 | SPLIT_KEYBOARD = yes |
20 | 20 | ||
21 | DEFAULT_FOLDER = keebio/quefrency/rev1 | 21 | DEFAULT_FOLDER = keebio/quefrency/rev1 |
22 | LTO_ENABLE = yes | ||
diff --git a/keyboards/keebio/viterbi/rev2/rules.mk b/keyboards/keebio/viterbi/rev2/rules.mk index f95e7ae6a..829d6a56e 100644 --- a/keyboards/keebio/viterbi/rev2/rules.mk +++ b/keyboards/keebio/viterbi/rev2/rules.mk | |||
@@ -1,3 +1,5 @@ | |||
1 | BACKLIGHT_ENABLE = yes | 1 | BACKLIGHT_ENABLE = yes |
2 | 2 | ||
3 | LAYOUTS = ortho_5x14 | 3 | LAYOUTS = ortho_5x14 |
4 | |||
5 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/keebio/viterbi/rules.mk b/keyboards/keebio/viterbi/rules.mk index 0b746d172..92576d33e 100644 --- a/keyboards/keebio/viterbi/rules.mk +++ b/keyboards/keebio/viterbi/rules.mk | |||
@@ -19,16 +19,16 @@ BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | |||
19 | MOUSEKEY_ENABLE = yes # Mouse keys | 19 | MOUSEKEY_ENABLE = yes # Mouse keys |
20 | EXTRAKEY_ENABLE = yes # Audio control and System control | 20 | EXTRAKEY_ENABLE = yes # Audio control and System control |
21 | CONSOLE_ENABLE = no # Console for debug | 21 | CONSOLE_ENABLE = no # Console for debug |
22 | COMMAND_ENABLE = yes # Commands for debug and configuration | 22 | COMMAND_ENABLE = no # Commands for debug and configuration |
23 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 23 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
24 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 24 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
25 | MIDI_ENABLE = no # MIDI controls | 25 | MIDI_ENABLE = no # MIDI controls |
26 | AUDIO_ENABLE = no # Audio output on port C6 | 26 | AUDIO_ENABLE = no # Audio output on port C6 |
27 | UNICODE_ENABLE = no # Unicode | 27 | UNICODE_ENABLE = no # Unicode |
28 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 28 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
29 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | 29 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. |
30 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 30 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
31 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 31 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
32 | 32 | ||
33 | SPLIT_KEYBOARD = yes | 33 | SPLIT_KEYBOARD = yes |
34 | 34 | ||
diff --git a/keyboards/kinesis/kint36/config.h b/keyboards/kinesis/kint36/config.h index be5752603..8b46b3fc1 100644 --- a/keyboards/kinesis/kint36/config.h +++ b/keyboards/kinesis/kint36/config.h | |||
@@ -64,3 +64,5 @@ | |||
64 | #define LED_CAPS_LOCK_PIN C7 | 64 | #define LED_CAPS_LOCK_PIN C7 |
65 | #define LED_SCROLL_LOCK_PIN A5 | 65 | #define LED_SCROLL_LOCK_PIN A5 |
66 | #define LED_COMPOSE_PIN E26 | 66 | #define LED_COMPOSE_PIN E26 |
67 | |||
68 | #define EEPROM_SIZE 4096 | ||
diff --git a/keyboards/latin17rgb/config.h b/keyboards/latin17rgb/config.h index 013899f60..6a7ea8e78 100644 --- a/keyboards/latin17rgb/config.h +++ b/keyboards/latin17rgb/config.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2021 18438880 | 1 | /* Copyright 2021 18438880 |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
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 | 16 | ||
17 | #pragma once | 17 | #pragma once |
18 | 18 | ||
@@ -56,7 +56,7 @@ | |||
56 | 56 | ||
57 | #ifdef RGB_MATRIX_ENABLE | 57 | #ifdef RGB_MATRIX_ENABLE |
58 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 58 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
59 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 59 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
60 | # define RGB_MATRIX_KEYPRESSES | 60 | # define RGB_MATRIX_KEYPRESSES |
61 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 61 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
62 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 62 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
@@ -100,5 +100,3 @@ | |||
100 | #define RGBLIGHT_VAL_STEP 5 | 100 | #define RGBLIGHT_VAL_STEP 5 |
101 | #define RGBLIGHT_SLEEP | 101 | #define RGBLIGHT_SLEEP |
102 | #endif | 102 | #endif |
103 | |||
104 | |||
diff --git a/keyboards/latin60rgb/config.h b/keyboards/latin60rgb/config.h index bbe502054..97b481291 100644 --- a/keyboards/latin60rgb/config.h +++ b/keyboards/latin60rgb/config.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2021 latincompass | 1 | /* Copyright 2021 latincompass |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
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 | #pragma once | 16 | #pragma once |
17 | 17 | ||
18 | /* USB Device descriptor parameter */ | 18 | /* USB Device descriptor parameter */ |
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | #ifdef RGB_MATRIX_ENABLE | 54 | #ifdef RGB_MATRIX_ENABLE |
55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
57 | # define RGB_MATRIX_KEYPRESSES | 57 | # define RGB_MATRIX_KEYPRESSES |
58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
@@ -77,4 +77,3 @@ | |||
77 | # define DRIVER_1_LED_TOTAL 60 | 77 | # define DRIVER_1_LED_TOTAL 60 |
78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | 78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL |
79 | #endif | 79 | #endif |
80 | |||
diff --git a/keyboards/le_chiffre/config.h b/keyboards/le_chiffre/config.h index e14b4665f..af4d1e49c 100644 --- a/keyboards/le_chiffre/config.h +++ b/keyboards/le_chiffre/config.h | |||
@@ -69,7 +69,7 @@ | |||
69 | 69 | ||
70 | #ifdef RGB_MATRIX_ENABLE | 70 | #ifdef RGB_MATRIX_ENABLE |
71 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 71 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
72 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 72 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
73 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 73 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
74 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 74 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
75 | #define RGB_MATRIX_HUE_STEP 8 | 75 | #define RGB_MATRIX_HUE_STEP 8 |
diff --git a/keyboards/marksard/rhymestone/rev1/config.h b/keyboards/marksard/rhymestone/rev1/config.h index 9a1bf0a1d..983392511 100644 --- a/keyboards/marksard/rhymestone/rev1/config.h +++ b/keyboards/marksard/rhymestone/rev1/config.h | |||
@@ -93,7 +93,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
93 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 93 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
94 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 94 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
95 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 95 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
96 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 96 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
97 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 97 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
98 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 98 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
99 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 99 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
diff --git a/keyboards/massdrop/alt/keymaps/pregame/config.h b/keyboards/massdrop/alt/keymaps/pregame/config.h index acd041ce1..32dee56d3 100644 --- a/keyboards/massdrop/alt/keymaps/pregame/config.h +++ b/keyboards/massdrop/alt/keymaps/pregame/config.h | |||
@@ -89,7 +89,7 @@ | |||
89 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 89 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
90 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 90 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
91 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 91 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
92 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 92 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
93 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 93 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
94 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 94 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
95 | #define RGBLIGHT_ANIMATIONS // Run RGB animations | 95 | #define RGBLIGHT_ANIMATIONS // Run RGB animations |
@@ -103,7 +103,7 @@ | |||
103 | // #define RGBLIGHT_EFFECT_RGB_TEST // Enable RGB test animation mode. | 103 | // #define RGBLIGHT_EFFECT_RGB_TEST // Enable RGB test animation mode. |
104 | // #define RGBLIGHT_EFFECT_SNAKE // Enable snake animation mode. | 104 | // #define RGBLIGHT_EFFECT_SNAKE // Enable snake animation mode. |
105 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // Enable static gradient mode. | 105 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // Enable static gradient mode. |
106 | 106 | ||
107 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 | 107 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
108 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255 | 108 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255 |
109 | // #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds | 109 | // #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds |
diff --git a/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h b/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h index 0f2740013..f2a7e5038 100644 --- a/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h +++ b/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h | |||
@@ -24,4 +24,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
24 | #define RGB_MATRIX_LED_PROCESS_LIMIT 15 | 24 | #define RGB_MATRIX_LED_PROCESS_LIMIT 15 |
25 | #define RGB_MATRIX_LED_FLUSH_LIMIT 10 | 25 | #define RGB_MATRIX_LED_FLUSH_LIMIT 10 |
26 | 26 | ||
27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 27 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/config.h b/keyboards/massdrop/ctrl/keymaps/endgame/config.h index 0ef485591..ad738347a 100644 --- a/keyboards/massdrop/ctrl/keymaps/endgame/config.h +++ b/keyboards/massdrop/ctrl/keymaps/endgame/config.h | |||
@@ -49,7 +49,7 @@ | |||
49 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 49 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
50 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 50 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
51 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 51 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
52 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 52 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
53 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 53 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
54 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 54 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
55 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 55 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h index 6e16c3a5f..89c129c58 100644 --- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h +++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h | |||
@@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
67 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 67 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
68 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 68 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
69 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 69 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
70 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 70 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
71 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 71 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
72 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 72 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
73 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 73 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h index 1ba7d27df..d75cbd3f2 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 13 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
14 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 14 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
15 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 15 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
16 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 16 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
17 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 17 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
18 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 18 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
19 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set \ No newline at end of file | 19 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h index 38ffdd40a..c830edce2 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #define PRODUCT_ID 0xAEC2 | 3 | #define PRODUCT_ID 0xAEC2 |
4 | #define PRODUCT Adelais En Ciel Rev2 | 4 | #define PRODUCT Adelais En Ciel Rev2 |
5 | 5 | ||
6 | #define MATRIX_ROW_PINS { B1, A0, C13, A1, A2} | 6 | #define MATRIX_ROW_PINS { B1, A0, C13, A1, A2} |
7 | #define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A7 } | 7 | #define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A7 } |
@@ -31,7 +31,7 @@ | |||
31 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 31 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
32 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 32 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
33 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 33 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
34 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 34 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
35 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 35 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
36 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 36 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
37 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 37 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
@@ -42,4 +42,4 @@ | |||
42 | #define ENCODERS_PAD_B { A3 } | 42 | #define ENCODERS_PAD_B { A3 } |
43 | #define ENCODER_RESOLUTION 4 | 43 | #define ENCODER_RESOLUTION 4 |
44 | 44 | ||
45 | #define TAP_CODE_DELAY 10 \ No newline at end of file | 45 | #define TAP_CODE_DELAY 10 |
diff --git a/keyboards/mechlovin/delphine/rgb_led/config.h b/keyboards/mechlovin/delphine/rgb_led/config.h index 4d5c853d0..9a653d759 100644 --- a/keyboards/mechlovin/delphine/rgb_led/config.h +++ b/keyboards/mechlovin/delphine/rgb_led/config.h | |||
@@ -24,7 +24,7 @@ | |||
24 | // #define RGBLIGHT_EFFECT_RGB_TEST | 24 | // #define RGBLIGHT_EFFECT_RGB_TEST |
25 | // #define RGBLIGHT_EFFECT_ALTERNATING | 25 | // #define RGBLIGHT_EFFECT_ALTERNATING |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0 | 28 | //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0 |
29 | // set to 0 for write, 1 for read (as per I2C protocol) | 29 | // set to 0 for write, 1 for read (as per I2C protocol) |
30 | // The address will vary depending on your wiring: | 30 | // The address will vary depending on your wiring: |
@@ -41,7 +41,7 @@ | |||
41 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 41 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
42 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 42 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
43 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 43 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
44 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 44 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
45 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 45 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/mechlovin/hannah60rgb/rev1/config.h b/keyboards/mechlovin/hannah60rgb/rev1/config.h index 20873e716..fd45ecca6 100644 --- a/keyboards/mechlovin/hannah60rgb/rev1/config.h +++ b/keyboards/mechlovin/hannah60rgb/rev1/config.h | |||
@@ -11,8 +11,8 @@ | |||
11 | # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 11 | # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
12 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 12 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
13 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 13 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
14 | # define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 14 | // # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
15 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 15 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
16 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 16 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
17 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 17 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
18 | #endif \ No newline at end of file | 18 | #endif |
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/config.h b/keyboards/mechlovin/hannah60rgb/rev2/config.h index 2bcffbc85..5e57f985d 100644 --- a/keyboards/mechlovin/hannah60rgb/rev2/config.h +++ b/keyboards/mechlovin/hannah60rgb/rev2/config.h | |||
@@ -30,11 +30,11 @@ | |||
30 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 30 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
31 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 31 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
32 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 32 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
33 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 33 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
34 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 34 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
35 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 35 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
36 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 36 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
37 | 37 | ||
38 | #if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) | 38 | #if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) |
39 | # define RGB_MATRIX_DISABLE_KEYCODES | 39 | # define RGB_MATRIX_DISABLE_KEYCODES |
40 | #endif \ No newline at end of file | 40 | #endif |
diff --git a/keyboards/mechlovin/infinity87/rgb_rev1/config.h b/keyboards/mechlovin/infinity87/rgb_rev1/config.h index 0c16c684c..76c6e0db7 100644 --- a/keyboards/mechlovin/infinity87/rgb_rev1/config.h +++ b/keyboards/mechlovin/infinity87/rgb_rev1/config.h | |||
@@ -35,7 +35,7 @@ | |||
35 | // 0b0110001 AD <-> SCL | 35 | // 0b0110001 AD <-> SCL |
36 | // 0b0110010 AD <-> SDA | 36 | // 0b0110010 AD <-> SDA |
37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
39 | #define RGB_MATRIX_KEYPRESSES | 39 | #define RGB_MATRIX_KEYPRESSES |
40 | #define DISABLE_RGB_MATRIX_SPLASH | 40 | #define DISABLE_RGB_MATRIX_SPLASH |
41 | #define DISABLE_RGB_MATRIX_MULTISPLASH | 41 | #define DISABLE_RGB_MATRIX_MULTISPLASH |
diff --git a/keyboards/melgeek/mj61/config.h b/keyboards/melgeek/mj61/config.h index 164c04fb5..6ba19dd75 100644 --- a/keyboards/melgeek/mj61/config.h +++ b/keyboards/melgeek/mj61/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
38 | 38 | ||
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj63/config.h b/keyboards/melgeek/mj63/config.h index 47ad2f96c..46d3b0fb7 100644 --- a/keyboards/melgeek/mj63/config.h +++ b/keyboards/melgeek/mj63/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
38 | 38 | ||
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj64/config.h b/keyboards/melgeek/mj64/config.h index 29cb95f17..920d34acd 100644 --- a/keyboards/melgeek/mj64/config.h +++ b/keyboards/melgeek/mj64/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
38 | 38 | ||
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj65/config.h b/keyboards/melgeek/mj65/config.h index 12a7c7ce1..399c243ac 100644 --- a/keyboards/melgeek/mj65/config.h +++ b/keyboards/melgeek/mj65/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
38 | 38 | ||
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mojo75/config.h b/keyboards/melgeek/mojo75/config.h index c1a8083f1..d5bb4b454 100644 --- a/keyboards/melgeek/mojo75/config.h +++ b/keyboards/melgeek/mojo75/config.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
38 | 38 | ||
39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/z70ultra/config.h b/keyboards/melgeek/z70ultra/config.h index d5a9d0a89..e4530e2ea 100644 --- a/keyboards/melgeek/z70ultra/config.h +++ b/keyboards/melgeek/z70ultra/config.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define NO_ACTION_FUNCTION | 36 | #define NO_ACTION_FUNCTION |
37 | 37 | ||
38 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
40 | #define RGB_MATRIX_KEYPRESSES | 40 | #define RGB_MATRIX_KEYPRESSES |
41 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 41 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
42 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 42 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/miller/gm862/config.h b/keyboards/miller/gm862/config.h index 2b084efc2..e6e1b4c1d 100644 --- a/keyboards/miller/gm862/config.h +++ b/keyboards/miller/gm862/config.h | |||
@@ -36,10 +36,10 @@ | |||
36 | #define DEBOUNCE 3 | 36 | #define DEBOUNCE 3 |
37 | #ifdef RGB_MATRIX_ENABLE | 37 | #ifdef RGB_MATRIX_ENABLE |
38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
40 | # define RGB_MATRIX_KEYPRESSES | 40 | # define RGB_MATRIX_KEYPRESSES |
41 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 41 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
42 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 42 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
43 | # define DISABLE_RGB_MATRIX_BAND_SAT | 43 | # define DISABLE_RGB_MATRIX_BAND_SAT |
44 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 44 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
45 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 45 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/monstargear/xo87/rgb/config.h b/keyboards/monstargear/xo87/rgb/config.h index 83eee8349..5ed0ed445 100644 --- a/keyboards/monstargear/xo87/rgb/config.h +++ b/keyboards/monstargear/xo87/rgb/config.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define DIODE_DIRECTION ROW2COL | 36 | #define DIODE_DIRECTION ROW2COL |
37 | #define RGB_DI_PIN D7 | 37 | #define RGB_DI_PIN D7 |
38 | #define DRIVER_LED_TOTAL 110 | 38 | #define DRIVER_LED_TOTAL 110 |
39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
40 | 40 | ||
41 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255. | 41 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255. |
42 | #define RGBLIGHT_LIMIT_VAL 100 // limits maximum brightness of LEDs to 100 out of 255. | 42 | #define RGBLIGHT_LIMIT_VAL 100 // limits maximum brightness of LEDs to 100 out of 255. |
diff --git a/keyboards/moonlander/config.h b/keyboards/moonlander/config.h index c88feea3d..c1a139dc7 100644 --- a/keyboards/moonlander/config.h +++ b/keyboards/moonlander/config.h | |||
@@ -91,7 +91,7 @@ | |||
91 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 | 91 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 |
92 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 92 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
93 | #define RGB_MATRIX_KEYPRESSES | 93 | #define RGB_MATRIX_KEYPRESSES |
94 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 94 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
95 | 95 | ||
96 | #define MUSIC_MAP | 96 | #define MUSIC_MAP |
97 | 97 | ||
diff --git a/keyboards/mt84/keymaps/default/config.h b/keyboards/mt84/keymaps/default/config.h new file mode 100644 index 000000000..dd687cad5 --- /dev/null +++ b/keyboards/mt84/keymaps/default/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2021 QMK | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #define LAYER_STATE_8BIT | ||
diff --git a/keyboards/naked48/keymaps/salicylic/config.h b/keyboards/naked48/keymaps/salicylic/config.h index b6372db3b..71a43e208 100644 --- a/keyboards/naked48/keymaps/salicylic/config.h +++ b/keyboards/naked48/keymaps/salicylic/config.h | |||
@@ -31,7 +31,7 @@ | |||
31 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 31 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
32 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 32 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
33 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 33 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
34 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 34 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
35 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 35 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
36 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 36 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
37 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 37 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
@@ -41,4 +41,3 @@ | |||
41 | # define RGB_MATRIX_VAL_STEP 5 | 41 | # define RGB_MATRIX_VAL_STEP 5 |
42 | # define RGB_MATRIX_SPD_STEP 10 | 42 | # define RGB_MATRIX_SPD_STEP 10 |
43 | #endif | 43 | #endif |
44 | |||
diff --git a/keyboards/oddball/adns/adns.c b/keyboards/oddball/adns/adns.c deleted file mode 100644 index 9338808ff..000000000 --- a/keyboards/oddball/adns/adns.c +++ /dev/null | |||
@@ -1,219 +0,0 @@ | |||
1 | /* Copyright 2020 Alexander Tulloh | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include "spi_master.h" | ||
18 | #include "quantum.h" | ||
19 | #include "adns9800_srom_A6.h" | ||
20 | #include "adns.h" | ||
21 | |||
22 | // registers | ||
23 | #define REG_Product_ID 0x00 | ||
24 | #define REG_Revision_ID 0x01 | ||
25 | #define REG_Motion 0x02 | ||
26 | #define REG_Delta_X_L 0x03 | ||
27 | #define REG_Delta_X_H 0x04 | ||
28 | #define REG_Delta_Y_L 0x05 | ||
29 | #define REG_Delta_Y_H 0x06 | ||
30 | #define REG_SQUAL 0x07 | ||
31 | #define REG_Pixel_Sum 0x08 | ||
32 | #define REG_Maximum_Pixel 0x09 | ||
33 | #define REG_Minimum_Pixel 0x0a | ||
34 | #define REG_Shutter_Lower 0x0b | ||
35 | #define REG_Shutter_Upper 0x0c | ||
36 | #define REG_Frame_Period_Lower 0x0d | ||
37 | #define REG_Frame_Period_Upper 0x0e | ||
38 | #define REG_Configuration_I 0x0f | ||
39 | #define REG_Configuration_II 0x10 | ||
40 | #define REG_Frame_Capture 0x12 | ||
41 | #define REG_SROM_Enable 0x13 | ||
42 | #define REG_Run_Downshift 0x14 | ||
43 | #define REG_Rest1_Rate 0x15 | ||
44 | #define REG_Rest1_Downshift 0x16 | ||
45 | #define REG_Rest2_Rate 0x17 | ||
46 | #define REG_Rest2_Downshift 0x18 | ||
47 | #define REG_Rest3_Rate 0x19 | ||
48 | #define REG_Frame_Period_Max_Bound_Lower 0x1a | ||
49 | #define REG_Frame_Period_Max_Bound_Upper 0x1b | ||
50 | #define REG_Frame_Period_Min_Bound_Lower 0x1c | ||
51 | #define REG_Frame_Period_Min_Bound_Upper 0x1d | ||
52 | #define REG_Shutter_Max_Bound_Lower 0x1e | ||
53 | #define REG_Shutter_Max_Bound_Upper 0x1f | ||
54 | #define REG_LASER_CTRL0 0x20 | ||
55 | #define REG_Observation 0x24 | ||
56 | #define REG_Data_Out_Lower 0x25 | ||
57 | #define REG_Data_Out_Upper 0x26 | ||
58 | #define REG_SROM_ID 0x2a | ||
59 | #define REG_Lift_Detection_Thr 0x2e | ||
60 | #define REG_Configuration_V 0x2f | ||
61 | #define REG_Configuration_IV 0x39 | ||
62 | #define REG_Power_Up_Reset 0x3a | ||
63 | #define REG_Shutdown 0x3b | ||
64 | #define REG_Inverse_Product_ID 0x3f | ||
65 | #define REG_Motion_Burst 0x50 | ||
66 | #define REG_SROM_Load_Burst 0x62 | ||
67 | #define REG_Pixel_Burst 0x64 | ||
68 | |||
69 | #define ADNS_CLOCK_SPEED 2000000 | ||
70 | #define MIN_CPI 200 | ||
71 | #define MAX_CPI 8200 | ||
72 | #define CPI_STEP 200 | ||
73 | #define CLAMP_CPI(value) value < MIN_CPI ? MIN_CPI : value > MAX_CPI ? MAX_CPI : value | ||
74 | #define SPI_MODE 3 | ||
75 | #define SPI_DIVISOR (F_CPU / ADNS_CLOCK_SPEED) | ||
76 | #define US_BETWEEN_WRITES 120 | ||
77 | #define US_BETWEEN_READS 20 | ||
78 | #define US_BEFORE_MOTION 100 | ||
79 | #define MSB1 0x80 | ||
80 | |||
81 | extern const uint16_t adns_firmware_length; | ||
82 | extern const uint8_t adns_firmware_data[]; | ||
83 | |||
84 | void adns_spi_start(void){ | ||
85 | spi_start(SPI_SS_PIN, false, SPI_MODE, SPI_DIVISOR); | ||
86 | } | ||
87 | |||
88 | void adns_write(uint8_t reg_addr, uint8_t data){ | ||
89 | |||
90 | adns_spi_start(); | ||
91 | spi_write(reg_addr | MSB1); | ||
92 | spi_write(data); | ||
93 | spi_stop(); | ||
94 | wait_us(US_BETWEEN_WRITES); | ||
95 | } | ||
96 | |||
97 | uint8_t adns_read(uint8_t reg_addr){ | ||
98 | |||
99 | adns_spi_start(); | ||
100 | spi_write(reg_addr & 0x7f ); | ||
101 | uint8_t data = spi_read(); | ||
102 | spi_stop(); | ||
103 | wait_us(US_BETWEEN_READS); | ||
104 | |||
105 | return data; | ||
106 | } | ||
107 | |||
108 | void adns_init() { | ||
109 | |||
110 | setPinOutput(SPI_SS_PIN); | ||
111 | |||
112 | spi_init(); | ||
113 | |||
114 | // reboot | ||
115 | adns_write(REG_Power_Up_Reset, 0x5a); | ||
116 | wait_ms(50); | ||
117 | |||
118 | // read registers and discard | ||
119 | adns_read(REG_Motion); | ||
120 | adns_read(REG_Delta_X_L); | ||
121 | adns_read(REG_Delta_X_H); | ||
122 | adns_read(REG_Delta_Y_L); | ||
123 | adns_read(REG_Delta_Y_H); | ||
124 | |||
125 | // upload firmware | ||
126 | |||
127 | // 3k firmware mode | ||
128 | adns_write(REG_Configuration_IV, 0x02); | ||
129 | |||
130 | // enable initialisation | ||
131 | adns_write(REG_SROM_Enable, 0x1d); | ||
132 | |||
133 | // wait a frame | ||
134 | wait_ms(10); | ||
135 | |||
136 | // start SROM download | ||
137 | adns_write(REG_SROM_Enable, 0x18); | ||
138 | |||
139 | // write the SROM file | ||
140 | |||
141 | adns_spi_start(); | ||
142 | |||
143 | spi_write(REG_SROM_Load_Burst | 0x80); | ||
144 | wait_us(15); | ||
145 | |||
146 | // send all bytes of the firmware | ||
147 | unsigned char c; | ||
148 | for(int i = 0; i < adns_firmware_length; i++){ | ||
149 | c = (unsigned char)pgm_read_byte(adns_firmware_data + i); | ||
150 | spi_write(c); | ||
151 | wait_us(15); | ||
152 | } | ||
153 | |||
154 | spi_stop(); | ||
155 | |||
156 | wait_ms(10); | ||
157 | |||
158 | // enable laser | ||
159 | uint8_t laser_ctrl0 = adns_read(REG_LASER_CTRL0); | ||
160 | adns_write(REG_LASER_CTRL0, laser_ctrl0 & 0xf0); | ||
161 | } | ||
162 | |||
163 | config_adns_t adns_get_config(void) { | ||
164 | uint8_t config_1 = adns_read(REG_Configuration_I); | ||
165 | return (config_adns_t){ (config_1 & 0xFF) * CPI_STEP }; | ||
166 | } | ||
167 | |||
168 | void adns_set_config(config_adns_t config) { | ||
169 | uint8_t config_1 = (CLAMP_CPI(config.cpi) / CPI_STEP) & 0xFF; | ||
170 | adns_write(REG_Configuration_I, config_1); | ||
171 | } | ||
172 | |||
173 | static int16_t convertDeltaToInt(uint8_t high, uint8_t low){ | ||
174 | |||
175 | // join bytes into twos compliment | ||
176 | uint16_t twos_comp = (high << 8) | low; | ||
177 | |||
178 | // convert twos comp to int | ||
179 | if (twos_comp & 0x8000) | ||
180 | return -1 * (~twos_comp + 1); | ||
181 | |||
182 | return twos_comp; | ||
183 | } | ||
184 | |||
185 | report_adns_t adns_get_report(void) { | ||
186 | |||
187 | report_adns_t report = {0, 0}; | ||
188 | |||
189 | adns_spi_start(); | ||
190 | |||
191 | // start burst mode | ||
192 | spi_write(REG_Motion_Burst & 0x7f); | ||
193 | |||
194 | wait_us(US_BEFORE_MOTION); | ||
195 | |||
196 | uint8_t motion = spi_read(); | ||
197 | |||
198 | if(motion & 0x80) { | ||
199 | |||
200 | // clear observation register | ||
201 | spi_read(); | ||
202 | |||
203 | // delta registers | ||
204 | uint8_t delta_x_l = spi_read(); | ||
205 | uint8_t delta_x_h = spi_read(); | ||
206 | uint8_t delta_y_l = spi_read(); | ||
207 | uint8_t delta_y_h = spi_read(); | ||
208 | |||
209 | report.x = convertDeltaToInt(delta_x_h, delta_x_l); | ||
210 | report.y = convertDeltaToInt(delta_y_h, delta_y_l); | ||
211 | } | ||
212 | |||
213 | // clear residual motion | ||
214 | spi_write(REG_Motion & 0x7f); | ||
215 | |||
216 | spi_stop(); | ||
217 | |||
218 | return report; | ||
219 | } | ||
diff --git a/keyboards/oddball/adns/adns9800_srom_A6.h b/keyboards/oddball/adns/adns9800_srom_A6.h deleted file mode 100644 index f5b3abeb6..000000000 --- a/keyboards/oddball/adns/adns9800_srom_A6.h +++ /dev/null | |||
@@ -1,3078 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "progmem.h" | ||
4 | |||
5 | const uint16_t adns_firmware_length = 3070; | ||
6 | |||
7 | const uint8_t adns_firmware_data[] PROGMEM = { | ||
8 | 0x03, | ||
9 | 0xa6, | ||
10 | 0x68, | ||
11 | 0x1e, | ||
12 | 0x7d, | ||
13 | 0x10, | ||
14 | 0x7e, | ||
15 | 0x7e, | ||
16 | 0x5f, | ||
17 | 0x1c, | ||
18 | 0xb8, | ||
19 | 0xf2, | ||
20 | 0x47, | ||
21 | 0x0c, | ||
22 | 0x7b, | ||
23 | 0x74, | ||
24 | 0x4b, | ||
25 | 0x14, | ||
26 | 0x8b, | ||
27 | 0x75, | ||
28 | 0x66, | ||
29 | 0x51, | ||
30 | 0x0b, | ||
31 | 0x8c, | ||
32 | 0x76, | ||
33 | 0x74, | ||
34 | 0x4b, | ||
35 | 0x14, | ||
36 | 0xaa, | ||
37 | 0xd6, | ||
38 | 0x0f, | ||
39 | 0x9c, | ||
40 | 0xba, | ||
41 | 0xf6, | ||
42 | 0x6e, | ||
43 | 0x3f, | ||
44 | 0xdd, | ||
45 | 0x38, | ||
46 | 0xd5, | ||
47 | 0x02, | ||
48 | 0x80, | ||
49 | 0x9b, | ||
50 | 0x82, | ||
51 | 0x6d, | ||
52 | 0x58, | ||
53 | 0x13, | ||
54 | 0xa4, | ||
55 | 0xab, | ||
56 | 0xb5, | ||
57 | 0xc9, | ||
58 | 0x10, | ||
59 | 0xa2, | ||
60 | 0xc6, | ||
61 | 0x0a, | ||
62 | 0x7f, | ||
63 | 0x5d, | ||
64 | 0x19, | ||
65 | 0x91, | ||
66 | 0xa0, | ||
67 | 0xa3, | ||
68 | 0xce, | ||
69 | 0xeb, | ||
70 | 0x3e, | ||
71 | 0xc9, | ||
72 | 0xf1, | ||
73 | 0x60, | ||
74 | 0x42, | ||
75 | 0xe7, | ||
76 | 0x4c, | ||
77 | 0xfb, | ||
78 | 0x74, | ||
79 | 0x6a, | ||
80 | 0x56, | ||
81 | 0x2e, | ||
82 | 0xbf, | ||
83 | 0xdd, | ||
84 | 0x38, | ||
85 | 0xd3, | ||
86 | 0x05, | ||
87 | 0x88, | ||
88 | 0x92, | ||
89 | 0xa6, | ||
90 | 0xce, | ||
91 | 0xff, | ||
92 | 0x5d, | ||
93 | 0x38, | ||
94 | 0xd1, | ||
95 | 0xcf, | ||
96 | 0xef, | ||
97 | 0x58, | ||
98 | 0xcb, | ||
99 | 0x65, | ||
100 | 0x48, | ||
101 | 0xf0, | ||
102 | 0x35, | ||
103 | 0x85, | ||
104 | 0xa9, | ||
105 | 0xb2, | ||
106 | 0x8f, | ||
107 | 0x5e, | ||
108 | 0xf3, | ||
109 | 0x80, | ||
110 | 0x94, | ||
111 | 0x97, | ||
112 | 0x7e, | ||
113 | 0x75, | ||
114 | 0x97, | ||
115 | 0x87, | ||
116 | 0x73, | ||
117 | 0x13, | ||
118 | 0xb0, | ||
119 | 0x8a, | ||
120 | 0x69, | ||
121 | 0xd4, | ||
122 | 0x0a, | ||
123 | 0xde, | ||
124 | 0xc1, | ||
125 | 0x79, | ||
126 | 0x59, | ||
127 | 0x36, | ||
128 | 0xdb, | ||
129 | 0x9d, | ||
130 | 0xd6, | ||
131 | 0xb8, | ||
132 | 0x15, | ||
133 | 0x6f, | ||
134 | 0xce, | ||
135 | 0x3c, | ||
136 | 0x72, | ||
137 | 0x32, | ||
138 | 0x45, | ||
139 | 0x88, | ||
140 | 0xdf, | ||
141 | 0x6c, | ||
142 | 0xa5, | ||
143 | 0x6d, | ||
144 | 0xe8, | ||
145 | 0x76, | ||
146 | 0x96, | ||
147 | 0x14, | ||
148 | 0x74, | ||
149 | 0x20, | ||
150 | 0xdc, | ||
151 | 0xf4, | ||
152 | 0xfa, | ||
153 | 0x37, | ||
154 | 0x6a, | ||
155 | 0x27, | ||
156 | 0x32, | ||
157 | 0xe3, | ||
158 | 0x29, | ||
159 | 0xbf, | ||
160 | 0xc4, | ||
161 | 0xc7, | ||
162 | 0x06, | ||
163 | 0x9d, | ||
164 | 0x58, | ||
165 | 0xe7, | ||
166 | 0x87, | ||
167 | 0x7c, | ||
168 | 0x2e, | ||
169 | 0x9f, | ||
170 | 0x6e, | ||
171 | 0x49, | ||
172 | 0x07, | ||
173 | 0x5d, | ||
174 | 0x23, | ||
175 | 0x64, | ||
176 | 0x54, | ||
177 | 0x83, | ||
178 | 0x6e, | ||
179 | 0xcb, | ||
180 | 0xb7, | ||
181 | 0x77, | ||
182 | 0xf7, | ||
183 | 0x2b, | ||
184 | 0x6e, | ||
185 | 0x0f, | ||
186 | 0x2e, | ||
187 | 0x66, | ||
188 | 0x12, | ||
189 | 0x60, | ||
190 | 0x55, | ||
191 | 0x65, | ||
192 | 0xfc, | ||
193 | 0x43, | ||
194 | 0xb3, | ||
195 | 0x58, | ||
196 | 0x73, | ||
197 | 0x5b, | ||
198 | 0xe8, | ||
199 | 0x67, | ||
200 | 0x04, | ||
201 | 0x43, | ||
202 | 0x02, | ||
203 | 0xde, | ||
204 | 0xb3, | ||
205 | 0x89, | ||
206 | 0xa0, | ||
207 | 0x6d, | ||
208 | 0x3a, | ||
209 | 0x27, | ||
210 | 0x79, | ||
211 | 0x64, | ||
212 | 0x5b, | ||
213 | 0x0c, | ||
214 | 0x16, | ||
215 | 0x9e, | ||
216 | 0x66, | ||
217 | 0xb1, | ||
218 | 0x8b, | ||
219 | 0x87, | ||
220 | 0x0c, | ||
221 | 0x5d, | ||
222 | 0xf2, | ||
223 | 0xb6, | ||
224 | 0x3d, | ||
225 | 0x71, | ||
226 | 0xdf, | ||
227 | 0x42, | ||
228 | 0x03, | ||
229 | 0x8a, | ||
230 | 0x06, | ||
231 | 0x8d, | ||
232 | 0xef, | ||
233 | 0x1d, | ||
234 | 0xa8, | ||
235 | 0x96, | ||
236 | 0x5c, | ||
237 | 0xed, | ||
238 | 0x31, | ||
239 | 0x61, | ||
240 | 0x5c, | ||
241 | 0xa1, | ||
242 | 0x34, | ||
243 | 0xf6, | ||
244 | 0x8c, | ||
245 | 0x08, | ||
246 | 0x60, | ||
247 | 0x33, | ||
248 | 0x07, | ||
249 | 0x00, | ||
250 | 0x3e, | ||
251 | 0x79, | ||
252 | 0x95, | ||
253 | 0x1b, | ||
254 | 0x43, | ||
255 | 0x7f, | ||
256 | 0xfe, | ||
257 | 0xb6, | ||
258 | 0xa6, | ||
259 | 0xd4, | ||
260 | 0x9d, | ||
261 | 0x76, | ||
262 | 0x72, | ||
263 | 0xbf, | ||
264 | 0xad, | ||
265 | 0xc0, | ||
266 | 0x15, | ||
267 | 0xe8, | ||
268 | 0x37, | ||
269 | 0x31, | ||
270 | 0xa3, | ||
271 | 0x72, | ||
272 | 0x63, | ||
273 | 0x52, | ||
274 | 0x1d, | ||
275 | 0x1c, | ||
276 | 0x5d, | ||
277 | 0x51, | ||
278 | 0x1b, | ||
279 | 0xe1, | ||
280 | 0xa9, | ||
281 | 0xed, | ||
282 | 0x60, | ||
283 | 0x32, | ||
284 | 0x3e, | ||
285 | 0xa9, | ||
286 | 0x50, | ||
287 | 0x28, | ||
288 | 0x53, | ||
289 | 0x06, | ||
290 | 0x59, | ||
291 | 0xe2, | ||
292 | 0xfc, | ||
293 | 0xe7, | ||
294 | 0x02, | ||
295 | 0x64, | ||
296 | 0x39, | ||
297 | 0x21, | ||
298 | 0x56, | ||
299 | 0x4a, | ||
300 | 0xa5, | ||
301 | 0x40, | ||
302 | 0x80, | ||
303 | 0x81, | ||
304 | 0xd5, | ||
305 | 0x5a, | ||
306 | 0x60, | ||
307 | 0x7b, | ||
308 | 0x68, | ||
309 | 0x84, | ||
310 | 0xf1, | ||
311 | 0xe0, | ||
312 | 0xb1, | ||
313 | 0xb6, | ||
314 | 0x5b, | ||
315 | 0xdf, | ||
316 | 0xa8, | ||
317 | 0x1d, | ||
318 | 0x6d, | ||
319 | 0x65, | ||
320 | 0x20, | ||
321 | 0xc0, | ||
322 | 0xa2, | ||
323 | 0xb9, | ||
324 | 0xd9, | ||
325 | 0xbb, | ||
326 | 0x00, | ||
327 | 0xa6, | ||
328 | 0xdb, | ||
329 | 0x8b, | ||
330 | 0x01, | ||
331 | 0x53, | ||
332 | 0x91, | ||
333 | 0xfe, | ||
334 | 0xc4, | ||
335 | 0x51, | ||
336 | 0x85, | ||
337 | 0xb0, | ||
338 | 0x96, | ||
339 | 0x7f, | ||
340 | 0xfd, | ||
341 | 0x51, | ||
342 | 0xdd, | ||
343 | 0x14, | ||
344 | 0x03, | ||
345 | 0x67, | ||
346 | 0x2e, | ||
347 | 0x75, | ||
348 | 0x1c, | ||
349 | 0x76, | ||
350 | 0xd3, | ||
351 | 0x6e, | ||
352 | 0xdd, | ||
353 | 0x99, | ||
354 | 0x55, | ||
355 | 0x76, | ||
356 | 0xe5, | ||
357 | 0xab, | ||
358 | 0x23, | ||
359 | 0xfc, | ||
360 | 0x4a, | ||
361 | 0xd5, | ||
362 | 0xc6, | ||
363 | 0xe8, | ||
364 | 0x2e, | ||
365 | 0xca, | ||
366 | 0x8a, | ||
367 | 0xb3, | ||
368 | 0xf6, | ||
369 | 0x8c, | ||
370 | 0x6c, | ||
371 | 0xb0, | ||
372 | 0xe9, | ||
373 | 0xf2, | ||
374 | 0xe7, | ||
375 | 0x9e, | ||
376 | 0x69, | ||
377 | 0x41, | ||
378 | 0xed, | ||
379 | 0xf1, | ||
380 | 0x6d, | ||
381 | 0xd2, | ||
382 | 0x86, | ||
383 | 0xd8, | ||
384 | 0x7e, | ||
385 | 0xcb, | ||
386 | 0x5d, | ||
387 | 0x47, | ||
388 | 0x6c, | ||
389 | 0x85, | ||
390 | 0x6a, | ||
391 | 0x23, | ||
392 | 0xed, | ||
393 | 0x20, | ||
394 | 0x40, | ||
395 | 0x93, | ||
396 | 0xb4, | ||
397 | 0x20, | ||
398 | 0xc7, | ||
399 | 0xa5, | ||
400 | 0xc9, | ||
401 | 0xaf, | ||
402 | 0x03, | ||
403 | 0x15, | ||
404 | 0xac, | ||
405 | 0x19, | ||
406 | 0xe5, | ||
407 | 0x2a, | ||
408 | 0x36, | ||
409 | 0xdf, | ||
410 | 0x6d, | ||
411 | 0xc5, | ||
412 | 0x8c, | ||
413 | 0x80, | ||
414 | 0x07, | ||
415 | 0xce, | ||
416 | 0x92, | ||
417 | 0x0c, | ||
418 | 0xd8, | ||
419 | 0x06, | ||
420 | 0x62, | ||
421 | 0x0f, | ||
422 | 0xdd, | ||
423 | 0x48, | ||
424 | 0x46, | ||
425 | 0x1a, | ||
426 | 0x53, | ||
427 | 0xc7, | ||
428 | 0x8a, | ||
429 | 0x8c, | ||
430 | 0x5d, | ||
431 | 0x5d, | ||
432 | 0xb4, | ||
433 | 0xa1, | ||
434 | 0x02, | ||
435 | 0xd3, | ||
436 | 0xa9, | ||
437 | 0xb8, | ||
438 | 0xf3, | ||
439 | 0x94, | ||
440 | 0x8f, | ||
441 | 0x3f, | ||
442 | 0xe5, | ||
443 | 0x54, | ||
444 | 0xd4, | ||
445 | 0x11, | ||
446 | 0x65, | ||
447 | 0xb2, | ||
448 | 0x5e, | ||
449 | 0x09, | ||
450 | 0x0b, | ||
451 | 0x81, | ||
452 | 0xe3, | ||
453 | 0x75, | ||
454 | 0xa7, | ||
455 | 0x89, | ||
456 | 0x81, | ||
457 | 0x39, | ||
458 | 0x6c, | ||
459 | 0x46, | ||
460 | 0xf6, | ||
461 | 0x06, | ||
462 | 0x9f, | ||
463 | 0x27, | ||
464 | 0x3b, | ||
465 | 0xb6, | ||
466 | 0x2d, | ||
467 | 0x5f, | ||
468 | 0x1d, | ||
469 | 0x4b, | ||
470 | 0xd4, | ||
471 | 0x7b, | ||
472 | 0x1d, | ||
473 | 0x61, | ||
474 | 0x74, | ||
475 | 0x89, | ||
476 | 0xe4, | ||
477 | 0xe3, | ||
478 | 0xbd, | ||
479 | 0x98, | ||
480 | 0x1b, | ||
481 | 0xc4, | ||
482 | 0x51, | ||
483 | 0x3b, | ||
484 | 0xa4, | ||
485 | 0xfa, | ||
486 | 0xe0, | ||
487 | 0x92, | ||
488 | 0xf7, | ||
489 | 0xbe, | ||
490 | 0xf2, | ||
491 | 0x4d, | ||
492 | 0xbb, | ||
493 | 0xff, | ||
494 | 0xad, | ||
495 | 0x4f, | ||
496 | 0x6d, | ||
497 | 0x68, | ||
498 | 0xc2, | ||
499 | 0x79, | ||
500 | 0x40, | ||
501 | 0xaa, | ||
502 | 0x9b, | ||
503 | 0x8f, | ||
504 | 0x0c, | ||
505 | 0x32, | ||
506 | 0x4b, | ||
507 | 0x5f, | ||
508 | 0x3e, | ||
509 | 0xab, | ||
510 | 0x59, | ||
511 | 0x98, | ||
512 | 0xb3, | ||
513 | 0xf5, | ||
514 | 0x1d, | ||
515 | 0xac, | ||
516 | 0x5e, | ||
517 | 0xbc, | ||
518 | 0x78, | ||
519 | 0xd3, | ||
520 | 0x01, | ||
521 | 0x6c, | ||
522 | 0x64, | ||
523 | 0x15, | ||
524 | 0x2f, | ||
525 | 0xd8, | ||
526 | 0x71, | ||
527 | 0xa6, | ||
528 | 0x2d, | ||
529 | 0x45, | ||
530 | 0xe1, | ||
531 | 0x22, | ||
532 | 0x42, | ||
533 | 0xe4, | ||
534 | 0x4e, | ||
535 | 0x04, | ||
536 | 0x3c, | ||
537 | 0x7d, | ||
538 | 0xf4, | ||
539 | 0x40, | ||
540 | 0x21, | ||
541 | 0xb4, | ||
542 | 0x67, | ||
543 | 0x05, | ||
544 | 0xa8, | ||
545 | 0xe2, | ||
546 | 0xf3, | ||
547 | 0x72, | ||
548 | 0x87, | ||
549 | 0x4c, | ||
550 | 0x7d, | ||
551 | 0xd9, | ||
552 | 0x1b, | ||
553 | 0x65, | ||
554 | 0x97, | ||
555 | 0xf3, | ||
556 | 0xc2, | ||
557 | 0xe3, | ||
558 | 0xe4, | ||
559 | 0xc8, | ||
560 | 0xd2, | ||
561 | 0xde, | ||
562 | 0xf6, | ||
563 | 0xef, | ||
564 | 0xdc, | ||
565 | 0xbb, | ||
566 | 0x44, | ||
567 | 0x08, | ||
568 | 0x5e, | ||
569 | 0xe2, | ||
570 | 0x45, | ||
571 | 0x27, | ||
572 | 0x01, | ||
573 | 0xb0, | ||
574 | 0xf6, | ||
575 | 0x43, | ||
576 | 0xe7, | ||
577 | 0x3a, | ||
578 | 0xf6, | ||
579 | 0xdc, | ||
580 | 0x9d, | ||
581 | 0xed, | ||
582 | 0xf3, | ||
583 | 0xc5, | ||
584 | 0x0c, | ||
585 | 0xb8, | ||
586 | 0x9c, | ||
587 | 0x98, | ||
588 | 0x3a, | ||
589 | 0xd8, | ||
590 | 0x36, | ||
591 | 0xee, | ||
592 | 0x96, | ||
593 | 0x72, | ||
594 | 0x67, | ||
595 | 0xe7, | ||
596 | 0x81, | ||
597 | 0x91, | ||
598 | 0xd5, | ||
599 | 0x05, | ||
600 | 0x0a, | ||
601 | 0xe0, | ||
602 | 0x82, | ||
603 | 0xd5, | ||
604 | 0x8f, | ||
605 | 0xe8, | ||
606 | 0xf9, | ||
607 | 0xb0, | ||
608 | 0xc9, | ||
609 | 0xcf, | ||
610 | 0x93, | ||
611 | 0xe7, | ||
612 | 0x04, | ||
613 | 0xc5, | ||
614 | 0xbc, | ||
615 | 0x2b, | ||
616 | 0x43, | ||
617 | 0x56, | ||
618 | 0x7e, | ||
619 | 0xe8, | ||
620 | 0x67, | ||
621 | 0x7c, | ||
622 | 0xe5, | ||
623 | 0xfb, | ||
624 | 0x49, | ||
625 | 0xad, | ||
626 | 0x5e, | ||
627 | 0x9f, | ||
628 | 0x25, | ||
629 | 0x13, | ||
630 | 0xde, | ||
631 | 0x6e, | ||
632 | 0x6e, | ||
633 | 0xe9, | ||
634 | 0xf1, | ||
635 | 0xec, | ||
636 | 0x87, | ||
637 | 0x0b, | ||
638 | 0x59, | ||
639 | 0x81, | ||
640 | 0x76, | ||
641 | 0x84, | ||
642 | 0x76, | ||
643 | 0xb3, | ||
644 | 0x24, | ||
645 | 0xaf, | ||
646 | 0x30, | ||
647 | 0xfd, | ||
648 | 0x27, | ||
649 | 0x8b, | ||
650 | 0xab, | ||
651 | 0xd8, | ||
652 | 0x00, | ||
653 | 0x8b, | ||
654 | 0x9b, | ||
655 | 0x0c, | ||
656 | 0xd2, | ||
657 | 0xb2, | ||
658 | 0x4e, | ||
659 | 0x5e, | ||
660 | 0x9d, | ||
661 | 0x1d, | ||
662 | 0x96, | ||
663 | 0x01, | ||
664 | 0x00, | ||
665 | 0x67, | ||
666 | 0xc1, | ||
667 | 0x5f, | ||
668 | 0x02, | ||
669 | 0x20, | ||
670 | 0xfd, | ||
671 | 0x45, | ||
672 | 0x6a, | ||
673 | 0x01, | ||
674 | 0x60, | ||
675 | 0x58, | ||
676 | 0x45, | ||
677 | 0xca, | ||
678 | 0x47, | ||
679 | 0x21, | ||
680 | 0x90, | ||
681 | 0x5a, | ||
682 | 0xc4, | ||
683 | 0x43, | ||
684 | 0x26, | ||
685 | 0x1a, | ||
686 | 0xd7, | ||
687 | 0xa5, | ||
688 | 0x4a, | ||
689 | 0xb2, | ||
690 | 0x5d, | ||
691 | 0x2b, | ||
692 | 0x35, | ||
693 | 0x49, | ||
694 | 0xfb, | ||
695 | 0xa5, | ||
696 | 0x17, | ||
697 | 0x92, | ||
698 | 0x21, | ||
699 | 0x1e, | ||
700 | 0x93, | ||
701 | 0x96, | ||
702 | 0x67, | ||
703 | 0xa2, | ||
704 | 0x7e, | ||
705 | 0x36, | ||
706 | 0x7a, | ||
707 | 0xde, | ||
708 | 0x5f, | ||
709 | 0xbe, | ||
710 | 0x7a, | ||
711 | 0x58, | ||
712 | 0x9d, | ||
713 | 0xf8, | ||
714 | 0x78, | ||
715 | 0xa3, | ||
716 | 0xfa, | ||
717 | 0xc8, | ||
718 | 0xd5, | ||
719 | 0x17, | ||
720 | 0xf0, | ||
721 | 0x21, | ||
722 | 0x97, | ||
723 | 0x8c, | ||
724 | 0x80, | ||
725 | 0xb5, | ||
726 | 0x4b, | ||
727 | 0x3b, | ||
728 | 0xbd, | ||
729 | 0xbb, | ||
730 | 0x41, | ||
731 | 0x21, | ||
732 | 0xa8, | ||
733 | 0x50, | ||
734 | 0x67, | ||
735 | 0xf7, | ||
736 | 0xe7, | ||
737 | 0x19, | ||
738 | 0x80, | ||
739 | 0x10, | ||
740 | 0x8e, | ||
741 | 0xce, | ||
742 | 0x04, | ||
743 | 0x18, | ||
744 | 0x3f, | ||
745 | 0x51, | ||
746 | 0x6b, | ||
747 | 0x77, | ||
748 | 0xd8, | ||
749 | 0x9e, | ||
750 | 0x16, | ||
751 | 0xaf, | ||
752 | 0xec, | ||
753 | 0xef, | ||
754 | 0x48, | ||
755 | 0x16, | ||
756 | 0x4d, | ||
757 | 0x9e, | ||
758 | 0x85, | ||
759 | 0x38, | ||
760 | 0x18, | ||
761 | 0x3e, | ||
762 | 0xd4, | ||
763 | 0x28, | ||
764 | 0x87, | ||
765 | 0x60, | ||
766 | 0x2a, | ||
767 | 0xf6, | ||
768 | 0x7f, | ||
769 | 0x09, | ||
770 | 0x86, | ||
771 | 0x6f, | ||
772 | 0x9c, | ||
773 | 0x3c, | ||
774 | 0x3a, | ||
775 | 0xff, | ||
776 | 0xab, | ||
777 | 0xd0, | ||
778 | 0x61, | ||
779 | 0xa2, | ||
780 | 0x97, | ||
781 | 0x0d, | ||
782 | 0x71, | ||
783 | 0x94, | ||
784 | 0x7e, | ||
785 | 0xfd, | ||
786 | 0xb9, | ||
787 | 0x80, | ||
788 | 0x02, | ||
789 | 0x89, | ||
790 | 0x6a, | ||
791 | 0xb3, | ||
792 | 0x84, | ||
793 | 0x6c, | ||
794 | 0x2a, | ||
795 | 0x77, | ||
796 | 0x62, | ||
797 | 0xbe, | ||
798 | 0x0b, | ||
799 | 0xf4, | ||
800 | 0xaf, | ||
801 | 0xac, | ||
802 | 0x7b, | ||
803 | 0x7c, | ||
804 | 0x8e, | ||
805 | 0xca, | ||
806 | 0x01, | ||
807 | 0xba, | ||
808 | 0x71, | ||
809 | 0x78, | ||
810 | 0x94, | ||
811 | 0xfd, | ||
812 | 0xb5, | ||
813 | 0x39, | ||
814 | 0xa4, | ||
815 | 0x4d, | ||
816 | 0x2f, | ||
817 | 0x78, | ||
818 | 0xcf, | ||
819 | 0xca, | ||
820 | 0x92, | ||
821 | 0x0c, | ||
822 | 0x1a, | ||
823 | 0x99, | ||
824 | 0x48, | ||
825 | 0x4c, | ||
826 | 0x11, | ||
827 | 0x96, | ||
828 | 0xb5, | ||
829 | 0x4e, | ||
830 | 0x41, | ||
831 | 0x28, | ||
832 | 0xe4, | ||
833 | 0xa6, | ||
834 | 0xfe, | ||
835 | 0x4b, | ||
836 | 0x72, | ||
837 | 0x91, | ||
838 | 0xe7, | ||
839 | 0xd4, | ||
840 | 0xdd, | ||
841 | 0x9f, | ||
842 | 0x12, | ||
843 | 0xe6, | ||
844 | 0x29, | ||
845 | 0x38, | ||
846 | 0xce, | ||
847 | 0x45, | ||
848 | 0xae, | ||
849 | 0x02, | ||
850 | 0xb8, | ||
851 | 0x24, | ||
852 | 0xae, | ||
853 | 0xbd, | ||
854 | 0xe9, | ||
855 | 0x66, | ||
856 | 0x08, | ||
857 | 0x62, | ||
858 | 0xa2, | ||
859 | 0x2c, | ||
860 | 0x2b, | ||
861 | 0x00, | ||
862 | 0xe2, | ||
863 | 0x23, | ||
864 | 0xd9, | ||
865 | 0xc4, | ||
866 | 0x48, | ||
867 | 0xe4, | ||
868 | 0xd3, | ||
869 | 0xac, | ||
870 | 0xbb, | ||
871 | 0x34, | ||
872 | 0xc7, | ||
873 | 0xf0, | ||
874 | 0xe3, | ||
875 | 0x4f, | ||
876 | 0xb9, | ||
877 | 0x30, | ||
878 | 0xea, | ||
879 | 0xa2, | ||
880 | 0x12, | ||
881 | 0xf1, | ||
882 | 0x30, | ||
883 | 0x2c, | ||
884 | 0x36, | ||
885 | 0xde, | ||
886 | 0x48, | ||
887 | 0xf2, | ||
888 | 0xb0, | ||
889 | 0x4c, | ||
890 | 0x43, | ||
891 | 0x3f, | ||
892 | 0x2e, | ||
893 | 0x58, | ||
894 | 0xe4, | ||
895 | 0x20, | ||
896 | 0xe3, | ||
897 | 0x58, | ||
898 | 0xcd, | ||
899 | 0x31, | ||
900 | 0x22, | ||
901 | 0xf0, | ||
902 | 0xa2, | ||
903 | 0x2a, | ||
904 | 0xe6, | ||
905 | 0x19, | ||
906 | 0x90, | ||
907 | 0x55, | ||
908 | 0x86, | ||
909 | 0xf6, | ||
910 | 0x55, | ||
911 | 0x79, | ||
912 | 0xd1, | ||
913 | 0xd7, | ||
914 | 0x46, | ||
915 | 0x2f, | ||
916 | 0xc0, | ||
917 | 0xdc, | ||
918 | 0x99, | ||
919 | 0xe8, | ||
920 | 0xf3, | ||
921 | 0x6a, | ||
922 | 0xdf, | ||
923 | 0x7f, | ||
924 | 0xeb, | ||
925 | 0x24, | ||
926 | 0x4a, | ||
927 | 0x1e, | ||
928 | 0x5a, | ||
929 | 0x75, | ||
930 | 0xde, | ||
931 | 0x2f, | ||
932 | 0x5c, | ||
933 | 0x19, | ||
934 | 0x61, | ||
935 | 0x03, | ||
936 | 0x53, | ||
937 | 0x54, | ||
938 | 0x6a, | ||
939 | 0x3b, | ||
940 | 0x18, | ||
941 | 0x70, | ||
942 | 0xb6, | ||
943 | 0x4f, | ||
944 | 0xf1, | ||
945 | 0x9c, | ||
946 | 0x0a, | ||
947 | 0x59, | ||
948 | 0x9d, | ||
949 | 0x19, | ||
950 | 0x92, | ||
951 | 0x65, | ||
952 | 0x8c, | ||
953 | 0x83, | ||
954 | 0x14, | ||
955 | 0x2d, | ||
956 | 0x44, | ||
957 | 0x8a, | ||
958 | 0x75, | ||
959 | 0xa9, | ||
960 | 0xf5, | ||
961 | 0x90, | ||
962 | 0xd2, | ||
963 | 0x66, | ||
964 | 0x4e, | ||
965 | 0xfa, | ||
966 | 0x69, | ||
967 | 0x0f, | ||
968 | 0x5b, | ||
969 | 0x0b, | ||
970 | 0x98, | ||
971 | 0x65, | ||
972 | 0xc8, | ||
973 | 0x11, | ||
974 | 0x42, | ||
975 | 0x59, | ||
976 | 0x7f, | ||
977 | 0xdd, | ||
978 | 0x1b, | ||
979 | 0x75, | ||
980 | 0x17, | ||
981 | 0x31, | ||
982 | 0x4c, | ||
983 | 0x75, | ||
984 | 0x58, | ||
985 | 0xeb, | ||
986 | 0x58, | ||
987 | 0x63, | ||
988 | 0x7d, | ||
989 | 0xf2, | ||
990 | 0xa6, | ||
991 | 0xc2, | ||
992 | 0x6e, | ||
993 | 0xb7, | ||
994 | 0x3f, | ||
995 | 0x3e, | ||
996 | 0x5e, | ||
997 | 0x47, | ||
998 | 0xad, | ||
999 | 0xb7, | ||
1000 | 0x04, | ||
1001 | 0xe8, | ||
1002 | 0x05, | ||
1003 | 0xf8, | ||
1004 | 0xb2, | ||
1005 | 0xcf, | ||
1006 | 0x19, | ||
1007 | 0xf3, | ||
1008 | 0xd2, | ||
1009 | 0x85, | ||
1010 | 0xfe, | ||
1011 | 0x3e, | ||
1012 | 0x3e, | ||
1013 | 0xb1, | ||
1014 | 0x62, | ||
1015 | 0x08, | ||
1016 | 0x2c, | ||
1017 | 0x10, | ||
1018 | 0x07, | ||
1019 | 0x0d, | ||
1020 | 0x73, | ||
1021 | 0x90, | ||
1022 | 0x17, | ||
1023 | 0xfa, | ||
1024 | 0x9b, | ||
1025 | 0x56, | ||
1026 | 0x02, | ||
1027 | 0x75, | ||
1028 | 0xf9, | ||
1029 | 0x51, | ||
1030 | 0xe0, | ||
1031 | 0xe9, | ||
1032 | 0x1a, | ||
1033 | 0x7b, | ||
1034 | 0x9f, | ||
1035 | 0xb3, | ||
1036 | 0xf3, | ||
1037 | 0x98, | ||
1038 | 0xb8, | ||
1039 | 0x1c, | ||
1040 | 0x9c, | ||
1041 | 0xe1, | ||
1042 | 0xd5, | ||
1043 | 0x35, | ||
1044 | 0xae, | ||
1045 | 0xc8, | ||
1046 | 0x60, | ||
1047 | 0x48, | ||
1048 | 0x11, | ||
1049 | 0x09, | ||
1050 | 0x94, | ||
1051 | 0x6b, | ||
1052 | 0xd0, | ||
1053 | 0x8b, | ||
1054 | 0x15, | ||
1055 | 0xbc, | ||
1056 | 0x05, | ||
1057 | 0x68, | ||
1058 | 0xd3, | ||
1059 | 0x54, | ||
1060 | 0x8a, | ||
1061 | 0x51, | ||
1062 | 0x39, | ||
1063 | 0x5c, | ||
1064 | 0x42, | ||
1065 | 0x76, | ||
1066 | 0xce, | ||
1067 | 0xd8, | ||
1068 | 0xad, | ||
1069 | 0x89, | ||
1070 | 0x30, | ||
1071 | 0xc9, | ||
1072 | 0x05, | ||
1073 | 0x1c, | ||
1074 | 0xcc, | ||
1075 | 0x94, | ||
1076 | 0x3f, | ||
1077 | 0x0f, | ||
1078 | 0x90, | ||
1079 | 0x6f, | ||
1080 | 0x72, | ||
1081 | 0x2d, | ||
1082 | 0x85, | ||
1083 | 0x64, | ||
1084 | 0x9a, | ||
1085 | 0xb9, | ||
1086 | 0x23, | ||
1087 | 0xf9, | ||
1088 | 0x0b, | ||
1089 | 0xc3, | ||
1090 | 0x7c, | ||
1091 | 0x39, | ||
1092 | 0x0f, | ||
1093 | 0x97, | ||
1094 | 0x07, | ||
1095 | 0x97, | ||
1096 | 0xda, | ||
1097 | 0x58, | ||
1098 | 0x48, | ||
1099 | 0x33, | ||
1100 | 0x05, | ||
1101 | 0x23, | ||
1102 | 0xb8, | ||
1103 | 0x82, | ||
1104 | 0xe8, | ||
1105 | 0xd3, | ||
1106 | 0x53, | ||
1107 | 0x89, | ||
1108 | 0xaf, | ||
1109 | 0x33, | ||
1110 | 0x80, | ||
1111 | 0x22, | ||
1112 | 0x84, | ||
1113 | 0x0c, | ||
1114 | 0x95, | ||
1115 | 0x5c, | ||
1116 | 0x67, | ||
1117 | 0xb8, | ||
1118 | 0x77, | ||
1119 | 0x0c, | ||
1120 | 0x5c, | ||
1121 | 0xa2, | ||
1122 | 0x5f, | ||
1123 | 0x3d, | ||
1124 | 0x58, | ||
1125 | 0x0f, | ||
1126 | 0x27, | ||
1127 | 0xf3, | ||
1128 | 0x2f, | ||
1129 | 0xae, | ||
1130 | 0x48, | ||
1131 | 0xbd, | ||
1132 | 0x0b, | ||
1133 | 0x6f, | ||
1134 | 0x54, | ||
1135 | 0xfb, | ||
1136 | 0x67, | ||
1137 | 0x4c, | ||
1138 | 0xea, | ||
1139 | 0x32, | ||
1140 | 0x27, | ||
1141 | 0xf1, | ||
1142 | 0xfa, | ||
1143 | 0xe2, | ||
1144 | 0xb0, | ||
1145 | 0xec, | ||
1146 | 0x0b, | ||
1147 | 0x15, | ||
1148 | 0xb4, | ||
1149 | 0x70, | ||
1150 | 0xf6, | ||
1151 | 0x5c, | ||
1152 | 0xdd, | ||
1153 | 0x71, | ||
1154 | 0x60, | ||
1155 | 0xc3, | ||
1156 | 0xc1, | ||
1157 | 0xa8, | ||
1158 | 0x32, | ||
1159 | 0x65, | ||
1160 | 0xac, | ||
1161 | 0x7a, | ||
1162 | 0x77, | ||
1163 | 0x41, | ||
1164 | 0xe5, | ||
1165 | 0xa9, | ||
1166 | 0x6b, | ||
1167 | 0x11, | ||
1168 | 0x81, | ||
1169 | 0xfa, | ||
1170 | 0x34, | ||
1171 | 0x8d, | ||
1172 | 0xfb, | ||
1173 | 0xc1, | ||
1174 | 0x80, | ||
1175 | 0x6e, | ||
1176 | 0xc4, | ||
1177 | 0x60, | ||
1178 | 0x30, | ||
1179 | 0x07, | ||
1180 | 0xd4, | ||
1181 | 0x8b, | ||
1182 | 0x67, | ||
1183 | 0xbd, | ||
1184 | 0xaa, | ||
1185 | 0x8c, | ||
1186 | 0x9c, | ||
1187 | 0x64, | ||
1188 | 0xac, | ||
1189 | 0xdb, | ||
1190 | 0x0b, | ||
1191 | 0x24, | ||
1192 | 0x8b, | ||
1193 | 0x63, | ||
1194 | 0x6f, | ||
1195 | 0xe6, | ||
1196 | 0xbc, | ||
1197 | 0xe7, | ||
1198 | 0x33, | ||
1199 | 0xa4, | ||
1200 | 0x4a, | ||
1201 | 0x4c, | ||
1202 | 0xa7, | ||
1203 | 0x9f, | ||
1204 | 0x43, | ||
1205 | 0x53, | ||
1206 | 0xd2, | ||
1207 | 0xbb, | ||
1208 | 0x8f, | ||
1209 | 0x43, | ||
1210 | 0xc7, | ||
1211 | 0x3d, | ||
1212 | 0x78, | ||
1213 | 0x68, | ||
1214 | 0x3f, | ||
1215 | 0xa5, | ||
1216 | 0x3d, | ||
1217 | 0xca, | ||
1218 | 0x69, | ||
1219 | 0x84, | ||
1220 | 0xa6, | ||
1221 | 0x97, | ||
1222 | 0x2d, | ||
1223 | 0xc0, | ||
1224 | 0x7d, | ||
1225 | 0x31, | ||
1226 | 0x34, | ||
1227 | 0x55, | ||
1228 | 0x1d, | ||
1229 | 0x07, | ||
1230 | 0xb1, | ||
1231 | 0x5f, | ||
1232 | 0x40, | ||
1233 | 0x5c, | ||
1234 | 0x93, | ||
1235 | 0xb0, | ||
1236 | 0xbc, | ||
1237 | 0x7c, | ||
1238 | 0xb0, | ||
1239 | 0xbc, | ||
1240 | 0xe7, | ||
1241 | 0x12, | ||
1242 | 0xee, | ||
1243 | 0x6b, | ||
1244 | 0x2b, | ||
1245 | 0xd3, | ||
1246 | 0x4d, | ||
1247 | 0x67, | ||
1248 | 0x70, | ||
1249 | 0x3a, | ||
1250 | 0x9a, | ||
1251 | 0xf2, | ||
1252 | 0x3c, | ||
1253 | 0x7c, | ||
1254 | 0x81, | ||
1255 | 0xfa, | ||
1256 | 0xd7, | ||
1257 | 0xd9, | ||
1258 | 0x90, | ||
1259 | 0x91, | ||
1260 | 0x81, | ||
1261 | 0xb8, | ||
1262 | 0xb1, | ||
1263 | 0xf3, | ||
1264 | 0x48, | ||
1265 | 0x6a, | ||
1266 | 0x26, | ||
1267 | 0x4f, | ||
1268 | 0x0c, | ||
1269 | 0xce, | ||
1270 | 0xb0, | ||
1271 | 0x9e, | ||
1272 | 0xfd, | ||
1273 | 0x4a, | ||
1274 | 0x3a, | ||
1275 | 0xaf, | ||
1276 | 0xac, | ||
1277 | 0x5b, | ||
1278 | 0x3f, | ||
1279 | 0xbf, | ||
1280 | 0x44, | ||
1281 | 0x5a, | ||
1282 | 0xa3, | ||
1283 | 0x19, | ||
1284 | 0x1e, | ||
1285 | 0x4b, | ||
1286 | 0xe7, | ||
1287 | 0x36, | ||
1288 | 0x6a, | ||
1289 | 0xd7, | ||
1290 | 0x20, | ||
1291 | 0xae, | ||
1292 | 0xd7, | ||
1293 | 0x7d, | ||
1294 | 0x3b, | ||
1295 | 0xe7, | ||
1296 | 0xff, | ||
1297 | 0x3a, | ||
1298 | 0x86, | ||
1299 | 0x2e, | ||
1300 | 0xd0, | ||
1301 | 0x4a, | ||
1302 | 0x3e, | ||
1303 | 0xaf, | ||
1304 | 0x9f, | ||
1305 | 0x8e, | ||
1306 | 0x01, | ||
1307 | 0xbf, | ||
1308 | 0xf8, | ||
1309 | 0x4f, | ||
1310 | 0xc1, | ||
1311 | 0xe8, | ||
1312 | 0x6f, | ||
1313 | 0x74, | ||
1314 | 0xe1, | ||
1315 | 0x45, | ||
1316 | 0xd3, | ||
1317 | 0xf7, | ||
1318 | 0x04, | ||
1319 | 0x6a, | ||
1320 | 0x4b, | ||
1321 | 0x9d, | ||
1322 | 0xec, | ||
1323 | 0x33, | ||
1324 | 0x27, | ||
1325 | 0x76, | ||
1326 | 0xd7, | ||
1327 | 0xc5, | ||
1328 | 0xe1, | ||
1329 | 0xb0, | ||
1330 | 0x3b, | ||
1331 | 0x0e, | ||
1332 | 0x23, | ||
1333 | 0xec, | ||
1334 | 0xf0, | ||
1335 | 0x86, | ||
1336 | 0xd2, | ||
1337 | 0x1a, | ||
1338 | 0xbf, | ||
1339 | 0x3d, | ||
1340 | 0x04, | ||
1341 | 0x62, | ||
1342 | 0xb3, | ||
1343 | 0x6c, | ||
1344 | 0xb2, | ||
1345 | 0xeb, | ||
1346 | 0x17, | ||
1347 | 0x05, | ||
1348 | 0xa6, | ||
1349 | 0x0a, | ||
1350 | 0x8a, | ||
1351 | 0x7e, | ||
1352 | 0x83, | ||
1353 | 0x1c, | ||
1354 | 0xb6, | ||
1355 | 0x37, | ||
1356 | 0x09, | ||
1357 | 0xc6, | ||
1358 | 0x0b, | ||
1359 | 0x70, | ||
1360 | 0x3c, | ||
1361 | 0xb5, | ||
1362 | 0x93, | ||
1363 | 0x81, | ||
1364 | 0xd8, | ||
1365 | 0x93, | ||
1366 | 0xa0, | ||
1367 | 0x5f, | ||
1368 | 0x1e, | ||
1369 | 0x08, | ||
1370 | 0xe2, | ||
1371 | 0xc6, | ||
1372 | 0xe5, | ||
1373 | 0xc9, | ||
1374 | 0x72, | ||
1375 | 0xf1, | ||
1376 | 0xf1, | ||
1377 | 0xc1, | ||
1378 | 0xed, | ||
1379 | 0xd5, | ||
1380 | 0x58, | ||
1381 | 0x93, | ||
1382 | 0x83, | ||
1383 | 0xf8, | ||
1384 | 0x65, | ||
1385 | 0x67, | ||
1386 | 0x2e, | ||
1387 | 0x0d, | ||
1388 | 0xa9, | ||
1389 | 0xf1, | ||
1390 | 0x64, | ||
1391 | 0x12, | ||
1392 | 0xe6, | ||
1393 | 0x4c, | ||
1394 | 0xea, | ||
1395 | 0x15, | ||
1396 | 0x3f, | ||
1397 | 0x8c, | ||
1398 | 0x1a, | ||
1399 | 0xb6, | ||
1400 | 0xbf, | ||
1401 | 0xf6, | ||
1402 | 0xb9, | ||
1403 | 0x52, | ||
1404 | 0x35, | ||
1405 | 0x09, | ||
1406 | 0xb0, | ||
1407 | 0xe6, | ||
1408 | 0xf7, | ||
1409 | 0xcd, | ||
1410 | 0xf1, | ||
1411 | 0xa5, | ||
1412 | 0xaa, | ||
1413 | 0x81, | ||
1414 | 0xd1, | ||
1415 | 0x81, | ||
1416 | 0x6f, | ||
1417 | 0xb4, | ||
1418 | 0xa9, | ||
1419 | 0x66, | ||
1420 | 0x1f, | ||
1421 | 0xfc, | ||
1422 | 0x48, | ||
1423 | 0xc0, | ||
1424 | 0xb6, | ||
1425 | 0xd1, | ||
1426 | 0x8b, | ||
1427 | 0x06, | ||
1428 | 0x2f, | ||
1429 | 0xf6, | ||
1430 | 0xef, | ||
1431 | 0x1f, | ||
1432 | 0x0a, | ||
1433 | 0xe6, | ||
1434 | 0xce, | ||
1435 | 0x3a, | ||
1436 | 0x4a, | ||
1437 | 0x55, | ||
1438 | 0xbf, | ||
1439 | 0x6d, | ||
1440 | 0xf9, | ||
1441 | 0x4d, | ||
1442 | 0xd4, | ||
1443 | 0x08, | ||
1444 | 0x45, | ||
1445 | 0x4b, | ||
1446 | 0xc3, | ||
1447 | 0x66, | ||
1448 | 0x19, | ||
1449 | 0x92, | ||
1450 | 0x10, | ||
1451 | 0xe1, | ||
1452 | 0x17, | ||
1453 | 0x8e, | ||
1454 | 0x28, | ||
1455 | 0x91, | ||
1456 | 0x16, | ||
1457 | 0xbf, | ||
1458 | 0x3c, | ||
1459 | 0xee, | ||
1460 | 0xa3, | ||
1461 | 0xa6, | ||
1462 | 0x99, | ||
1463 | 0x92, | ||
1464 | 0x10, | ||
1465 | 0xe1, | ||
1466 | 0xf6, | ||
1467 | 0xcc, | ||
1468 | 0xac, | ||
1469 | 0xb8, | ||
1470 | 0x65, | ||
1471 | 0x0b, | ||
1472 | 0x43, | ||
1473 | 0x66, | ||
1474 | 0xf8, | ||
1475 | 0xe3, | ||
1476 | 0xe5, | ||
1477 | 0x3f, | ||
1478 | 0x24, | ||
1479 | 0x89, | ||
1480 | 0x47, | ||
1481 | 0x5d, | ||
1482 | 0x78, | ||
1483 | 0x43, | ||
1484 | 0xd0, | ||
1485 | 0x61, | ||
1486 | 0x17, | ||
1487 | 0xbd, | ||
1488 | 0x5b, | ||
1489 | 0x64, | ||
1490 | 0x54, | ||
1491 | 0x08, | ||
1492 | 0x45, | ||
1493 | 0x59, | ||
1494 | 0x93, | ||
1495 | 0xf6, | ||
1496 | 0x95, | ||
1497 | 0x8a, | ||
1498 | 0x41, | ||
1499 | 0x51, | ||
1500 | 0x62, | ||
1501 | 0x4b, | ||
1502 | 0x51, | ||
1503 | 0x02, | ||
1504 | 0x30, | ||
1505 | 0x73, | ||
1506 | 0xc7, | ||
1507 | 0x87, | ||
1508 | 0xc5, | ||
1509 | 0x4b, | ||
1510 | 0xa2, | ||
1511 | 0x97, | ||
1512 | 0x0f, | ||
1513 | 0xe8, | ||
1514 | 0x46, | ||
1515 | 0x5f, | ||
1516 | 0x7e, | ||
1517 | 0x2a, | ||
1518 | 0xe1, | ||
1519 | 0x30, | ||
1520 | 0x20, | ||
1521 | 0xb0, | ||
1522 | 0xfa, | ||
1523 | 0xe7, | ||
1524 | 0xce, | ||
1525 | 0x61, | ||
1526 | 0x42, | ||
1527 | 0x57, | ||
1528 | 0x6e, | ||
1529 | 0x21, | ||
1530 | 0xf3, | ||
1531 | 0x7a, | ||
1532 | 0xec, | ||
1533 | 0xe3, | ||
1534 | 0x25, | ||
1535 | 0xc7, | ||
1536 | 0x25, | ||
1537 | 0xf3, | ||
1538 | 0x67, | ||
1539 | 0xa7, | ||
1540 | 0x57, | ||
1541 | 0x40, | ||
1542 | 0x00, | ||
1543 | 0x02, | ||
1544 | 0xcf, | ||
1545 | 0x1c, | ||
1546 | 0x80, | ||
1547 | 0x77, | ||
1548 | 0x67, | ||
1549 | 0xbd, | ||
1550 | 0x70, | ||
1551 | 0xa1, | ||
1552 | 0x19, | ||
1553 | 0x92, | ||
1554 | 0x31, | ||
1555 | 0x75, | ||
1556 | 0x93, | ||
1557 | 0x27, | ||
1558 | 0x27, | ||
1559 | 0xb6, | ||
1560 | 0x82, | ||
1561 | 0xe4, | ||
1562 | 0xeb, | ||
1563 | 0x1d, | ||
1564 | 0x78, | ||
1565 | 0x48, | ||
1566 | 0xe7, | ||
1567 | 0xa5, | ||
1568 | 0x5e, | ||
1569 | 0x57, | ||
1570 | 0xef, | ||
1571 | 0x64, | ||
1572 | 0x28, | ||
1573 | 0x64, | ||
1574 | 0x1b, | ||
1575 | 0xf6, | ||
1576 | 0x11, | ||
1577 | 0xb2, | ||
1578 | 0x03, | ||
1579 | 0x9d, | ||
1580 | 0xb9, | ||
1581 | 0x18, | ||
1582 | 0x02, | ||
1583 | 0x27, | ||
1584 | 0xf7, | ||
1585 | 0xbe, | ||
1586 | 0x9d, | ||
1587 | 0x55, | ||
1588 | 0xfc, | ||
1589 | 0x00, | ||
1590 | 0xd2, | ||
1591 | 0xc7, | ||
1592 | 0xae, | ||
1593 | 0xad, | ||
1594 | 0x0b, | ||
1595 | 0xc5, | ||
1596 | 0xe9, | ||
1597 | 0x42, | ||
1598 | 0x41, | ||
1599 | 0x48, | ||
1600 | 0xd8, | ||
1601 | 0x32, | ||
1602 | 0xcf, | ||
1603 | 0xf6, | ||
1604 | 0x0f, | ||
1605 | 0xf5, | ||
1606 | 0xbc, | ||
1607 | 0x97, | ||
1608 | 0xc6, | ||
1609 | 0x99, | ||
1610 | 0x47, | ||
1611 | 0x76, | ||
1612 | 0xbd, | ||
1613 | 0x89, | ||
1614 | 0x06, | ||
1615 | 0x0f, | ||
1616 | 0x63, | ||
1617 | 0x0c, | ||
1618 | 0x51, | ||
1619 | 0xd4, | ||
1620 | 0x5e, | ||
1621 | 0xea, | ||
1622 | 0x48, | ||
1623 | 0xa8, | ||
1624 | 0xa2, | ||
1625 | 0x56, | ||
1626 | 0x1c, | ||
1627 | 0x79, | ||
1628 | 0x84, | ||
1629 | 0x86, | ||
1630 | 0x40, | ||
1631 | 0x88, | ||
1632 | 0x41, | ||
1633 | 0x76, | ||
1634 | 0x55, | ||
1635 | 0xfc, | ||
1636 | 0xc2, | ||
1637 | 0xd7, | ||
1638 | 0xfd, | ||
1639 | 0xc9, | ||
1640 | 0xc7, | ||
1641 | 0x80, | ||
1642 | 0x61, | ||
1643 | 0x35, | ||
1644 | 0xa7, | ||
1645 | 0x43, | ||
1646 | 0x20, | ||
1647 | 0xf7, | ||
1648 | 0xeb, | ||
1649 | 0x6c, | ||
1650 | 0x66, | ||
1651 | 0x13, | ||
1652 | 0xb0, | ||
1653 | 0xec, | ||
1654 | 0x02, | ||
1655 | 0x75, | ||
1656 | 0x3e, | ||
1657 | 0x4b, | ||
1658 | 0xaf, | ||
1659 | 0xb9, | ||
1660 | 0x5d, | ||
1661 | 0x40, | ||
1662 | 0xda, | ||
1663 | 0xd6, | ||
1664 | 0x6e, | ||
1665 | 0x2d, | ||
1666 | 0x39, | ||
1667 | 0x54, | ||
1668 | 0xc2, | ||
1669 | 0x95, | ||
1670 | 0x35, | ||
1671 | 0x54, | ||
1672 | 0x25, | ||
1673 | 0x72, | ||
1674 | 0xe1, | ||
1675 | 0x78, | ||
1676 | 0xb8, | ||
1677 | 0xeb, | ||
1678 | 0xc1, | ||
1679 | 0x16, | ||
1680 | 0x58, | ||
1681 | 0x0f, | ||
1682 | 0x9c, | ||
1683 | 0x9b, | ||
1684 | 0xb4, | ||
1685 | 0xea, | ||
1686 | 0x37, | ||
1687 | 0xec, | ||
1688 | 0x3b, | ||
1689 | 0x11, | ||
1690 | 0xba, | ||
1691 | 0xd5, | ||
1692 | 0x8a, | ||
1693 | 0xa9, | ||
1694 | 0xe3, | ||
1695 | 0x98, | ||
1696 | 0x00, | ||
1697 | 0x51, | ||
1698 | 0x1c, | ||
1699 | 0x14, | ||
1700 | 0xe0, | ||
1701 | 0x40, | ||
1702 | 0x96, | ||
1703 | 0xe5, | ||
1704 | 0xe9, | ||
1705 | 0xf2, | ||
1706 | 0x21, | ||
1707 | 0x22, | ||
1708 | 0xb1, | ||
1709 | 0x23, | ||
1710 | 0x60, | ||
1711 | 0x78, | ||
1712 | 0xd3, | ||
1713 | 0x17, | ||
1714 | 0xf8, | ||
1715 | 0x7a, | ||
1716 | 0xa5, | ||
1717 | 0xa8, | ||
1718 | 0xba, | ||
1719 | 0x20, | ||
1720 | 0xd3, | ||
1721 | 0x15, | ||
1722 | 0x1e, | ||
1723 | 0x32, | ||
1724 | 0xe4, | ||
1725 | 0x5e, | ||
1726 | 0x15, | ||
1727 | 0x48, | ||
1728 | 0xae, | ||
1729 | 0xa9, | ||
1730 | 0xe5, | ||
1731 | 0xb8, | ||
1732 | 0x33, | ||
1733 | 0xec, | ||
1734 | 0xe8, | ||
1735 | 0xa2, | ||
1736 | 0x42, | ||
1737 | 0xac, | ||
1738 | 0xbf, | ||
1739 | 0x10, | ||
1740 | 0x84, | ||
1741 | 0x53, | ||
1742 | 0x87, | ||
1743 | 0x19, | ||
1744 | 0xb4, | ||
1745 | 0x5f, | ||
1746 | 0x76, | ||
1747 | 0x4d, | ||
1748 | 0x01, | ||
1749 | 0x9d, | ||
1750 | 0x56, | ||
1751 | 0x74, | ||
1752 | 0xd9, | ||
1753 | 0x5c, | ||
1754 | 0x97, | ||
1755 | 0xe7, | ||
1756 | 0x88, | ||
1757 | 0xea, | ||
1758 | 0x3a, | ||
1759 | 0xbf, | ||
1760 | 0xdc, | ||
1761 | 0x4c, | ||
1762 | 0x33, | ||
1763 | 0x8a, | ||
1764 | 0x16, | ||
1765 | 0xb9, | ||
1766 | 0x5b, | ||
1767 | 0xfa, | ||
1768 | 0xd8, | ||
1769 | 0x42, | ||
1770 | 0xa7, | ||
1771 | 0xbb, | ||
1772 | 0x3c, | ||
1773 | 0x04, | ||
1774 | 0x27, | ||
1775 | 0x78, | ||
1776 | 0x49, | ||
1777 | 0x81, | ||
1778 | 0x2a, | ||
1779 | 0x5a, | ||
1780 | 0x7d, | ||
1781 | 0x7c, | ||
1782 | 0x23, | ||
1783 | 0xa8, | ||
1784 | 0xba, | ||
1785 | 0xf7, | ||
1786 | 0x9a, | ||
1787 | 0x9f, | ||
1788 | 0xd2, | ||
1789 | 0x66, | ||
1790 | 0x3e, | ||
1791 | 0x38, | ||
1792 | 0x3c, | ||
1793 | 0x75, | ||
1794 | 0xf9, | ||
1795 | 0xd1, | ||
1796 | 0x30, | ||
1797 | 0x26, | ||
1798 | 0x30, | ||
1799 | 0x6e, | ||
1800 | 0x5a, | ||
1801 | 0x6e, | ||
1802 | 0xdc, | ||
1803 | 0x6a, | ||
1804 | 0x69, | ||
1805 | 0x32, | ||
1806 | 0x50, | ||
1807 | 0x33, | ||
1808 | 0x47, | ||
1809 | 0x9e, | ||
1810 | 0xa4, | ||
1811 | 0xa8, | ||
1812 | 0x64, | ||
1813 | 0x66, | ||
1814 | 0xf0, | ||
1815 | 0x8a, | ||
1816 | 0xe4, | ||
1817 | 0xfd, | ||
1818 | 0x27, | ||
1819 | 0x6f, | ||
1820 | 0x51, | ||
1821 | 0x25, | ||
1822 | 0x8b, | ||
1823 | 0x43, | ||
1824 | 0x74, | ||
1825 | 0xc9, | ||
1826 | 0x8e, | ||
1827 | 0xbd, | ||
1828 | 0x88, | ||
1829 | 0x31, | ||
1830 | 0xbe, | ||
1831 | 0xec, | ||
1832 | 0x65, | ||
1833 | 0xd2, | ||
1834 | 0xcb, | ||
1835 | 0x8d, | ||
1836 | 0x5a, | ||
1837 | 0x13, | ||
1838 | 0x48, | ||
1839 | 0x16, | ||
1840 | 0x8c, | ||
1841 | 0x61, | ||
1842 | 0x0b, | ||
1843 | 0x11, | ||
1844 | 0xf6, | ||
1845 | 0xc6, | ||
1846 | 0x66, | ||
1847 | 0xae, | ||
1848 | 0xc3, | ||
1849 | 0xcc, | ||
1850 | 0x0c, | ||
1851 | 0xd2, | ||
1852 | 0xe1, | ||
1853 | 0x9f, | ||
1854 | 0x82, | ||
1855 | 0x41, | ||
1856 | 0x3f, | ||
1857 | 0x56, | ||
1858 | 0xf9, | ||
1859 | 0x73, | ||
1860 | 0xef, | ||
1861 | 0xdc, | ||
1862 | 0x30, | ||
1863 | 0x50, | ||
1864 | 0xcf, | ||
1865 | 0xb6, | ||
1866 | 0x7f, | ||
1867 | 0xbc, | ||
1868 | 0xd0, | ||
1869 | 0xb3, | ||
1870 | 0x10, | ||
1871 | 0xab, | ||
1872 | 0x24, | ||
1873 | 0xe4, | ||
1874 | 0xec, | ||
1875 | 0xad, | ||
1876 | 0x18, | ||
1877 | 0x8c, | ||
1878 | 0x39, | ||
1879 | 0x2d, | ||
1880 | 0x30, | ||
1881 | 0x4c, | ||
1882 | 0xc5, | ||
1883 | 0x40, | ||
1884 | 0x0d, | ||
1885 | 0xf6, | ||
1886 | 0xac, | ||
1887 | 0xd6, | ||
1888 | 0x18, | ||
1889 | 0x5d, | ||
1890 | 0x96, | ||
1891 | 0xbf, | ||
1892 | 0x5f, | ||
1893 | 0x71, | ||
1894 | 0x75, | ||
1895 | 0x96, | ||
1896 | 0x22, | ||
1897 | 0x97, | ||
1898 | 0x0f, | ||
1899 | 0x02, | ||
1900 | 0x94, | ||
1901 | 0x6e, | ||
1902 | 0xa6, | ||
1903 | 0xae, | ||
1904 | 0x6d, | ||
1905 | 0x8f, | ||
1906 | 0x1e, | ||
1907 | 0xca, | ||
1908 | 0x12, | ||
1909 | 0x9b, | ||
1910 | 0x2a, | ||
1911 | 0x1c, | ||
1912 | 0xce, | ||
1913 | 0xa9, | ||
1914 | 0xee, | ||
1915 | 0xfd, | ||
1916 | 0x12, | ||
1917 | 0x8e, | ||
1918 | 0xfc, | ||
1919 | 0xed, | ||
1920 | 0x09, | ||
1921 | 0x33, | ||
1922 | 0xba, | ||
1923 | 0xf4, | ||
1924 | 0x1a, | ||
1925 | 0x15, | ||
1926 | 0xf6, | ||
1927 | 0x9d, | ||
1928 | 0x87, | ||
1929 | 0x16, | ||
1930 | 0x43, | ||
1931 | 0x7c, | ||
1932 | 0x78, | ||
1933 | 0x57, | ||
1934 | 0xe1, | ||
1935 | 0x44, | ||
1936 | 0xc9, | ||
1937 | 0xeb, | ||
1938 | 0x1f, | ||
1939 | 0x58, | ||
1940 | 0x4d, | ||
1941 | 0xc1, | ||
1942 | 0x49, | ||
1943 | 0x11, | ||
1944 | 0x5c, | ||
1945 | 0xb2, | ||
1946 | 0x11, | ||
1947 | 0xa8, | ||
1948 | 0x55, | ||
1949 | 0x16, | ||
1950 | 0xf1, | ||
1951 | 0xc6, | ||
1952 | 0x50, | ||
1953 | 0xe9, | ||
1954 | 0x87, | ||
1955 | 0x89, | ||
1956 | 0xf6, | ||
1957 | 0xcf, | ||
1958 | 0xd8, | ||
1959 | 0x9c, | ||
1960 | 0x51, | ||
1961 | 0xa7, | ||
1962 | 0xbc, | ||
1963 | 0x5b, | ||
1964 | 0x31, | ||
1965 | 0x6d, | ||
1966 | 0x4d, | ||
1967 | 0x51, | ||
1968 | 0xd0, | ||
1969 | 0x4c, | ||
1970 | 0xbc, | ||
1971 | 0x0d, | ||
1972 | 0x58, | ||
1973 | 0x2d, | ||
1974 | 0x7b, | ||
1975 | 0x88, | ||
1976 | 0x7a, | ||
1977 | 0xf9, | ||
1978 | 0x8e, | ||
1979 | 0xd6, | ||
1980 | 0x40, | ||
1981 | 0x4d, | ||
1982 | 0xbb, | ||
1983 | 0xbe, | ||
1984 | 0xc4, | ||
1985 | 0xe5, | ||
1986 | 0x07, | ||
1987 | 0xfc, | ||
1988 | 0xd9, | ||
1989 | 0x7b, | ||
1990 | 0x6d, | ||
1991 | 0xa6, | ||
1992 | 0x42, | ||
1993 | 0x57, | ||
1994 | 0x8f, | ||
1995 | 0x02, | ||
1996 | 0x94, | ||
1997 | 0x4f, | ||
1998 | 0xe4, | ||
1999 | 0x2a, | ||
2000 | 0x65, | ||
2001 | 0xe2, | ||
2002 | 0x19, | ||
2003 | 0x5a, | ||
2004 | 0x50, | ||
2005 | 0xe1, | ||
2006 | 0x25, | ||
2007 | 0x65, | ||
2008 | 0x4a, | ||
2009 | 0x60, | ||
2010 | 0xc2, | ||
2011 | 0xcd, | ||
2012 | 0xa8, | ||
2013 | 0xec, | ||
2014 | 0x05, | ||
2015 | 0x2e, | ||
2016 | 0x87, | ||
2017 | 0x7b, | ||
2018 | 0x95, | ||
2019 | 0xb7, | ||
2020 | 0x4f, | ||
2021 | 0xa0, | ||
2022 | 0x0b, | ||
2023 | 0x1b, | ||
2024 | 0x4a, | ||
2025 | 0x7f, | ||
2026 | 0x92, | ||
2027 | 0xc8, | ||
2028 | 0x90, | ||
2029 | 0xee, | ||
2030 | 0x89, | ||
2031 | 0x1e, | ||
2032 | 0x10, | ||
2033 | 0xd2, | ||
2034 | 0x85, | ||
2035 | 0xe4, | ||
2036 | 0x9f, | ||
2037 | 0x63, | ||
2038 | 0xc8, | ||
2039 | 0x12, | ||
2040 | 0xbb, | ||
2041 | 0x4e, | ||
2042 | 0xb8, | ||
2043 | 0xcf, | ||
2044 | 0x0a, | ||
2045 | 0xec, | ||
2046 | 0x18, | ||
2047 | 0x4e, | ||
2048 | 0xe6, | ||
2049 | 0x7c, | ||
2050 | 0xb3, | ||
2051 | 0x33, | ||
2052 | 0x26, | ||
2053 | 0xc7, | ||
2054 | 0x1f, | ||
2055 | 0xd2, | ||
2056 | 0x04, | ||
2057 | 0x23, | ||
2058 | 0xea, | ||
2059 | 0x07, | ||
2060 | 0x0c, | ||
2061 | 0x5f, | ||
2062 | 0x90, | ||
2063 | 0xbd, | ||
2064 | 0xa7, | ||
2065 | 0x6a, | ||
2066 | 0x0f, | ||
2067 | 0x4a, | ||
2068 | 0xd6, | ||
2069 | 0x10, | ||
2070 | 0x01, | ||
2071 | 0x3c, | ||
2072 | 0x12, | ||
2073 | 0x29, | ||
2074 | 0x2e, | ||
2075 | 0x96, | ||
2076 | 0xc0, | ||
2077 | 0x4d, | ||
2078 | 0xbb, | ||
2079 | 0xbe, | ||
2080 | 0xe5, | ||
2081 | 0xa7, | ||
2082 | 0x83, | ||
2083 | 0xd5, | ||
2084 | 0x6a, | ||
2085 | 0x3c, | ||
2086 | 0xe3, | ||
2087 | 0x5b, | ||
2088 | 0xb8, | ||
2089 | 0xf2, | ||
2090 | 0x5c, | ||
2091 | 0x6d, | ||
2092 | 0x1f, | ||
2093 | 0xa6, | ||
2094 | 0xf3, | ||
2095 | 0x12, | ||
2096 | 0x24, | ||
2097 | 0xf6, | ||
2098 | 0xd6, | ||
2099 | 0x3b, | ||
2100 | 0x10, | ||
2101 | 0x14, | ||
2102 | 0x09, | ||
2103 | 0x07, | ||
2104 | 0x82, | ||
2105 | 0xe8, | ||
2106 | 0x30, | ||
2107 | 0x6a, | ||
2108 | 0x99, | ||
2109 | 0xdc, | ||
2110 | 0x95, | ||
2111 | 0x01, | ||
2112 | 0x9c, | ||
2113 | 0xd4, | ||
2114 | 0x68, | ||
2115 | 0x3b, | ||
2116 | 0xca, | ||
2117 | 0x98, | ||
2118 | 0x12, | ||
2119 | 0xab, | ||
2120 | 0x77, | ||
2121 | 0x25, | ||
2122 | 0x15, | ||
2123 | 0x7d, | ||
2124 | 0x10, | ||
2125 | 0x32, | ||
2126 | 0x45, | ||
2127 | 0x98, | ||
2128 | 0xcd, | ||
2129 | 0x7a, | ||
2130 | 0xdf, | ||
2131 | 0x71, | ||
2132 | 0x8a, | ||
2133 | 0x75, | ||
2134 | 0xc1, | ||
2135 | 0x1c, | ||
2136 | 0xd4, | ||
2137 | 0x68, | ||
2138 | 0x25, | ||
2139 | 0xeb, | ||
2140 | 0xbb, | ||
2141 | 0x54, | ||
2142 | 0x27, | ||
2143 | 0x6f, | ||
2144 | 0x2a, | ||
2145 | 0xf7, | ||
2146 | 0xb9, | ||
2147 | 0x98, | ||
2148 | 0x03, | ||
2149 | 0x27, | ||
2150 | 0xde, | ||
2151 | 0x24, | ||
2152 | 0xa8, | ||
2153 | 0xbb, | ||
2154 | 0x98, | ||
2155 | 0xc2, | ||
2156 | 0x84, | ||
2157 | 0xff, | ||
2158 | 0x9b, | ||
2159 | 0x51, | ||
2160 | 0xd8, | ||
2161 | 0x53, | ||
2162 | 0x50, | ||
2163 | 0xda, | ||
2164 | 0xf5, | ||
2165 | 0x88, | ||
2166 | 0xaa, | ||
2167 | 0x87, | ||
2168 | 0x2f, | ||
2169 | 0xae, | ||
2170 | 0xd6, | ||
2171 | 0xea, | ||
2172 | 0x6b, | ||
2173 | 0xde, | ||
2174 | 0xc8, | ||
2175 | 0xd7, | ||
2176 | 0xa7, | ||
2177 | 0x28, | ||
2178 | 0x65, | ||
2179 | 0x81, | ||
2180 | 0xe8, | ||
2181 | 0xb2, | ||
2182 | 0x3b, | ||
2183 | 0x1d, | ||
2184 | 0x4f, | ||
2185 | 0x75, | ||
2186 | 0x8f, | ||
2187 | 0x9f, | ||
2188 | 0x7a, | ||
2189 | 0x74, | ||
2190 | 0x8e, | ||
2191 | 0xc1, | ||
2192 | 0x5f, | ||
2193 | 0x9a, | ||
2194 | 0xa8, | ||
2195 | 0x9d, | ||
2196 | 0xfa, | ||
2197 | 0x03, | ||
2198 | 0xa3, | ||
2199 | 0x71, | ||
2200 | 0x9b, | ||
2201 | 0x37, | ||
2202 | 0x6d, | ||
2203 | 0xd5, | ||
2204 | 0x0b, | ||
2205 | 0xf5, | ||
2206 | 0xe1, | ||
2207 | 0xa1, | ||
2208 | 0x1b, | ||
2209 | 0x01, | ||
2210 | 0x6a, | ||
2211 | 0xc6, | ||
2212 | 0x67, | ||
2213 | 0xaa, | ||
2214 | 0xea, | ||
2215 | 0x2c, | ||
2216 | 0x9d, | ||
2217 | 0xa4, | ||
2218 | 0xd2, | ||
2219 | 0x6e, | ||
2220 | 0xfc, | ||
2221 | 0xde, | ||
2222 | 0x2e, | ||
2223 | 0x7f, | ||
2224 | 0x94, | ||
2225 | 0x69, | ||
2226 | 0xe5, | ||
2227 | 0x4a, | ||
2228 | 0xe0, | ||
2229 | 0x01, | ||
2230 | 0x48, | ||
2231 | 0x3c, | ||
2232 | 0x6b, | ||
2233 | 0xf7, | ||
2234 | 0x1e, | ||
2235 | 0xb6, | ||
2236 | 0x0b, | ||
2237 | 0x5f, | ||
2238 | 0xf9, | ||
2239 | 0x2e, | ||
2240 | 0x07, | ||
2241 | 0xc5, | ||
2242 | 0xe8, | ||
2243 | 0xae, | ||
2244 | 0x37, | ||
2245 | 0x1b, | ||
2246 | 0xbc, | ||
2247 | 0x3c, | ||
2248 | 0xd8, | ||
2249 | 0xd5, | ||
2250 | 0x0b, | ||
2251 | 0x91, | ||
2252 | 0x9e, | ||
2253 | 0x80, | ||
2254 | 0x24, | ||
2255 | 0xf5, | ||
2256 | 0x06, | ||
2257 | 0x0c, | ||
2258 | 0x0e, | ||
2259 | 0x98, | ||
2260 | 0x07, | ||
2261 | 0x96, | ||
2262 | 0x2d, | ||
2263 | 0x19, | ||
2264 | 0xdc, | ||
2265 | 0x58, | ||
2266 | 0x93, | ||
2267 | 0xcc, | ||
2268 | 0xfb, | ||
2269 | 0x4e, | ||
2270 | 0xeb, | ||
2271 | 0xbd, | ||
2272 | 0x0f, | ||
2273 | 0xf5, | ||
2274 | 0xaf, | ||
2275 | 0x01, | ||
2276 | 0xfa, | ||
2277 | 0xf1, | ||
2278 | 0x7c, | ||
2279 | 0x43, | ||
2280 | 0x8c, | ||
2281 | 0xb8, | ||
2282 | 0x56, | ||
2283 | 0x3e, | ||
2284 | 0xbe, | ||
2285 | 0x77, | ||
2286 | 0x4e, | ||
2287 | 0x2b, | ||
2288 | 0xf7, | ||
2289 | 0xbb, | ||
2290 | 0xb7, | ||
2291 | 0x45, | ||
2292 | 0x47, | ||
2293 | 0xcd, | ||
2294 | 0xcc, | ||
2295 | 0xa6, | ||
2296 | 0x4c, | ||
2297 | 0x72, | ||
2298 | 0x7b, | ||
2299 | 0x6a, | ||
2300 | 0x2a, | ||
2301 | 0x70, | ||
2302 | 0x13, | ||
2303 | 0x07, | ||
2304 | 0xfd, | ||
2305 | 0xb8, | ||
2306 | 0x9c, | ||
2307 | 0x98, | ||
2308 | 0x3a, | ||
2309 | 0xd8, | ||
2310 | 0x23, | ||
2311 | 0x67, | ||
2312 | 0x5b, | ||
2313 | 0x34, | ||
2314 | 0xd5, | ||
2315 | 0x14, | ||
2316 | 0x0c, | ||
2317 | 0xab, | ||
2318 | 0x77, | ||
2319 | 0x1f, | ||
2320 | 0xf8, | ||
2321 | 0x3d, | ||
2322 | 0x5a, | ||
2323 | 0x9f, | ||
2324 | 0x92, | ||
2325 | 0xb7, | ||
2326 | 0x2c, | ||
2327 | 0xad, | ||
2328 | 0x31, | ||
2329 | 0xde, | ||
2330 | 0x61, | ||
2331 | 0x07, | ||
2332 | 0xb3, | ||
2333 | 0x6b, | ||
2334 | 0xf7, | ||
2335 | 0x38, | ||
2336 | 0x15, | ||
2337 | 0x95, | ||
2338 | 0x46, | ||
2339 | 0x14, | ||
2340 | 0x48, | ||
2341 | 0x53, | ||
2342 | 0x69, | ||
2343 | 0x52, | ||
2344 | 0x66, | ||
2345 | 0x07, | ||
2346 | 0x6d, | ||
2347 | 0x83, | ||
2348 | 0x71, | ||
2349 | 0x8a, | ||
2350 | 0x67, | ||
2351 | 0x25, | ||
2352 | 0x20, | ||
2353 | 0x0f, | ||
2354 | 0xfe, | ||
2355 | 0xd7, | ||
2356 | 0x02, | ||
2357 | 0xd7, | ||
2358 | 0x6e, | ||
2359 | 0x2c, | ||
2360 | 0xd2, | ||
2361 | 0x1a, | ||
2362 | 0x0a, | ||
2363 | 0x5d, | ||
2364 | 0xfd, | ||
2365 | 0x0f, | ||
2366 | 0x74, | ||
2367 | 0xe3, | ||
2368 | 0xa4, | ||
2369 | 0x36, | ||
2370 | 0x07, | ||
2371 | 0x9a, | ||
2372 | 0xdf, | ||
2373 | 0xd4, | ||
2374 | 0x79, | ||
2375 | 0xbf, | ||
2376 | 0xef, | ||
2377 | 0x59, | ||
2378 | 0xc0, | ||
2379 | 0x44, | ||
2380 | 0x52, | ||
2381 | 0x87, | ||
2382 | 0x9a, | ||
2383 | 0x6e, | ||
2384 | 0x1d, | ||
2385 | 0x0e, | ||
2386 | 0xee, | ||
2387 | 0xde, | ||
2388 | 0x2e, | ||
2389 | 0x1a, | ||
2390 | 0xa9, | ||
2391 | 0x8f, | ||
2392 | 0x3a, | ||
2393 | 0xc9, | ||
2394 | 0xba, | ||
2395 | 0xec, | ||
2396 | 0x99, | ||
2397 | 0x78, | ||
2398 | 0x2d, | ||
2399 | 0x55, | ||
2400 | 0x6b, | ||
2401 | 0x14, | ||
2402 | 0xc2, | ||
2403 | 0x06, | ||
2404 | 0xd5, | ||
2405 | 0xfc, | ||
2406 | 0x93, | ||
2407 | 0x53, | ||
2408 | 0x4d, | ||
2409 | 0x11, | ||
2410 | 0x8c, | ||
2411 | 0xf8, | ||
2412 | 0xfa, | ||
2413 | 0x79, | ||
2414 | 0x7c, | ||
2415 | 0xa6, | ||
2416 | 0x64, | ||
2417 | 0xae, | ||
2418 | 0x61, | ||
2419 | 0xb8, | ||
2420 | 0x7b, | ||
2421 | 0x94, | ||
2422 | 0x56, | ||
2423 | 0xa6, | ||
2424 | 0x39, | ||
2425 | 0x78, | ||
2426 | 0x9a, | ||
2427 | 0xe5, | ||
2428 | 0xc7, | ||
2429 | 0xdf, | ||
2430 | 0x18, | ||
2431 | 0x63, | ||
2432 | 0x23, | ||
2433 | 0x9c, | ||
2434 | 0xfa, | ||
2435 | 0x66, | ||
2436 | 0xbb, | ||
2437 | 0xb7, | ||
2438 | 0x5a, | ||
2439 | 0x27, | ||
2440 | 0x4c, | ||
2441 | 0xd1, | ||
2442 | 0xa1, | ||
2443 | 0x83, | ||
2444 | 0x22, | ||
2445 | 0xb3, | ||
2446 | 0x52, | ||
2447 | 0x49, | ||
2448 | 0x35, | ||
2449 | 0xb0, | ||
2450 | 0x22, | ||
2451 | 0x83, | ||
2452 | 0x59, | ||
2453 | 0x12, | ||
2454 | 0x00, | ||
2455 | 0x16, | ||
2456 | 0x98, | ||
2457 | 0xdd, | ||
2458 | 0xad, | ||
2459 | 0xc2, | ||
2460 | 0x94, | ||
2461 | 0xf9, | ||
2462 | 0xd3, | ||
2463 | 0x7b, | ||
2464 | 0x64, | ||
2465 | 0x7f, | ||
2466 | 0x44, | ||
2467 | 0x3e, | ||
2468 | 0x3c, | ||
2469 | 0x8b, | ||
2470 | 0x9a, | ||
2471 | 0x83, | ||
2472 | 0x9c, | ||
2473 | 0x69, | ||
2474 | 0x6b, | ||
2475 | 0xe4, | ||
2476 | 0xdf, | ||
2477 | 0x9f, | ||
2478 | 0xed, | ||
2479 | 0x54, | ||
2480 | 0x1f, | ||
2481 | 0xe5, | ||
2482 | 0x5d, | ||
2483 | 0x7a, | ||
2484 | 0x05, | ||
2485 | 0x82, | ||
2486 | 0xb3, | ||
2487 | 0xdd, | ||
2488 | 0xef, | ||
2489 | 0xfc, | ||
2490 | 0x53, | ||
2491 | 0x96, | ||
2492 | 0xb0, | ||
2493 | 0x2c, | ||
2494 | 0x5a, | ||
2495 | 0xf8, | ||
2496 | 0xdf, | ||
2497 | 0x9c, | ||
2498 | 0x8b, | ||
2499 | 0x16, | ||
2500 | 0x4e, | ||
2501 | 0xdf, | ||
2502 | 0xda, | ||
2503 | 0x4d, | ||
2504 | 0x09, | ||
2505 | 0x09, | ||
2506 | 0x69, | ||
2507 | 0x50, | ||
2508 | 0x03, | ||
2509 | 0x65, | ||
2510 | 0xd8, | ||
2511 | 0x73, | ||
2512 | 0x70, | ||
2513 | 0xe8, | ||
2514 | 0x86, | ||
2515 | 0xbf, | ||
2516 | 0xbb, | ||
2517 | 0x35, | ||
2518 | 0xce, | ||
2519 | 0xb2, | ||
2520 | 0x46, | ||
2521 | 0xcb, | ||
2522 | 0x02, | ||
2523 | 0x00, | ||
2524 | 0x5b, | ||
2525 | 0xb4, | ||
2526 | 0xe2, | ||
2527 | 0xc6, | ||
2528 | 0x8f, | ||
2529 | 0x2f, | ||
2530 | 0x98, | ||
2531 | 0xaf, | ||
2532 | 0x87, | ||
2533 | 0x4b, | ||
2534 | 0x48, | ||
2535 | 0x45, | ||
2536 | 0xed, | ||
2537 | 0xcc, | ||
2538 | 0x1d, | ||
2539 | 0xe6, | ||
2540 | 0x58, | ||
2541 | 0xd6, | ||
2542 | 0xf2, | ||
2543 | 0x50, | ||
2544 | 0x25, | ||
2545 | 0x9f, | ||
2546 | 0x52, | ||
2547 | 0xc7, | ||
2548 | 0xcb, | ||
2549 | 0x8a, | ||
2550 | 0x17, | ||
2551 | 0x9d, | ||
2552 | 0x5b, | ||
2553 | 0xe5, | ||
2554 | 0xc8, | ||
2555 | 0xd7, | ||
2556 | 0x72, | ||
2557 | 0xb7, | ||
2558 | 0x52, | ||
2559 | 0xb2, | ||
2560 | 0xc4, | ||
2561 | 0x98, | ||
2562 | 0xe3, | ||
2563 | 0x7a, | ||
2564 | 0x17, | ||
2565 | 0x3e, | ||
2566 | 0xc6, | ||
2567 | 0x60, | ||
2568 | 0xa7, | ||
2569 | 0x97, | ||
2570 | 0xb0, | ||
2571 | 0xcf, | ||
2572 | 0x18, | ||
2573 | 0x81, | ||
2574 | 0x53, | ||
2575 | 0x84, | ||
2576 | 0x4c, | ||
2577 | 0xd5, | ||
2578 | 0x17, | ||
2579 | 0x32, | ||
2580 | 0x03, | ||
2581 | 0x13, | ||
2582 | 0x39, | ||
2583 | 0x51, | ||
2584 | 0x09, | ||
2585 | 0x10, | ||
2586 | 0xe3, | ||
2587 | 0x77, | ||
2588 | 0x49, | ||
2589 | 0x4f, | ||
2590 | 0x62, | ||
2591 | 0x01, | ||
2592 | 0xbf, | ||
2593 | 0x8c, | ||
2594 | 0x9a, | ||
2595 | 0xe0, | ||
2596 | 0x41, | ||
2597 | 0x9e, | ||
2598 | 0x89, | ||
2599 | 0x74, | ||
2600 | 0x36, | ||
2601 | 0xf9, | ||
2602 | 0x96, | ||
2603 | 0x86, | ||
2604 | 0x2e, | ||
2605 | 0x96, | ||
2606 | 0x1c, | ||
2607 | 0x4a, | ||
2608 | 0xb7, | ||
2609 | 0x2b, | ||
2610 | 0x4a, | ||
2611 | 0x97, | ||
2612 | 0xbc, | ||
2613 | 0x99, | ||
2614 | 0x40, | ||
2615 | 0xa3, | ||
2616 | 0xe0, | ||
2617 | 0x3d, | ||
2618 | 0xc8, | ||
2619 | 0xad, | ||
2620 | 0x2f, | ||
2621 | 0xdf, | ||
2622 | 0x4f, | ||
2623 | 0x2c, | ||
2624 | 0xc4, | ||
2625 | 0x69, | ||
2626 | 0x82, | ||
2627 | 0x9f, | ||
2628 | 0x9b, | ||
2629 | 0x81, | ||
2630 | 0x0c, | ||
2631 | 0x61, | ||
2632 | 0x5c, | ||
2633 | 0xa5, | ||
2634 | 0x9d, | ||
2635 | 0x8c, | ||
2636 | 0x89, | ||
2637 | 0xc0, | ||
2638 | 0x2c, | ||
2639 | 0xb4, | ||
2640 | 0x4a, | ||
2641 | 0x33, | ||
2642 | 0x4e, | ||
2643 | 0xeb, | ||
2644 | 0xa2, | ||
2645 | 0x56, | ||
2646 | 0x40, | ||
2647 | 0xc0, | ||
2648 | 0xc2, | ||
2649 | 0x46, | ||
2650 | 0xaf, | ||
2651 | 0x6a, | ||
2652 | 0xfc, | ||
2653 | 0x67, | ||
2654 | 0xd1, | ||
2655 | 0x80, | ||
2656 | 0x5e, | ||
2657 | 0xc5, | ||
2658 | 0x6d, | ||
2659 | 0x84, | ||
2660 | 0x43, | ||
2661 | 0x27, | ||
2662 | 0x3f, | ||
2663 | 0x55, | ||
2664 | 0x15, | ||
2665 | 0x96, | ||
2666 | 0x6a, | ||
2667 | 0xa0, | ||
2668 | 0xa5, | ||
2669 | 0xda, | ||
2670 | 0xb7, | ||
2671 | 0xff, | ||
2672 | 0xb7, | ||
2673 | 0x75, | ||
2674 | 0x6e, | ||
2675 | 0x4c, | ||
2676 | 0x49, | ||
2677 | 0x91, | ||
2678 | 0x9d, | ||
2679 | 0x22, | ||
2680 | 0xa3, | ||
2681 | 0x46, | ||
2682 | 0xea, | ||
2683 | 0xed, | ||
2684 | 0x9a, | ||
2685 | 0x00, | ||
2686 | 0xe2, | ||
2687 | 0x32, | ||
2688 | 0xc3, | ||
2689 | 0xd6, | ||
2690 | 0xa9, | ||
2691 | 0x71, | ||
2692 | 0x20, | ||
2693 | 0x55, | ||
2694 | 0xa3, | ||
2695 | 0x19, | ||
2696 | 0xed, | ||
2697 | 0xf8, | ||
2698 | 0x4f, | ||
2699 | 0xa7, | ||
2700 | 0x12, | ||
2701 | 0x9c, | ||
2702 | 0x66, | ||
2703 | 0x87, | ||
2704 | 0xaf, | ||
2705 | 0x4e, | ||
2706 | 0xb7, | ||
2707 | 0xf0, | ||
2708 | 0xdb, | ||
2709 | 0xbf, | ||
2710 | 0xef, | ||
2711 | 0xf0, | ||
2712 | 0xf6, | ||
2713 | 0xaf, | ||
2714 | 0xea, | ||
2715 | 0xda, | ||
2716 | 0x09, | ||
2717 | 0xfe, | ||
2718 | 0xde, | ||
2719 | 0x38, | ||
2720 | 0x5c, | ||
2721 | 0xa5, | ||
2722 | 0xa2, | ||
2723 | 0xdf, | ||
2724 | 0x99, | ||
2725 | 0x45, | ||
2726 | 0xa8, | ||
2727 | 0xe4, | ||
2728 | 0xe7, | ||
2729 | 0x92, | ||
2730 | 0xac, | ||
2731 | 0x67, | ||
2732 | 0xaa, | ||
2733 | 0x4f, | ||
2734 | 0xbf, | ||
2735 | 0x77, | ||
2736 | 0x3e, | ||
2737 | 0xa2, | ||
2738 | 0x40, | ||
2739 | 0x49, | ||
2740 | 0x22, | ||
2741 | 0x4a, | ||
2742 | 0x1e, | ||
2743 | 0x3b, | ||
2744 | 0xaa, | ||
2745 | 0x70, | ||
2746 | 0x7f, | ||
2747 | 0x95, | ||
2748 | 0xaf, | ||
2749 | 0x37, | ||
2750 | 0x4b, | ||
2751 | 0xfc, | ||
2752 | 0x99, | ||
2753 | 0xe2, | ||
2754 | 0xe0, | ||
2755 | 0xba, | ||
2756 | 0xd7, | ||
2757 | 0x34, | ||
2758 | 0xce, | ||
2759 | 0x55, | ||
2760 | 0x88, | ||
2761 | 0x5b, | ||
2762 | 0x84, | ||
2763 | 0x1b, | ||
2764 | 0x57, | ||
2765 | 0xc4, | ||
2766 | 0x80, | ||
2767 | 0x03, | ||
2768 | 0x53, | ||
2769 | 0xc9, | ||
2770 | 0x2f, | ||
2771 | 0x93, | ||
2772 | 0x04, | ||
2773 | 0x4d, | ||
2774 | 0xd5, | ||
2775 | 0x96, | ||
2776 | 0xe5, | ||
2777 | 0x70, | ||
2778 | 0xa6, | ||
2779 | 0x6e, | ||
2780 | 0x63, | ||
2781 | 0x5d, | ||
2782 | 0x9d, | ||
2783 | 0x6c, | ||
2784 | 0xdb, | ||
2785 | 0x02, | ||
2786 | 0x0a, | ||
2787 | 0xa9, | ||
2788 | 0xda, | ||
2789 | 0x8b, | ||
2790 | 0x53, | ||
2791 | 0xdc, | ||
2792 | 0xd9, | ||
2793 | 0x9a, | ||
2794 | 0xc5, | ||
2795 | 0x94, | ||
2796 | 0x2c, | ||
2797 | 0x91, | ||
2798 | 0x92, | ||
2799 | 0x2a, | ||
2800 | 0xde, | ||
2801 | 0xbb, | ||
2802 | 0x8b, | ||
2803 | 0x13, | ||
2804 | 0xb9, | ||
2805 | 0x19, | ||
2806 | 0x96, | ||
2807 | 0x64, | ||
2808 | 0xcc, | ||
2809 | 0xf2, | ||
2810 | 0x64, | ||
2811 | 0x39, | ||
2812 | 0xb7, | ||
2813 | 0x75, | ||
2814 | 0x49, | ||
2815 | 0xe9, | ||
2816 | 0x86, | ||
2817 | 0xc2, | ||
2818 | 0x86, | ||
2819 | 0x62, | ||
2820 | 0xd9, | ||
2821 | 0x24, | ||
2822 | 0xd3, | ||
2823 | 0x81, | ||
2824 | 0x35, | ||
2825 | 0x49, | ||
2826 | 0xfc, | ||
2827 | 0xa0, | ||
2828 | 0xa5, | ||
2829 | 0xa0, | ||
2830 | 0x93, | ||
2831 | 0x05, | ||
2832 | 0x64, | ||
2833 | 0xb4, | ||
2834 | 0x1a, | ||
2835 | 0x57, | ||
2836 | 0xce, | ||
2837 | 0x0c, | ||
2838 | 0x90, | ||
2839 | 0x02, | ||
2840 | 0x27, | ||
2841 | 0xc5, | ||
2842 | 0x7a, | ||
2843 | 0x2b, | ||
2844 | 0x5d, | ||
2845 | 0xae, | ||
2846 | 0x3e, | ||
2847 | 0xd5, | ||
2848 | 0xdd, | ||
2849 | 0x10, | ||
2850 | 0x7c, | ||
2851 | 0x14, | ||
2852 | 0xea, | ||
2853 | 0x3a, | ||
2854 | 0x08, | ||
2855 | 0xac, | ||
2856 | 0x72, | ||
2857 | 0x4e, | ||
2858 | 0x90, | ||
2859 | 0x3d, | ||
2860 | 0x3b, | ||
2861 | 0x7c, | ||
2862 | 0x86, | ||
2863 | 0x2e, | ||
2864 | 0xeb, | ||
2865 | 0xd4, | ||
2866 | 0x06, | ||
2867 | 0x70, | ||
2868 | 0xe6, | ||
2869 | 0xc7, | ||
2870 | 0xfb, | ||
2871 | 0x5f, | ||
2872 | 0xbd, | ||
2873 | 0x18, | ||
2874 | 0xf4, | ||
2875 | 0x11, | ||
2876 | 0xa4, | ||
2877 | 0x1a, | ||
2878 | 0x93, | ||
2879 | 0xc3, | ||
2880 | 0xbe, | ||
2881 | 0xd9, | ||
2882 | 0xfb, | ||
2883 | 0x26, | ||
2884 | 0x48, | ||
2885 | 0x2f, | ||
2886 | 0x37, | ||
2887 | 0x3c, | ||
2888 | 0xd0, | ||
2889 | 0x03, | ||
2890 | 0x47, | ||
2891 | 0x1a, | ||
2892 | 0xf7, | ||
2893 | 0x62, | ||
2894 | 0x19, | ||
2895 | 0x24, | ||
2896 | 0x5c, | ||
2897 | 0xf4, | ||
2898 | 0xa8, | ||
2899 | 0x92, | ||
2900 | 0x20, | ||
2901 | 0x7a, | ||
2902 | 0xf2, | ||
2903 | 0x9e, | ||
2904 | 0x2a, | ||
2905 | 0xc5, | ||
2906 | 0x95, | ||
2907 | 0xa2, | ||
2908 | 0xfb, | ||
2909 | 0xa4, | ||
2910 | 0xea, | ||
2911 | 0x85, | ||
2912 | 0xd8, | ||
2913 | 0x56, | ||
2914 | 0xb7, | ||
2915 | 0x70, | ||
2916 | 0xd1, | ||
2917 | 0x60, | ||
2918 | 0x30, | ||
2919 | 0xa5, | ||
2920 | 0x30, | ||
2921 | 0x82, | ||
2922 | 0x70, | ||
2923 | 0xdc, | ||
2924 | 0x7a, | ||
2925 | 0x65, | ||
2926 | 0x8a, | ||
2927 | 0x36, | ||
2928 | 0x3f, | ||
2929 | 0x5b, | ||
2930 | 0x0c, | ||
2931 | 0xae, | ||
2932 | 0x54, | ||
2933 | 0x7c, | ||
2934 | 0xd3, | ||
2935 | 0x57, | ||
2936 | 0x84, | ||
2937 | 0x7b, | ||
2938 | 0x3a, | ||
2939 | 0x65, | ||
2940 | 0x18, | ||
2941 | 0x81, | ||
2942 | 0xee, | ||
2943 | 0x05, | ||
2944 | 0x9b, | ||
2945 | 0x44, | ||
2946 | 0x4d, | ||
2947 | 0xb8, | ||
2948 | 0xda, | ||
2949 | 0xa2, | ||
2950 | 0xa1, | ||
2951 | 0xc9, | ||
2952 | 0x15, | ||
2953 | 0xd3, | ||
2954 | 0x73, | ||
2955 | 0x03, | ||
2956 | 0x0e, | ||
2957 | 0x43, | ||
2958 | 0xe9, | ||
2959 | 0x8e, | ||
2960 | 0x15, | ||
2961 | 0xf9, | ||
2962 | 0xbe, | ||
2963 | 0xc6, | ||
2964 | 0xc5, | ||
2965 | 0x8a, | ||
2966 | 0xe5, | ||
2967 | 0xc0, | ||
2968 | 0x1e, | ||
2969 | 0xc2, | ||
2970 | 0x37, | ||
2971 | 0x9e, | ||
2972 | 0x2a, | ||
2973 | 0x26, | ||
2974 | 0xa5, | ||
2975 | 0xa0, | ||
2976 | 0xbd, | ||
2977 | 0x24, | ||
2978 | 0x5f, | ||
2979 | 0xb9, | ||
2980 | 0xc1, | ||
2981 | 0xab, | ||
2982 | 0x34, | ||
2983 | 0x48, | ||
2984 | 0xb9, | ||
2985 | 0x5d, | ||
2986 | 0x98, | ||
2987 | 0xb4, | ||
2988 | 0x65, | ||
2989 | 0x18, | ||
2990 | 0xf3, | ||
2991 | 0x63, | ||
2992 | 0x19, | ||
2993 | 0x44, | ||
2994 | 0x1b, | ||
2995 | 0x11, | ||
2996 | 0x16, | ||
2997 | 0xff, | ||
2998 | 0xdc, | ||
2999 | 0xf1, | ||
3000 | 0x79, | ||
3001 | 0x08, | ||
3002 | 0x86, | ||
3003 | 0x0f, | ||
3004 | 0x52, | ||
3005 | 0x98, | ||
3006 | 0x73, | ||
3007 | 0xc4, | ||
3008 | 0x92, | ||
3009 | 0x90, | ||
3010 | 0x2b, | ||
3011 | 0x47, | ||
3012 | 0x09, | ||
3013 | 0xd0, | ||
3014 | 0x43, | ||
3015 | 0x6c, | ||
3016 | 0x2f, | ||
3017 | 0x20, | ||
3018 | 0xeb, | ||
3019 | 0xdc, | ||
3020 | 0xda, | ||
3021 | 0xc5, | ||
3022 | 0x08, | ||
3023 | 0x7b, | ||
3024 | 0x94, | ||
3025 | 0x42, | ||
3026 | 0x30, | ||
3027 | 0x6a, | ||
3028 | 0xc7, | ||
3029 | 0xda, | ||
3030 | 0x8c, | ||
3031 | 0xc3, | ||
3032 | 0x76, | ||
3033 | 0xa7, | ||
3034 | 0xa5, | ||
3035 | 0xcc, | ||
3036 | 0x62, | ||
3037 | 0x13, | ||
3038 | 0x00, | ||
3039 | 0x60, | ||
3040 | 0x31, | ||
3041 | 0x58, | ||
3042 | 0x44, | ||
3043 | 0x9b, | ||
3044 | 0xf5, | ||
3045 | 0x64, | ||
3046 | 0x14, | ||
3047 | 0xf5, | ||
3048 | 0x11, | ||
3049 | 0xc5, | ||
3050 | 0x54, | ||
3051 | 0x52, | ||
3052 | 0x83, | ||
3053 | 0xd4, | ||
3054 | 0x73, | ||
3055 | 0x01, | ||
3056 | 0x16, | ||
3057 | 0x0e, | ||
3058 | 0xb3, | ||
3059 | 0x7a, | ||
3060 | 0x29, | ||
3061 | 0x69, | ||
3062 | 0x35, | ||
3063 | 0x56, | ||
3064 | 0xd4, | ||
3065 | 0xee, | ||
3066 | 0x8a, | ||
3067 | 0x17, | ||
3068 | 0xa2, | ||
3069 | 0x99, | ||
3070 | 0x24, | ||
3071 | 0x9c, | ||
3072 | 0xd7, | ||
3073 | 0x8f, | ||
3074 | 0xdb, | ||
3075 | 0x55, | ||
3076 | 0xb5, | ||
3077 | 0x3e | ||
3078 | }; | ||
diff --git a/keyboards/oddball/optical_sensor/optical_sensor.h b/keyboards/oddball/optical_sensor/optical_sensor.h index a152d02cf..00955209e 100644 --- a/keyboards/oddball/optical_sensor/optical_sensor.h +++ b/keyboards/oddball/optical_sensor/optical_sensor.h | |||
@@ -17,7 +17,7 @@ | |||
17 | /* common interface for opitcal sensors */ | 17 | /* common interface for opitcal sensors */ |
18 | 18 | ||
19 | #if defined ADNS_9800 | 19 | #if defined ADNS_9800 |
20 | #include "../adns/adns.h" | 20 | #include "drivers/sensors/adns9800.h" |
21 | #define config_optical_sensor_t config_adns_t | 21 | #define config_optical_sensor_t config_adns_t |
22 | #define report_optical_sensor_t report_adns_t | 22 | #define report_optical_sensor_t report_adns_t |
23 | #define optical_sensor_init adns_init | 23 | #define optical_sensor_init adns_init |
diff --git a/keyboards/oddball/rules.mk b/keyboards/oddball/rules.mk index e9e540c3c..8fc86b570 100644 --- a/keyboards/oddball/rules.mk +++ b/keyboards/oddball/rules.mk | |||
@@ -25,5 +25,5 @@ POINTING_DEVICE_ENABLE = yes | |||
25 | DEFAULT_FOLDER = oddball/v1 | 25 | DEFAULT_FOLDER = oddball/v1 |
26 | 26 | ||
27 | SRC += spi_master.c | 27 | SRC += spi_master.c |
28 | SRC += adns/adns.c | 28 | SRC += drivers/sensors/adns9800.c |
29 | SRC += pmw/pmw.c | 29 | SRC += pmw/pmw.c |
diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h index 9f8ed7427..8b25ab256 100644 --- a/keyboards/opendeck/32/rev1/config.h +++ b/keyboards/opendeck/32/rev1/config.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #define DRIVER_COUNT 1 | 38 | #define DRIVER_COUNT 1 |
39 | #define DRIVER_1_LED_TOTAL (4 * 8 * 3) | 39 | #define DRIVER_1_LED_TOTAL (4 * 8 * 3) |
40 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) | 40 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) |
41 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 41 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
42 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL | 42 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL |
43 | #define RGB_MATRIX_DISABLE_KEYCODES | 43 | #define RGB_MATRIX_DISABLE_KEYCODES |
44 | 44 | ||
diff --git a/keyboards/percent/canoe_gen2/config.h b/keyboards/percent/canoe_gen2/config.h index bac5ebb3f..6409371d4 100644 --- a/keyboards/percent/canoe_gen2/config.h +++ b/keyboards/percent/canoe_gen2/config.h | |||
@@ -64,4 +64,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
64 | #define RGB_MATRIX_STARTUP_SAT 255 | 64 | #define RGB_MATRIX_STARTUP_SAT 255 |
65 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | 65 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS |
66 | #define RGB_MATRIX_STARTUP_SPD 127 | 66 | #define RGB_MATRIX_STARTUP_SPD 127 |
67 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 67 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
diff --git a/keyboards/phase_studio/titan65/config.h b/keyboards/phase_studio/titan65/config.h index 4104c2ec2..66ae4f20b 100644 --- a/keyboards/phase_studio/titan65/config.h +++ b/keyboards/phase_studio/titan65/config.h | |||
@@ -47,5 +47,5 @@ | |||
47 | #define RGB_DI_PIN E6 | 47 | #define RGB_DI_PIN E6 |
48 | #define DRIVER_LED_TOTAL 67 | 48 | #define DRIVER_LED_TOTAL 67 |
49 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 49 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
50 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 50 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
51 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 51 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h index 7f8876496..5317a5156 100644 --- a/keyboards/planck/ez/config.h +++ b/keyboards/planck/ez/config.h | |||
@@ -147,7 +147,7 @@ | |||
147 | 147 | ||
148 | #define RGB_MATRIX_KEYPRESSES | 148 | #define RGB_MATRIX_KEYPRESSES |
149 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 149 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
150 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 150 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
151 | 151 | ||
152 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 | 152 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 |
153 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 153 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h index 4bc8a509f..18bb74096 100644 --- a/keyboards/planck/rev6/config.h +++ b/keyboards/planck/rev6/config.h | |||
@@ -141,7 +141,7 @@ | |||
141 | #define WS2812_DMA_CHANNEL 2 | 141 | #define WS2812_DMA_CHANNEL 2 |
142 | 142 | ||
143 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 143 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED |
144 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true | 144 | # define RGB_DISABLE_WHEN_USB_SUSPENDED |
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | #endif | 147 | #endif |
diff --git a/keyboards/ploopyco/adns5050.c b/keyboards/ploopyco/adns5050.c deleted file mode 100644 index e12e56f20..000000000 --- a/keyboards/ploopyco/adns5050.c +++ /dev/null | |||
@@ -1,197 +0,0 @@ | |||
1 | /* Copyright 2021 Colin Lam (Ploopy Corporation) | ||
2 | * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
3 | * Copyright 2019 Sunjun Kim | ||
4 | * Copyright 2019 Hiroyuki Okada | ||
5 | * | ||
6 | * This program is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | |||
21 | #include "adns5050.h" | ||
22 | #include "quantum.h" | ||
23 | #include "wait.h" | ||
24 | |||
25 | #ifdef CONSOLE_ENABLE | ||
26 | # include "print.h" | ||
27 | #endif | ||
28 | |||
29 | #ifndef OPTIC_ROTATED | ||
30 | # define OPTIC_ROTATED false | ||
31 | #endif | ||
32 | |||
33 | // Definitions for the ADNS serial line. | ||
34 | // These really ought to be defined in your config.h, but defaults are | ||
35 | // here if you're really lazy. | ||
36 | #ifndef ADNS_SCLK_PIN | ||
37 | # define ADNS_SCLK_PIN B7 | ||
38 | #endif | ||
39 | |||
40 | #ifndef ADNS_SDIO_PIN | ||
41 | # define ADNS_SDIO_PIN C6 | ||
42 | #endif | ||
43 | |||
44 | #ifndef ADNS_CS_PIN | ||
45 | # define ADNS_CS_PIN B4 | ||
46 | #endif | ||
47 | |||
48 | #ifdef CONSOLE_ENABLE | ||
49 | void print_byte(uint8_t byte) { dprintf("%c%c%c%c%c%c%c%c|", (byte & 0x80 ? '1' : '0'), (byte & 0x40 ? '1' : '0'), (byte & 0x20 ? '1' : '0'), (byte & 0x10 ? '1' : '0'), (byte & 0x08 ? '1' : '0'), (byte & 0x04 ? '1' : '0'), (byte & 0x02 ? '1' : '0'), (byte & 0x01 ? '1' : '0')); } | ||
50 | #endif | ||
51 | |||
52 | // Initialize the ADNS serial pins. | ||
53 | void adns_init(void) { | ||
54 | setPinOutput(ADNS_SCLK_PIN); | ||
55 | setPinOutput(ADNS_SDIO_PIN); | ||
56 | setPinOutput(ADNS_CS_PIN); | ||
57 | } | ||
58 | |||
59 | // Perform a synchronization with the ADNS. | ||
60 | // Just as with the serial protocol, this is used by the slave to send a | ||
61 | // synchronization signal to the master. | ||
62 | void adns_sync(void) { | ||
63 | writePinLow(ADNS_CS_PIN); | ||
64 | wait_us(1); | ||
65 | writePinHigh(ADNS_CS_PIN); | ||
66 | } | ||
67 | |||
68 | void adns_cs_select(void) { | ||
69 | writePinLow(ADNS_CS_PIN); | ||
70 | } | ||
71 | |||
72 | void adns_cs_deselect(void) { | ||
73 | writePinHigh(ADNS_CS_PIN); | ||
74 | } | ||
75 | |||
76 | uint8_t adns_serial_read(void) { | ||
77 | setPinInput(ADNS_SDIO_PIN); | ||
78 | uint8_t byte = 0; | ||
79 | |||
80 | for (uint8_t i = 0; i < 8; ++i) { | ||
81 | writePinLow(ADNS_SCLK_PIN); | ||
82 | wait_us(1); | ||
83 | |||
84 | byte = (byte << 1) | readPin(ADNS_SDIO_PIN); | ||
85 | |||
86 | writePinHigh(ADNS_SCLK_PIN); | ||
87 | wait_us(1); | ||
88 | } | ||
89 | |||
90 | return byte; | ||
91 | } | ||
92 | |||
93 | void adns_serial_write(uint8_t data) { | ||
94 | setPinOutput(ADNS_SDIO_PIN); | ||
95 | |||
96 | for (int8_t b = 7; b >= 0; b--) { | ||
97 | writePinLow(ADNS_SCLK_PIN); | ||
98 | |||
99 | if (data & (1 << b)) | ||
100 | writePinHigh(ADNS_SDIO_PIN); | ||
101 | else | ||
102 | writePinLow(ADNS_SDIO_PIN); | ||
103 | |||
104 | wait_us(2); | ||
105 | |||
106 | writePinHigh(ADNS_SCLK_PIN); | ||
107 | } | ||
108 | |||
109 | // tSWR. See page 15 of the ADNS spec sheet. | ||
110 | // Technically, this is only necessary if the next operation is an SDIO | ||
111 | // read. This is not guaranteed to be the case, but we're being lazy. | ||
112 | wait_us(4); | ||
113 | |||
114 | // Note that tSWW is never necessary. All write operations require at | ||
115 | // least 32us, which exceeds tSWW, so there's never a need to wait for it. | ||
116 | } | ||
117 | |||
118 | // Read a byte of data from a register on the ADNS. | ||
119 | // Don't forget to use the register map (as defined in the header file). | ||
120 | uint8_t adns_read_reg(uint8_t reg_addr) { | ||
121 | adns_cs_select(); | ||
122 | |||
123 | adns_serial_write(reg_addr); | ||
124 | |||
125 | // We don't need a minimum tSRAD here. That's because a 4ms wait time is | ||
126 | // already included in adns_serial_write(), so we're good. | ||
127 | // See page 10 and 15 of the ADNS spec sheet. | ||
128 | //wait_us(4); | ||
129 | |||
130 | uint8_t byte = adns_serial_read(); | ||
131 | |||
132 | // tSRW & tSRR. See page 15 of the ADNS spec sheet. | ||
133 | // Technically, this is only necessary if the next operation is an SDIO | ||
134 | // read or write. This is not guaranteed to be the case. | ||
135 | // Honestly, this wait could probably be removed. | ||
136 | wait_us(1); | ||
137 | |||
138 | adns_cs_deselect(); | ||
139 | |||
140 | return byte; | ||
141 | } | ||
142 | |||
143 | void adns_write_reg(uint8_t reg_addr, uint8_t data) { | ||
144 | adns_cs_select(); | ||
145 | adns_serial_write( 0b10000000 | reg_addr ); | ||
146 | adns_serial_write(data); | ||
147 | adns_cs_deselect(); | ||
148 | } | ||
149 | |||
150 | report_adns_t adns_read_burst(void) { | ||
151 | adns_cs_select(); | ||
152 | |||
153 | report_adns_t data; | ||
154 | data.dx = 0; | ||
155 | data.dy = 0; | ||
156 | |||
157 | adns_serial_write(REG_MOTION_BURST); | ||
158 | |||
159 | // We don't need a minimum tSRAD here. That's because a 4ms wait time is | ||
160 | // already included in adns_serial_write(), so we're good. | ||
161 | // See page 10 and 15 of the ADNS spec sheet. | ||
162 | //wait_us(4); | ||
163 | |||
164 | uint8_t x = adns_serial_read(); | ||
165 | uint8_t y = adns_serial_read(); | ||
166 | |||
167 | // Burst mode returns a bunch of other shit that we don't really need. | ||
168 | // Setting CS to high ends burst mode early. | ||
169 | adns_cs_deselect(); | ||
170 | |||
171 | data.dx = convert_twoscomp(x); | ||
172 | data.dy = convert_twoscomp(y); | ||
173 | |||
174 | return data; | ||
175 | } | ||
176 | |||
177 | // Convert a two's complement byte from an unsigned data type into a signed | ||
178 | // data type. | ||
179 | int8_t convert_twoscomp(uint8_t data) { | ||
180 | if ((data & 0x80) == 0x80) | ||
181 | return -128 + (data & 0x7F); | ||
182 | else | ||
183 | return data; | ||
184 | } | ||
185 | |||
186 | // Don't forget to use the definitions for CPI in the header file. | ||
187 | void adns_set_cpi(uint8_t cpi) { | ||
188 | adns_write_reg(REG_MOUSE_CONTROL2, cpi); | ||
189 | } | ||
190 | |||
191 | bool adns_check_signature(void) { | ||
192 | uint8_t pid = adns_read_reg(REG_PRODUCT_ID); | ||
193 | uint8_t rid = adns_read_reg(REG_REVISION_ID); | ||
194 | uint8_t pid2 = adns_read_reg(REG_PRODUCT_ID2); | ||
195 | |||
196 | return (pid == 0x12 && rid == 0x01 && pid2 == 0x26); | ||
197 | } | ||
diff --git a/keyboards/ploopyco/adns5050.h b/keyboards/ploopyco/adns5050.h deleted file mode 100644 index ff8e8f78e..000000000 --- a/keyboards/ploopyco/adns5050.h +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | /* Copyright 2021 Colin Lam (Ploopy Corporation) | ||
2 | * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
3 | * Copyright 2019 Sunjun Kim | ||
4 | * Copyright 2019 Hiroyuki Okada | ||
5 | * | ||
6 | * This program is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | #pragma once | ||
21 | |||
22 | #include <stdbool.h> | ||
23 | |||
24 | // Registers | ||
25 | #define REG_PRODUCT_ID 0x00 | ||
26 | #define REG_REVISION_ID 0x01 | ||
27 | #define REG_MOTION 0x02 | ||
28 | #define REG_DELTA_X 0x03 | ||
29 | #define REG_DELTA_Y 0x04 | ||
30 | #define REG_SQUAL 0x05 | ||
31 | #define REG_SHUTTER_UPPER 0x06 | ||
32 | #define REG_SHUTTER_LOWER 0x07 | ||
33 | #define REG_MAXIMUM_PIXEL 0x08 | ||
34 | #define REG_PIXEL_SUM 0x09 | ||
35 | #define REG_MINIMUM_PIXEL 0x0a | ||
36 | #define REG_PIXEL_GRAB 0x0b | ||
37 | #define REG_MOUSE_CONTROL 0x0d | ||
38 | #define REG_MOUSE_CONTROL2 0x19 | ||
39 | #define REG_LED_DC_MODE 0x22 | ||
40 | #define REG_CHIP_RESET 0x3a | ||
41 | #define REG_PRODUCT_ID2 0x3e | ||
42 | #define REG_INV_REV_ID 0x3f | ||
43 | #define REG_MOTION_BURST 0x63 | ||
44 | |||
45 | // CPI values | ||
46 | #define CPI125 0x11 | ||
47 | #define CPI250 0x12 | ||
48 | #define CPI375 0x13 | ||
49 | #define CPI500 0x14 | ||
50 | #define CPI625 0x15 | ||
51 | #define CPI750 0x16 | ||
52 | #define CPI875 0x17 | ||
53 | #define CPI1000 0x18 | ||
54 | #define CPI1125 0x19 | ||
55 | #define CPI1250 0x1a | ||
56 | #define CPI1375 0x1b | ||
57 | |||
58 | #ifdef CONSOLE_ENABLE | ||
59 | void print_byte(uint8_t byte); | ||
60 | #endif | ||
61 | |||
62 | typedef struct { | ||
63 | int8_t dx; | ||
64 | int8_t dy; | ||
65 | } report_adns_t; | ||
66 | |||
67 | // A bunch of functions to implement the ADNS5050-specific serial protocol. | ||
68 | // Note that the "serial.h" driver is insufficient, because it does not | ||
69 | // manually manipulate a serial clock signal. | ||
70 | void adns_init(void); | ||
71 | void adns_sync(void); | ||
72 | uint8_t adns_serial_read(void); | ||
73 | void adns_serial_write(uint8_t data); | ||
74 | uint8_t adns_read_reg(uint8_t reg_addr); | ||
75 | void adns_write_reg(uint8_t reg_addr, uint8_t data); | ||
76 | report_adns_t adns_read_burst(void); | ||
77 | int8_t convert_twoscomp(uint8_t data); | ||
78 | void adns_set_cpi(uint8_t cpi); | ||
79 | bool adns_check_signature(void); | ||
diff --git a/keyboards/ploopyco/mouse/mouse.h b/keyboards/ploopyco/mouse/mouse.h index 5d49d2f2d..d11aa5e9a 100644 --- a/keyboards/ploopyco/mouse/mouse.h +++ b/keyboards/ploopyco/mouse/mouse.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include "quantum.h" | 21 | #include "quantum.h" |
22 | #include "spi_master.h" | 22 | #include "spi_master.h" |
23 | #include "pmw3360.h" | 23 | #include "drivers/sensors/pmw3360.h" |
24 | #include "analog.h" | 24 | #include "analog.h" |
25 | #include "opt_encoder.h" | 25 | #include "opt_encoder.h" |
26 | #include "pointing_device.h" | 26 | #include "pointing_device.h" |
diff --git a/keyboards/ploopyco/mouse/rules.mk b/keyboards/ploopyco/mouse/rules.mk index f998672f1..17aac9801 100644 --- a/keyboards/ploopyco/mouse/rules.mk +++ b/keyboards/ploopyco/mouse/rules.mk | |||
@@ -27,4 +27,4 @@ POINTING_DEVICE_ENABLE = yes | |||
27 | MOUSEKEY_ENABLE = yes # Mouse keys | 27 | MOUSEKEY_ENABLE = yes # Mouse keys |
28 | 28 | ||
29 | QUANTUM_LIB_SRC += analog.c spi_master.c | 29 | QUANTUM_LIB_SRC += analog.c spi_master.c |
30 | SRC += pmw3360.c opt_encoder.c | 30 | SRC += drivers/sensors/pmw3360.c opt_encoder.c |
diff --git a/keyboards/ploopyco/pmw3360.c b/keyboards/ploopyco/pmw3360.c deleted file mode 100644 index 5f9f72a9e..000000000 --- a/keyboards/ploopyco/pmw3360.c +++ /dev/null | |||
@@ -1,218 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #include "wait.h" | ||
20 | #include "debug.h" | ||
21 | #include "print.h" | ||
22 | #include "pmw3360.h" | ||
23 | #include "pmw3360_firmware.h" | ||
24 | |||
25 | bool _inBurst = false; | ||
26 | |||
27 | #ifndef PMW_CPI | ||
28 | # define PMW_CPI 1600 | ||
29 | #endif | ||
30 | #ifndef SPI_DIVISOR | ||
31 | # define SPI_DIVISOR 2 | ||
32 | #endif | ||
33 | #ifndef ROTATIONAL_TRANSFORM_ANGLE | ||
34 | # define ROTATIONAL_TRANSFORM_ANGLE 0x00 | ||
35 | #endif | ||
36 | |||
37 | void print_byte(uint8_t byte) { dprintf("%c%c%c%c%c%c%c%c|", (byte & 0x80 ? '1' : '0'), (byte & 0x40 ? '1' : '0'), (byte & 0x20 ? '1' : '0'), (byte & 0x10 ? '1' : '0'), (byte & 0x08 ? '1' : '0'), (byte & 0x04 ? '1' : '0'), (byte & 0x02 ? '1' : '0'), (byte & 0x01 ? '1' : '0')); } | ||
38 | |||
39 | |||
40 | bool spi_start_adv(void) { | ||
41 | bool status = spi_start(SPI_SS_PIN, false, 3, SPI_DIVISOR); | ||
42 | wait_us(1); | ||
43 | return status; | ||
44 | } | ||
45 | |||
46 | void spi_stop_adv(void) { | ||
47 | wait_us(1); | ||
48 | spi_stop(); | ||
49 | } | ||
50 | |||
51 | spi_status_t spi_write_adv(uint8_t reg_addr, uint8_t data) { | ||
52 | if (reg_addr != REG_Motion_Burst) { | ||
53 | _inBurst = false; | ||
54 | } | ||
55 | |||
56 | spi_start_adv(); | ||
57 | // send address of the register, with MSBit = 1 to indicate it's a write | ||
58 | spi_status_t status = spi_write(reg_addr | 0x80); | ||
59 | status = spi_write(data); | ||
60 | |||
61 | // tSCLK-NCS for write operation | ||
62 | wait_us(20); | ||
63 | |||
64 | // tSWW/tSWR (=120us) minus tSCLK-NCS. Could be shortened, but is looks like a safe lower bound | ||
65 | wait_us(100); | ||
66 | spi_stop(); | ||
67 | return status; | ||
68 | } | ||
69 | |||
70 | uint8_t spi_read_adv(uint8_t reg_addr) { | ||
71 | spi_start_adv(); | ||
72 | // send adress of the register, with MSBit = 0 to indicate it's a read | ||
73 | spi_write(reg_addr & 0x7f); | ||
74 | |||
75 | uint8_t data = spi_read(); | ||
76 | |||
77 | // tSCLK-NCS for read operation is 120ns | ||
78 | wait_us(1); | ||
79 | |||
80 | // tSRW/tSRR (=20us) minus tSCLK-NCS | ||
81 | wait_us(19); | ||
82 | |||
83 | spi_stop(); | ||
84 | return data; | ||
85 | } | ||
86 | |||
87 | void pmw_set_cpi(uint16_t cpi) { | ||
88 | int cpival = constrain((cpi / 100) - 1, 0, 0x77); // limits to 0--119 | ||
89 | |||
90 | spi_start_adv(); | ||
91 | spi_write_adv(REG_Config1, cpival); | ||
92 | spi_stop(); | ||
93 | } | ||
94 | |||
95 | bool pmw_spi_init(void) { | ||
96 | spi_init(); | ||
97 | _inBurst = false; | ||
98 | |||
99 | spi_stop(); | ||
100 | spi_start_adv(); | ||
101 | spi_stop(); | ||
102 | |||
103 | spi_write_adv(REG_Shutdown, 0xb6); // Shutdown first | ||
104 | wait_ms(300); | ||
105 | |||
106 | spi_start_adv(); | ||
107 | wait_us(40); | ||
108 | spi_stop_adv(); | ||
109 | wait_us(40); | ||
110 | |||
111 | spi_write_adv(REG_Power_Up_Reset, 0x5a); | ||
112 | wait_ms(50); | ||
113 | |||
114 | spi_read_adv(REG_Motion); | ||
115 | spi_read_adv(REG_Delta_X_L); | ||
116 | spi_read_adv(REG_Delta_X_H); | ||
117 | spi_read_adv(REG_Delta_Y_L); | ||
118 | spi_read_adv(REG_Delta_Y_H); | ||
119 | |||
120 | pmw_upload_firmware(); | ||
121 | |||
122 | spi_stop_adv(); | ||
123 | |||
124 | wait_ms(10); | ||
125 | pmw_set_cpi(PMW_CPI); | ||
126 | |||
127 | wait_ms(1); | ||
128 | |||
129 | return pmw_check_signature(); | ||
130 | } | ||
131 | |||
132 | void pmw_upload_firmware(void) { | ||
133 | spi_write_adv(REG_Config2, 0x00); | ||
134 | |||
135 | spi_write_adv(REG_Angle_Tune, constrain(ROTATIONAL_TRANSFORM_ANGLE, -30, 30)); | ||
136 | |||
137 | spi_write_adv(REG_SROM_Enable, 0x1d); | ||
138 | |||
139 | wait_ms(10); | ||
140 | |||
141 | spi_write_adv(REG_SROM_Enable, 0x18); | ||
142 | |||
143 | spi_start_adv(); | ||
144 | spi_write(REG_SROM_Load_Burst | 0x80); | ||
145 | wait_us(15); | ||
146 | |||
147 | unsigned char c; | ||
148 | for (int i = 0; i < firmware_length; i++) { | ||
149 | c = (unsigned char)pgm_read_byte(firmware_data + i); | ||
150 | spi_write(c); | ||
151 | wait_us(15); | ||
152 | } | ||
153 | wait_us(200); | ||
154 | |||
155 | spi_read_adv(REG_SROM_ID); | ||
156 | |||
157 | spi_write_adv(REG_Config2, 0x00); | ||
158 | |||
159 | spi_stop(); | ||
160 | wait_ms(10); | ||
161 | } | ||
162 | |||
163 | bool pmw_check_signature(void) { | ||
164 | uint8_t pid = spi_read_adv(REG_Product_ID); | ||
165 | uint8_t iv_pid = spi_read_adv(REG_Inverse_Product_ID); | ||
166 | uint8_t SROM_ver = spi_read_adv(REG_SROM_ID); | ||
167 | return (pid == 0x42 && iv_pid == 0xBD && SROM_ver == 0x04); // signature for SROM 0x04 | ||
168 | } | ||
169 | |||
170 | report_pmw_t pmw_read_burst(void) { | ||
171 | if (!_inBurst) { | ||
172 | dprintf("burst on"); | ||
173 | spi_write_adv(REG_Motion_Burst, 0x00); | ||
174 | _inBurst = true; | ||
175 | } | ||
176 | |||
177 | spi_start_adv(); | ||
178 | spi_write(REG_Motion_Burst); | ||
179 | wait_us(35); // waits for tSRAD | ||
180 | |||
181 | report_pmw_t data; | ||
182 | data.motion = 0; | ||
183 | data.dx = 0; | ||
184 | data.mdx = 0; | ||
185 | data.dy = 0; | ||
186 | data.mdx = 0; | ||
187 | |||
188 | data.motion = spi_read(); | ||
189 | spi_write(0x00); // skip Observation | ||
190 | data.dx = spi_read(); | ||
191 | data.mdx = spi_read(); | ||
192 | data.dy = spi_read(); | ||
193 | data.mdy = spi_read(); | ||
194 | |||
195 | spi_stop(); | ||
196 | |||
197 | print_byte(data.motion); | ||
198 | print_byte(data.dx); | ||
199 | print_byte(data.mdx); | ||
200 | print_byte(data.dy); | ||
201 | print_byte(data.mdy); | ||
202 | dprintf("\n"); | ||
203 | |||
204 | data.isMotion = (data.motion & 0x80) != 0; | ||
205 | data.isOnSurface = (data.motion & 0x08) == 0; | ||
206 | data.dx |= (data.mdx << 8); | ||
207 | data.dx = data.dx * -1; | ||
208 | data.dy |= (data.mdy << 8); | ||
209 | data.dy = data.dy * -1; | ||
210 | |||
211 | spi_stop(); | ||
212 | |||
213 | if (data.motion & 0b111) { // panic recovery, sometimes burst mode works weird. | ||
214 | _inBurst = false; | ||
215 | } | ||
216 | |||
217 | return data; | ||
218 | } | ||
diff --git a/keyboards/ploopyco/pmw3360.h b/keyboards/ploopyco/pmw3360.h deleted file mode 100644 index c1d5e3bad..000000000 --- a/keyboards/ploopyco/pmw3360.h +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #include "spi_master.h" | ||
22 | |||
23 | // Registers | ||
24 | #define REG_Product_ID 0x00 | ||
25 | #define REG_Revision_ID 0x01 | ||
26 | #define REG_Motion 0x02 | ||
27 | #define REG_Delta_X_L 0x03 | ||
28 | #define REG_Delta_X_H 0x04 | ||
29 | #define REG_Delta_Y_L 0x05 | ||
30 | #define REG_Delta_Y_H 0x06 | ||
31 | #define REG_SQUAL 0x07 | ||
32 | #define REG_Raw_Data_Sum 0x08 | ||
33 | #define REG_Maximum_Raw_data 0x09 | ||
34 | #define REG_Minimum_Raw_data 0x0A | ||
35 | #define REG_Shutter_Lower 0x0B | ||
36 | #define REG_Shutter_Upper 0x0C | ||
37 | #define REG_Control 0x0D | ||
38 | #define REG_Config1 0x0F | ||
39 | #define REG_Config2 0x10 | ||
40 | #define REG_Angle_Tune 0x11 | ||
41 | #define REG_Frame_Capture 0x12 | ||
42 | #define REG_SROM_Enable 0x13 | ||
43 | #define REG_Run_Downshift 0x14 | ||
44 | #define REG_Rest1_Rate_Lower 0x15 | ||
45 | #define REG_Rest1_Rate_Upper 0x16 | ||
46 | #define REG_Rest1_Downshift 0x17 | ||
47 | #define REG_Rest2_Rate_Lower 0x18 | ||
48 | #define REG_Rest2_Rate_Upper 0x19 | ||
49 | #define REG_Rest2_Downshift 0x1A | ||
50 | #define REG_Rest3_Rate_Lower 0x1B | ||
51 | #define REG_Rest3_Rate_Upper 0x1C | ||
52 | #define REG_Observation 0x24 | ||
53 | #define REG_Data_Out_Lower 0x25 | ||
54 | #define REG_Data_Out_Upper 0x26 | ||
55 | #define REG_Raw_Data_Dump 0x29 | ||
56 | #define REG_SROM_ID 0x2A | ||
57 | #define REG_Min_SQ_Run 0x2B | ||
58 | #define REG_Raw_Data_Threshold 0x2C | ||
59 | #define REG_Config5 0x2F | ||
60 | #define REG_Power_Up_Reset 0x3A | ||
61 | #define REG_Shutdown 0x3B | ||
62 | #define REG_Inverse_Product_ID 0x3F | ||
63 | #define REG_LiftCutoff_Tune3 0x41 | ||
64 | #define REG_Angle_Snap 0x42 | ||
65 | #define REG_LiftCutoff_Tune1 0x4A | ||
66 | #define REG_Motion_Burst 0x50 | ||
67 | #define REG_LiftCutoff_Tune_Timeout 0x58 | ||
68 | #define REG_LiftCutoff_Tune_Min_Length 0x5A | ||
69 | #define REG_SROM_Load_Burst 0x62 | ||
70 | #define REG_Lift_Config 0x63 | ||
71 | #define REG_Raw_Data_Burst 0x64 | ||
72 | #define REG_LiftCutoff_Tune2 0x65 | ||
73 | |||
74 | #ifdef CONSOLE_ENABLE | ||
75 | void print_byte(uint8_t byte); | ||
76 | #endif | ||
77 | |||
78 | typedef struct { | ||
79 | int8_t motion; | ||
80 | bool isMotion; // True if a motion is detected. | ||
81 | bool isOnSurface; // True when a chip is on a surface | ||
82 | int16_t dx; // displacement on x directions. Unit: Count. (CPI * Count = Inch value) | ||
83 | int8_t mdx; | ||
84 | int16_t dy; // displacement on y directions. | ||
85 | int8_t mdy; | ||
86 | } report_pmw_t; | ||
87 | |||
88 | |||
89 | |||
90 | bool spi_start_adv(void); | ||
91 | void spi_stop_adv(void); | ||
92 | spi_status_t spi_write_adv(uint8_t reg_addr, uint8_t data); | ||
93 | uint8_t spi_read_adv(uint8_t reg_addr); | ||
94 | bool pmw_spi_init(void); | ||
95 | void pmw_set_cpi(uint16_t cpi); | ||
96 | void pmw_upload_firmware(void); | ||
97 | bool pmw_check_signature(void); | ||
98 | report_pmw_t pmw_read_burst(void); | ||
99 | |||
100 | |||
101 | #define degToRad(angleInDegrees) ((angleInDegrees)*M_PI / 180.0) | ||
102 | #define radToDeg(angleInRadians) ((angleInRadians)*180.0 / M_PI) | ||
103 | #define constrain(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) | ||
diff --git a/keyboards/ploopyco/pmw3360_firmware.h b/keyboards/ploopyco/pmw3360_firmware.h deleted file mode 100644 index cca5a6a4d..000000000 --- a/keyboards/ploopyco/pmw3360_firmware.h +++ /dev/null | |||
@@ -1,300 +0,0 @@ | |||
1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
2 | * Copyright 2019 Sunjun Kim | ||
3 | * Copyright 2020 Ploopy Corporation | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation, either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | // clang-format off | ||
22 | // Firmware Blob foor PMW3360 | ||
23 | const uint16_t firmware_length = 4094; | ||
24 | // clang-format off | ||
25 | const uint8_t firmware_data[] PROGMEM = { // SROM 0x04 | ||
26 | 0x01, 0x04, 0x8e, 0x96, 0x6e, 0x77, 0x3e, 0xfe, 0x7e, 0x5f, 0x1d, 0xb8, 0xf2, 0x66, 0x4e, | ||
27 | 0xff, 0x5d, 0x19, 0xb0, 0xc2, 0x04, 0x69, 0x54, 0x2a, 0xd6, 0x2e, 0xbf, 0xdd, 0x19, 0xb0, | ||
28 | 0xc3, 0xe5, 0x29, 0xb1, 0xe0, 0x23, 0xa5, 0xa9, 0xb1, 0xc1, 0x00, 0x82, 0x67, 0x4c, 0x1a, | ||
29 | 0x97, 0x8d, 0x79, 0x51, 0x20, 0xc7, 0x06, 0x8e, 0x7c, 0x7c, 0x7a, 0x76, 0x4f, 0xfd, 0x59, | ||
30 | 0x30, 0xe2, 0x46, 0x0e, 0x9e, 0xbe, 0xdf, 0x1d, 0x99, 0x91, 0xa0, 0xa5, 0xa1, 0xa9, 0xd0, | ||
31 | 0x22, 0xc6, 0xef, 0x5c, 0x1b, 0x95, 0x89, 0x90, 0xa2, 0xa7, 0xcc, 0xfb, 0x55, 0x28, 0xb3, | ||
32 | 0xe4, 0x4a, 0xf7, 0x6c, 0x3b, 0xf4, 0x6a, 0x56, 0x2e, 0xde, 0x1f, 0x9d, 0xb8, 0xd3, 0x05, | ||
33 | 0x88, 0x92, 0xa6, 0xce, 0x1e, 0xbe, 0xdf, 0x1d, 0x99, 0xb0, 0xe2, 0x46, 0xef, 0x5c, 0x07, | ||
34 | 0x11, 0x5d, 0x98, 0x0b, 0x9d, 0x94, 0x97, 0xee, 0x4e, 0x45, 0x33, 0x6b, 0x44, 0xc7, 0x29, | ||
35 | 0x56, 0x27, 0x30, 0xc6, 0xa7, 0xd5, 0xf2, 0x56, 0xdf, 0xb4, 0x38, 0x62, 0xcb, 0xa0, 0xb6, | ||
36 | 0xe3, 0x0f, 0x84, 0x06, 0x24, 0x05, 0x65, 0x6f, 0x76, 0x89, 0xb5, 0x77, 0x41, 0x27, 0x82, | ||
37 | 0x66, 0x65, 0x82, 0xcc, 0xd5, 0xe6, 0x20, 0xd5, 0x27, 0x17, 0xc5, 0xf8, 0x03, 0x23, 0x7c, | ||
38 | 0x5f, 0x64, 0xa5, 0x1d, 0xc1, 0xd6, 0x36, 0xcb, 0x4c, 0xd4, 0xdb, 0x66, 0xd7, 0x8b, 0xb1, | ||
39 | 0x99, 0x7e, 0x6f, 0x4c, 0x36, 0x40, 0x06, 0xd6, 0xeb, 0xd7, 0xa2, 0xe4, 0xf4, 0x95, 0x51, | ||
40 | 0x5a, 0x54, 0x96, 0xd5, 0x53, 0x44, 0xd7, 0x8c, 0xe0, 0xb9, 0x40, 0x68, 0xd2, 0x18, 0xe9, | ||
41 | 0xdd, 0x9a, 0x23, 0x92, 0x48, 0xee, 0x7f, 0x43, 0xaf, 0xea, 0x77, 0x38, 0x84, 0x8c, 0x0a, | ||
42 | 0x72, 0xaf, 0x69, 0xf8, 0xdd, 0xf1, 0x24, 0x83, 0xa3, 0xf8, 0x4a, 0xbf, 0xf5, 0x94, 0x13, | ||
43 | 0xdb, 0xbb, 0xd8, 0xb4, 0xb3, 0xa0, 0xfb, 0x45, 0x50, 0x60, 0x30, 0x59, 0x12, 0x31, 0x71, | ||
44 | 0xa2, 0xd3, 0x13, 0xe7, 0xfa, 0xe7, 0xce, 0x0f, 0x63, 0x15, 0x0b, 0x6b, 0x94, 0xbb, 0x37, | ||
45 | 0x83, 0x26, 0x05, 0x9d, 0xfb, 0x46, 0x92, 0xfc, 0x0a, 0x15, 0xd1, 0x0d, 0x73, 0x92, 0xd6, | ||
46 | 0x8c, 0x1b, 0x8c, 0xb8, 0x55, 0x8a, 0xce, 0xbd, 0xfe, 0x8e, 0xfc, 0xed, 0x09, 0x12, 0x83, | ||
47 | 0x91, 0x82, 0x51, 0x31, 0x23, 0xfb, 0xb4, 0x0c, 0x76, 0xad, 0x7c, 0xd9, 0xb4, 0x4b, 0xb2, | ||
48 | 0x67, 0x14, 0x09, 0x9c, 0x7f, 0x0c, 0x18, 0xba, 0x3b, 0xd6, 0x8e, 0x14, 0x2a, 0xe4, 0x1b, | ||
49 | 0x52, 0x9f, 0x2b, 0x7d, 0xe1, 0xfb, 0x6a, 0x33, 0x02, 0xfa, 0xac, 0x5a, 0xf2, 0x3e, 0x88, | ||
50 | 0x7e, 0xae, 0xd1, 0xf3, 0x78, 0xe8, 0x05, 0xd1, 0xe3, 0xdc, 0x21, 0xf6, 0xe1, 0x9a, 0xbd, | ||
51 | 0x17, 0x0e, 0xd9, 0x46, 0x9b, 0x88, 0x03, 0xea, 0xf6, 0x66, 0xbe, 0x0e, 0x1b, 0x50, 0x49, | ||
52 | 0x96, 0x40, 0x97, 0xf1, 0xf1, 0xe4, 0x80, 0xa6, 0x6e, 0xe8, 0x77, 0x34, 0xbf, 0x29, 0x40, | ||
53 | 0x44, 0xc2, 0xff, 0x4e, 0x98, 0xd3, 0x9c, 0xa3, 0x32, 0x2b, 0x76, 0x51, 0x04, 0x09, 0xe7, | ||
54 | 0xa9, 0xd1, 0xa6, 0x32, 0xb1, 0x23, 0x53, 0xe2, 0x47, 0xab, 0xd6, 0xf5, 0x69, 0x5c, 0x3e, | ||
55 | 0x5f, 0xfa, 0xae, 0x45, 0x20, 0xe5, 0xd2, 0x44, 0xff, 0x39, 0x32, 0x6d, 0xfd, 0x27, 0x57, | ||
56 | 0x5c, 0xfd, 0xf0, 0xde, 0xc1, 0xb5, 0x99, 0xe5, 0xf5, 0x1c, 0x77, 0x01, 0x75, 0xc5, 0x6d, | ||
57 | 0x58, 0x92, 0xf2, 0xb2, 0x47, 0x00, 0x01, 0x26, 0x96, 0x7a, 0x30, 0xff, 0xb7, 0xf0, 0xef, | ||
58 | 0x77, 0xc1, 0x8a, 0x5d, 0xdc, 0xc0, 0xd1, 0x29, 0x30, 0x1e, 0x77, 0x38, 0x7a, 0x94, 0xf1, | ||
59 | 0xb8, 0x7a, 0x7e, 0xef, 0xa4, 0xd1, 0xac, 0x31, 0x4a, 0xf2, 0x5d, 0x64, 0x3d, 0xb2, 0xe2, | ||
60 | 0xf0, 0x08, 0x99, 0xfc, 0x70, 0xee, 0x24, 0xa7, 0x7e, 0xee, 0x1e, 0x20, 0x69, 0x7d, 0x44, | ||
61 | 0xbf, 0x87, 0x42, 0xdf, 0x88, 0x3b, 0x0c, 0xda, 0x42, 0xc9, 0x04, 0xf9, 0x45, 0x50, 0xfc, | ||
62 | 0x83, 0x8f, 0x11, 0x6a, 0x72, 0xbc, 0x99, 0x95, 0xf0, 0xac, 0x3d, 0xa7, 0x3b, 0xcd, 0x1c, | ||
63 | 0xe2, 0x88, 0x79, 0x37, 0x11, 0x5f, 0x39, 0x89, 0x95, 0x0a, 0x16, 0x84, 0x7a, 0xf6, 0x8a, | ||
64 | 0xa4, 0x28, 0xe4, 0xed, 0x83, 0x80, 0x3b, 0xb1, 0x23, 0xa5, 0x03, 0x10, 0xf4, 0x66, 0xea, | ||
65 | 0xbb, 0x0c, 0x0f, 0xc5, 0xec, 0x6c, 0x69, 0xc5, 0xd3, 0x24, 0xab, 0xd4, 0x2a, 0xb7, 0x99, | ||
66 | 0x88, 0x76, 0x08, 0xa0, 0xa8, 0x95, 0x7c, 0xd8, 0x38, 0x6d, 0xcd, 0x59, 0x02, 0x51, 0x4b, | ||
67 | 0xf1, 0xb5, 0x2b, 0x50, 0xe3, 0xb6, 0xbd, 0xd0, 0x72, 0xcf, 0x9e, 0xfd, 0x6e, 0xbb, 0x44, | ||
68 | 0xc8, 0x24, 0x8a, 0x77, 0x18, 0x8a, 0x13, 0x06, 0xef, 0x97, 0x7d, 0xfa, 0x81, 0xf0, 0x31, | ||
69 | 0xe6, 0xfa, 0x77, 0xed, 0x31, 0x06, 0x31, 0x5b, 0x54, 0x8a, 0x9f, 0x30, 0x68, 0xdb, 0xe2, | ||
70 | 0x40, 0xf8, 0x4e, 0x73, 0xfa, 0xab, 0x74, 0x8b, 0x10, 0x58, 0x13, 0xdc, 0xd2, 0xe6, 0x78, | ||
71 | 0xd1, 0x32, 0x2e, 0x8a, 0x9f, 0x2c, 0x58, 0x06, 0x48, 0x27, 0xc5, 0xa9, 0x5e, 0x81, 0x47, | ||
72 | 0x89, 0x46, 0x21, 0x91, 0x03, 0x70, 0xa4, 0x3e, 0x88, 0x9c, 0xda, 0x33, 0x0a, 0xce, 0xbc, | ||
73 | 0x8b, 0x8e, 0xcf, 0x9f, 0xd3, 0x71, 0x80, 0x43, 0xcf, 0x6b, 0xa9, 0x51, 0x83, 0x76, 0x30, | ||
74 | 0x82, 0xc5, 0x6a, 0x85, 0x39, 0x11, 0x50, 0x1a, 0x82, 0xdc, 0x1e, 0x1c, 0xd5, 0x7d, 0xa9, | ||
75 | 0x71, 0x99, 0x33, 0x47, 0x19, 0x97, 0xb3, 0x5a, 0xb1, 0xdf, 0xed, 0xa4, 0xf2, 0xe6, 0x26, | ||
76 | 0x84, 0xa2, 0x28, 0x9a, 0x9e, 0xdf, 0xa6, 0x6a, 0xf4, 0xd6, 0xfc, 0x2e, 0x5b, 0x9d, 0x1a, | ||
77 | 0x2a, 0x27, 0x68, 0xfb, 0xc1, 0x83, 0x21, 0x4b, 0x90, 0xe0, 0x36, 0xdd, 0x5b, 0x31, 0x42, | ||
78 | 0x55, 0xa0, 0x13, 0xf7, 0xd0, 0x89, 0x53, 0x71, 0x99, 0x57, 0x09, 0x29, 0xc5, 0xf3, 0x21, | ||
79 | 0xf8, 0x37, 0x2f, 0x40, 0xf3, 0xd4, 0xaf, 0x16, 0x08, 0x36, 0x02, 0xfc, 0x77, 0xc5, 0x8b, | ||
80 | 0x04, 0x90, 0x56, 0xb9, 0xc9, 0x67, 0x9a, 0x99, 0xe8, 0x00, 0xd3, 0x86, 0xff, 0x97, 0x2d, | ||
81 | 0x08, 0xe9, 0xb7, 0xb3, 0x91, 0xbc, 0xdf, 0x45, 0xc6, 0xed, 0x0f, 0x8c, 0x4c, 0x1e, 0xe6, | ||
82 | 0x5b, 0x6e, 0x38, 0x30, 0xe4, 0xaa, 0xe3, 0x95, 0xde, 0xb9, 0xe4, 0x9a, 0xf5, 0xb2, 0x55, | ||
83 | 0x9a, 0x87, 0x9b, 0xf6, 0x6a, 0xb2, 0xf2, 0x77, 0x9a, 0x31, 0xf4, 0x7a, 0x31, 0xd1, 0x1d, | ||
84 | 0x04, 0xc0, 0x7c, 0x32, 0xa2, 0x9e, 0x9a, 0xf5, 0x62, 0xf8, 0x27, 0x8d, 0xbf, 0x51, 0xff, | ||
85 | 0xd3, 0xdf, 0x64, 0x37, 0x3f, 0x2a, 0x6f, 0x76, 0x3a, 0x7d, 0x77, 0x06, 0x9e, 0x77, 0x7f, | ||
86 | 0x5e, 0xeb, 0x32, 0x51, 0xf9, 0x16, 0x66, 0x9a, 0x09, 0xf3, 0xb0, 0x08, 0xa4, 0x70, 0x96, | ||
87 | 0x46, 0x30, 0xff, 0xda, 0x4f, 0xe9, 0x1b, 0xed, 0x8d, 0xf8, 0x74, 0x1f, 0x31, 0x92, 0xb3, | ||
88 | 0x73, 0x17, 0x36, 0xdb, 0x91, 0x30, 0xd6, 0x88, 0x55, 0x6b, 0x34, 0x77, 0x87, 0x7a, 0xe7, | ||
89 | 0xee, 0x06, 0xc6, 0x1c, 0x8c, 0x19, 0x0c, 0x48, 0x46, 0x23, 0x5e, 0x9c, 0x07, 0x5c, 0xbf, | ||
90 | 0xb4, 0x7e, 0xd6, 0x4f, 0x74, 0x9c, 0xe2, 0xc5, 0x50, 0x8b, 0xc5, 0x8b, 0x15, 0x90, 0x60, | ||
91 | 0x62, 0x57, 0x29, 0xd0, 0x13, 0x43, 0xa1, 0x80, 0x88, 0x91, 0x00, 0x44, 0xc7, 0x4d, 0x19, | ||
92 | 0x86, 0xcc, 0x2f, 0x2a, 0x75, 0x5a, 0xfc, 0xeb, 0x97, 0x2a, 0x70, 0xe3, 0x78, 0xd8, 0x91, | ||
93 | 0xb0, 0x4f, 0x99, 0x07, 0xa3, 0x95, 0xea, 0x24, 0x21, 0xd5, 0xde, 0x51, 0x20, 0x93, 0x27, | ||
94 | 0x0a, 0x30, 0x73, 0xa8, 0xff, 0x8a, 0x97, 0xe9, 0xa7, 0x6a, 0x8e, 0x0d, 0xe8, 0xf0, 0xdf, | ||
95 | 0xec, 0xea, 0xb4, 0x6c, 0x1d, 0x39, 0x2a, 0x62, 0x2d, 0x3d, 0x5a, 0x8b, 0x65, 0xf8, 0x90, | ||
96 | 0x05, 0x2e, 0x7e, 0x91, 0x2c, 0x78, 0xef, 0x8e, 0x7a, 0xc1, 0x2f, 0xac, 0x78, 0xee, 0xaf, | ||
97 | 0x28, 0x45, 0x06, 0x4c, 0x26, 0xaf, 0x3b, 0xa2, 0xdb, 0xa3, 0x93, 0x06, 0xb5, 0x3c, 0xa5, | ||
98 | 0xd8, 0xee, 0x8f, 0xaf, 0x25, 0xcc, 0x3f, 0x85, 0x68, 0x48, 0xa9, 0x62, 0xcc, 0x97, 0x8f, | ||
99 | 0x7f, 0x2a, 0xea, 0xe0, 0x15, 0x0a, 0xad, 0x62, 0x07, 0xbd, 0x45, 0xf8, 0x41, 0xd8, 0x36, | ||
100 | 0xcb, 0x4c, 0xdb, 0x6e, 0xe6, 0x3a, 0xe7, 0xda, 0x15, 0xe9, 0x29, 0x1e, 0x12, 0x10, 0xa0, | ||
101 | 0x14, 0x2c, 0x0e, 0x3d, 0xf4, 0xbf, 0x39, 0x41, 0x92, 0x75, 0x0b, 0x25, 0x7b, 0xa3, 0xce, | ||
102 | 0x39, 0x9c, 0x15, 0x64, 0xc8, 0xfa, 0x3d, 0xef, 0x73, 0x27, 0xfe, 0x26, 0x2e, 0xce, 0xda, | ||
103 | 0x6e, 0xfd, 0x71, 0x8e, 0xdd, 0xfe, 0x76, 0xee, 0xdc, 0x12, 0x5c, 0x02, 0xc5, 0x3a, 0x4e, | ||
104 | 0x4e, 0x4f, 0xbf, 0xca, 0x40, 0x15, 0xc7, 0x6e, 0x8d, 0x41, 0xf1, 0x10, 0xe0, 0x4f, 0x7e, | ||
105 | 0x97, 0x7f, 0x1c, 0xae, 0x47, 0x8e, 0x6b, 0xb1, 0x25, 0x31, 0xb0, 0x73, 0xc7, 0x1b, 0x97, | ||
106 | 0x79, 0xf9, 0x80, 0xd3, 0x66, 0x22, 0x30, 0x07, 0x74, 0x1e, 0xe4, 0xd0, 0x80, 0x21, 0xd6, | ||
107 | 0xee, 0x6b, 0x6c, 0x4f, 0xbf, 0xf5, 0xb7, 0xd9, 0x09, 0x87, 0x2f, 0xa9, 0x14, 0xbe, 0x27, | ||
108 | 0xd9, 0x72, 0x50, 0x01, 0xd4, 0x13, 0x73, 0xa6, 0xa7, 0x51, 0x02, 0x75, 0x25, 0xe1, 0xb3, | ||
109 | 0x45, 0x34, 0x7d, 0xa8, 0x8e, 0xeb, 0xf3, 0x16, 0x49, 0xcb, 0x4f, 0x8c, 0xa1, 0xb9, 0x36, | ||
110 | 0x85, 0x39, 0x75, 0x5d, 0x08, 0x00, 0xae, 0xeb, 0xf6, 0xea, 0xd7, 0x13, 0x3a, 0x21, 0x5a, | ||
111 | 0x5f, 0x30, 0x84, 0x52, 0x26, 0x95, 0xc9, 0x14, 0xf2, 0x57, 0x55, 0x6b, 0xb1, 0x10, 0xc2, | ||
112 | 0xe1, 0xbd, 0x3b, 0x51, 0xc0, 0xb7, 0x55, 0x4c, 0x71, 0x12, 0x26, 0xc7, 0x0d, 0xf9, 0x51, | ||
113 | 0xa4, 0x38, 0x02, 0x05, 0x7f, 0xb8, 0xf1, 0x72, 0x4b, 0xbf, 0x71, 0x89, 0x14, 0xf3, 0x77, | ||
114 | 0x38, 0xd9, 0x71, 0x24, 0xf3, 0x00, 0x11, 0xa1, 0xd8, 0xd4, 0x69, 0x27, 0x08, 0x37, 0x35, | ||
115 | 0xc9, 0x11, 0x9d, 0x90, 0x1c, 0x0e, 0xe7, 0x1c, 0xff, 0x2d, 0x1e, 0xe8, 0x92, 0xe1, 0x18, | ||
116 | 0x10, 0x95, 0x7c, 0xe0, 0x80, 0xf4, 0x96, 0x43, 0x21, 0xf9, 0x75, 0x21, 0x64, 0x38, 0xdd, | ||
117 | 0x9f, 0x1e, 0x95, 0x16, 0xda, 0x56, 0x1d, 0x4f, 0x9a, 0x53, 0xb2, 0xe2, 0xe4, 0x18, 0xcb, | ||
118 | 0x6b, 0x1a, 0x65, 0xeb, 0x56, 0xc6, 0x3b, 0xe5, 0xfe, 0xd8, 0x26, 0x3f, 0x3a, 0x84, 0x59, | ||
119 | 0x72, 0x66, 0xa2, 0xf3, 0x75, 0xff, 0xfb, 0x60, 0xb3, 0x22, 0xad, 0x3f, 0x2d, 0x6b, 0xf9, | ||
120 | 0xeb, 0xea, 0x05, 0x7c, 0xd8, 0x8f, 0x6d, 0x2c, 0x98, 0x9e, 0x2b, 0x93, 0xf1, 0x5e, 0x46, | ||
121 | 0xf0, 0x87, 0x49, 0x29, 0x73, 0x68, 0xd7, 0x7f, 0xf9, 0xf0, 0xe5, 0x7d, 0xdb, 0x1d, 0x75, | ||
122 | 0x19, 0xf3, 0xc4, 0x58, 0x9b, 0x17, 0x88, 0xa8, 0x92, 0xe0, 0xbe, 0xbd, 0x8b, 0x1d, 0x8d, | ||
123 | 0x9f, 0x56, 0x76, 0xad, 0xaf, 0x29, 0xe2, 0xd9, 0xd5, 0x52, 0xf6, 0xb5, 0x56, 0x35, 0x57, | ||
124 | 0x3a, 0xc8, 0xe1, 0x56, 0x43, 0x19, 0x94, 0xd3, 0x04, 0x9b, 0x6d, 0x35, 0xd8, 0x0b, 0x5f, | ||
125 | 0x4d, 0x19, 0x8e, 0xec, 0xfa, 0x64, 0x91, 0x0a, 0x72, 0x20, 0x2b, 0xbc, 0x1a, 0x4a, 0xfe, | ||
126 | 0x8b, 0xfd, 0xbb, 0xed, 0x1b, 0x23, 0xea, 0xad, 0x72, 0x82, 0xa1, 0x29, 0x99, 0x71, 0xbd, | ||
127 | 0xf0, 0x95, 0xc1, 0x03, 0xdd, 0x7b, 0xc2, 0xb2, 0x3c, 0x28, 0x54, 0xd3, 0x68, 0xa4, 0x72, | ||
128 | 0xc8, 0x66, 0x96, 0xe0, 0xd1, 0xd8, 0x7f, 0xf8, 0xd1, 0x26, 0x2b, 0xf7, 0xad, 0xba, 0x55, | ||
129 | 0xca, 0x15, 0xb9, 0x32, 0xc3, 0xe5, 0x88, 0x97, 0x8e, 0x5c, 0xfb, 0x92, 0x25, 0x8b, 0xbf, | ||
130 | 0xa2, 0x45, 0x55, 0x7a, 0xa7, 0x6f, 0x8b, 0x57, 0x5b, 0xcf, 0x0e, 0xcb, 0x1d, 0xfb, 0x20, | ||
131 | 0x82, 0x77, 0xa8, 0x8c, 0xcc, 0x16, 0xce, 0x1d, 0xfa, 0xde, 0xcc, 0x0b, 0x62, 0xfe, 0xcc, | ||
132 | 0xe1, 0xb7, 0xf0, 0xc3, 0x81, 0x64, 0x73, 0x40, 0xa0, 0xc2, 0x4d, 0x89, 0x11, 0x75, 0x33, | ||
133 | 0x55, 0x33, 0x8d, 0xe8, 0x4a, 0xfd, 0xea, 0x6e, 0x30, 0x0b, 0xd7, 0x31, 0x2c, 0xde, 0x47, | ||
134 | 0xe3, 0xbf, 0xf8, 0x55, 0x42, 0xe2, 0x7f, 0x59, 0xe5, 0x17, 0xef, 0x99, 0x34, 0x69, 0x91, | ||
135 | 0xb1, 0x23, 0x8e, 0x20, 0x87, 0x2d, 0xa8, 0xfe, 0xd5, 0x8a, 0xf3, 0x84, 0x3a, 0xf0, 0x37, | ||
136 | 0xe4, 0x09, 0x00, 0x54, 0xee, 0x67, 0x49, 0x93, 0xe4, 0x81, 0x70, 0xe3, 0x90, 0x4d, 0xef, | ||
137 | 0xfe, 0x41, 0xb7, 0x99, 0x7b, 0xc1, 0x83, 0xba, 0x62, 0x12, 0x6f, 0x7d, 0xde, 0x6b, 0xaf, | ||
138 | 0xda, 0x16, 0xf9, 0x55, 0x51, 0xee, 0xa6, 0x0c, 0x2b, 0x02, 0xa3, 0xfd, 0x8d, 0xfb, 0x30, | ||
139 | 0x17, 0xe4, 0x6f, 0xdf, 0x36, 0x71, 0xc4, 0xca, 0x87, 0x25, 0x48, 0xb0, 0x47, 0xec, 0xea, | ||
140 | 0xb4, 0xbf, 0xa5, 0x4d, 0x9b, 0x9f, 0x02, 0x93, 0xc4, 0xe3, 0xe4, 0xe8, 0x42, 0x2d, 0x68, | ||
141 | 0x81, 0x15, 0x0a, 0xeb, 0x84, 0x5b, 0xd6, 0xa8, 0x74, 0xfb, 0x7d, 0x1d, 0xcb, 0x2c, 0xda, | ||
142 | 0x46, 0x2a, 0x76, 0x62, 0xce, 0xbc, 0x5c, 0x9e, 0x8b, 0xe7, 0xcf, 0xbe, 0x78, 0xf5, 0x7c, | ||
143 | 0xeb, 0xb3, 0x3a, 0x9c, 0xaa, 0x6f, 0xcc, 0x72, 0xd1, 0x59, 0xf2, 0x11, 0x23, 0xd6, 0x3f, | ||
144 | 0x48, 0xd1, 0xb7, 0xce, 0xb0, 0xbf, 0xcb, 0xea, 0x80, 0xde, 0x57, 0xd4, 0x5e, 0x97, 0x2f, | ||
145 | 0x75, 0xd1, 0x50, 0x8e, 0x80, 0x2c, 0x66, 0x79, 0xbf, 0x72, 0x4b, 0xbd, 0x8a, 0x81, 0x6c, | ||
146 | 0xd3, 0xe1, 0x01, 0xdc, 0xd2, 0x15, 0x26, 0xc5, 0x36, 0xda, 0x2c, 0x1a, 0xc0, 0x27, 0x94, | ||
147 | 0xed, 0xb7, 0x9b, 0x85, 0x0b, 0x5e, 0x80, 0x97, 0xc5, 0xec, 0x4f, 0xec, 0x88, 0x5d, 0x50, | ||
148 | 0x07, 0x35, 0x47, 0xdc, 0x0b, 0x3b, 0x3d, 0xdd, 0x60, 0xaf, 0xa8, 0x5d, 0x81, 0x38, 0x24, | ||
149 | 0x25, 0x5d, 0x5c, 0x15, 0xd1, 0xde, 0xb3, 0xab, 0xec, 0x05, 0x69, 0xef, 0x83, 0xed, 0x57, | ||
150 | 0x54, 0xb8, 0x64, 0x64, 0x11, 0x16, 0x32, 0x69, 0xda, 0x9f, 0x2d, 0x7f, 0x36, 0xbb, 0x44, | ||
151 | 0x5a, 0x34, 0xe8, 0x7f, 0xbf, 0x03, 0xeb, 0x00, 0x7f, 0x59, 0x68, 0x22, 0x79, 0xcf, 0x73, | ||
152 | 0x6c, 0x2c, 0x29, 0xa7, 0xa1, 0x5f, 0x38, 0xa1, 0x1d, 0xf0, 0x20, 0x53, 0xe0, 0x1a, 0x63, | ||
153 | 0x14, 0x58, 0x71, 0x10, 0xaa, 0x08, 0x0c, 0x3e, 0x16, 0x1a, 0x60, 0x22, 0x82, 0x7f, 0xba, | ||
154 | 0xa4, 0x43, 0xa0, 0xd0, 0xac, 0x1b, 0xd5, 0x6b, 0x64, 0xb5, 0x14, 0x93, 0x31, 0x9e, 0x53, | ||
155 | 0x50, 0xd0, 0x57, 0x66, 0xee, 0x5a, 0x4f, 0xfb, 0x03, 0x2a, 0x69, 0x58, 0x76, 0xf1, 0x83, | ||
156 | 0xf7, 0x4e, 0xba, 0x8c, 0x42, 0x06, 0x60, 0x5d, 0x6d, 0xce, 0x60, 0x88, 0xae, 0xa4, 0xc3, | ||
157 | 0xf1, 0x03, 0xa5, 0x4b, 0x98, 0xa1, 0xff, 0x67, 0xe1, 0xac, 0xa2, 0xb8, 0x62, 0xd7, 0x6f, | ||
158 | 0xa0, 0x31, 0xb4, 0xd2, 0x77, 0xaf, 0x21, 0x10, 0x06, 0xc6, 0x9a, 0xff, 0x1d, 0x09, 0x17, | ||
159 | 0x0e, 0x5f, 0xf1, 0xaa, 0x54, 0x34, 0x4b, 0x45, 0x8a, 0x87, 0x63, 0xa6, 0xdc, 0xf9, 0x24, | ||
160 | 0x30, 0x67, 0xc6, 0xb2, 0xd6, 0x61, 0x33, 0x69, 0xee, 0x50, 0x61, 0x57, 0x28, 0xe7, 0x7e, | ||
161 | 0xee, 0xec, 0x3a, 0x5a, 0x73, 0x4e, 0xa8, 0x8d, 0xe4, 0x18, 0xea, 0xec, 0x41, 0x64, 0xc8, | ||
162 | 0xe2, 0xe8, 0x66, 0xb6, 0x2d, 0xb6, 0xfb, 0x6a, 0x6c, 0x16, 0xb3, 0xdd, 0x46, 0x43, 0xb9, | ||
163 | 0x73, 0x00, 0x6a, 0x71, 0xed, 0x4e, 0x9d, 0x25, 0x1a, 0xc3, 0x3c, 0x4a, 0x95, 0x15, 0x99, | ||
164 | 0x35, 0x81, 0x14, 0x02, 0xd6, 0x98, 0x9b, 0xec, 0xd8, 0x23, 0x3b, 0x84, 0x29, 0xaf, 0x0c, | ||
165 | 0x99, 0x83, 0xa6, 0x9a, 0x34, 0x4f, 0xfa, 0xe8, 0xd0, 0x3c, 0x4b, 0xd0, 0xfb, 0xb6, 0x68, | ||
166 | 0xb8, 0x9e, 0x8f, 0xcd, 0xf7, 0x60, 0x2d, 0x7a, 0x22, 0xe5, 0x7d, 0xab, 0x65, 0x1b, 0x95, | ||
167 | 0xa7, 0xa8, 0x7f, 0xb6, 0x77, 0x47, 0x7b, 0x5f, 0x8b, 0x12, 0x72, 0xd0, 0xd4, 0x91, 0xef, | ||
168 | 0xde, 0x19, 0x50, 0x3c, 0xa7, 0x8b, 0xc4, 0xa9, 0xb3, 0x23, 0xcb, 0x76, 0xe6, 0x81, 0xf0, | ||
169 | 0xc1, 0x04, 0x8f, 0xa3, 0xb8, 0x54, 0x5b, 0x97, 0xac, 0x19, 0xff, 0x3f, 0x55, 0x27, 0x2f, | ||
170 | 0xe0, 0x1d, 0x42, 0x9b, 0x57, 0xfc, 0x4b, 0x4e, 0x0f, 0xce, 0x98, 0xa9, 0x43, 0x57, 0x03, | ||
171 | 0xbd, 0xe7, 0xc8, 0x94, 0xdf, 0x6e, 0x36, 0x73, 0x32, 0xb4, 0xef, 0x2e, 0x85, 0x7a, 0x6e, | ||
172 | 0xfc, 0x6c, 0x18, 0x82, 0x75, 0x35, 0x90, 0x07, 0xf3, 0xe4, 0x9f, 0x3e, 0xdc, 0x68, 0xf3, | ||
173 | 0xb5, 0xf3, 0x19, 0x80, 0x92, 0x06, 0x99, 0xa2, 0xe8, 0x6f, 0xff, 0x2e, 0x7f, 0xae, 0x42, | ||
174 | 0xa4, 0x5f, 0xfb, 0xd4, 0x0e, 0x81, 0x2b, 0xc3, 0x04, 0xff, 0x2b, 0xb3, 0x74, 0x4e, 0x36, | ||
175 | 0x5b, 0x9c, 0x15, 0x00, 0xc6, 0x47, 0x2b, 0xe8, 0x8b, 0x3d, 0xf1, 0x9c, 0x03, 0x9a, 0x58, | ||
176 | 0x7f, 0x9b, 0x9c, 0xbf, 0x85, 0x49, 0x79, 0x35, 0x2e, 0x56, 0x7b, 0x41, 0x14, 0x39, 0x47, | ||
177 | 0x83, 0x26, 0xaa, 0x07, 0x89, 0x98, 0x11, 0x1b, 0x86, 0xe7, 0x73, 0x7a, 0xd8, 0x7d, 0x78, | ||
178 | 0x61, 0x53, 0xe9, 0x79, 0xf5, 0x36, 0x8d, 0x44, 0x92, 0x84, 0xf9, 0x13, 0x50, 0x58, 0x3b, | ||
179 | 0xa4, 0x6a, 0x36, 0x65, 0x49, 0x8e, 0x3c, 0x0e, 0xf1, 0x6f, 0xd2, 0x84, 0xc4, 0x7e, 0x8e, | ||
180 | 0x3f, 0x39, 0xae, 0x7c, 0x84, 0xf1, 0x63, 0x37, 0x8e, 0x3c, 0xcc, 0x3e, 0x44, 0x81, 0x45, | ||
181 | 0xf1, 0x4b, 0xb9, 0xed, 0x6b, 0x36, 0x5d, 0xbb, 0x20, 0x60, 0x1a, 0x0f, 0xa3, 0xaa, 0x55, | ||
182 | 0x77, 0x3a, 0xa9, 0xae, 0x37, 0x4d, 0xba, 0xb8, 0x86, 0x6b, 0xbc, 0x08, 0x50, 0xf6, 0xcc, | ||
183 | 0xa4, 0xbd, 0x1d, 0x40, 0x72, 0xa5, 0x86, 0xfa, 0xe2, 0x10, 0xae, 0x3d, 0x58, 0x4b, 0x97, | ||
184 | 0xf3, 0x43, 0x74, 0xa9, 0x9e, 0xeb, 0x21, 0xb7, 0x01, 0xa4, 0x86, 0x93, 0x97, 0xee, 0x2f, | ||
185 | 0x4f, 0x3b, 0x86, 0xa1, 0x41, 0x6f, 0x41, 0x26, 0x90, 0x78, 0x5c, 0x7f, 0x30, 0x38, 0x4b, | ||
186 | 0x3f, 0xaa, 0xec, 0xed, 0x5c, 0x6f, 0x0e, 0xad, 0x43, 0x87, 0xfd, 0x93, 0x35, 0xe6, 0x01, | ||
187 | 0xef, 0x41, 0x26, 0x90, 0x99, 0x9e, 0xfb, 0x19, 0x5b, 0xad, 0xd2, 0x91, 0x8a, 0xe0, 0x46, | ||
188 | 0xaf, 0x65, 0xfa, 0x4f, 0x84, 0xc1, 0xa1, 0x2d, 0xcf, 0x45, 0x8b, 0xd3, 0x85, 0x50, 0x55, | ||
189 | 0x7c, 0xf9, 0x67, 0x88, 0xd4, 0x4e, 0xe9, 0xd7, 0x6b, 0x61, 0x54, 0xa1, 0xa4, 0xa6, 0xa2, | ||
190 | 0xc2, 0xbf, 0x30, 0x9c, 0x40, 0x9f, 0x5f, 0xd7, 0x69, 0x2b, 0x24, 0x82, 0x5e, 0xd9, 0xd6, | ||
191 | 0xa7, 0x12, 0x54, 0x1a, 0xf7, 0x55, 0x9f, 0x76, 0x50, 0xa9, 0x95, 0x84, 0xe6, 0x6b, 0x6d, | ||
192 | 0xb5, 0x96, 0x54, 0xd6, 0xcd, 0xb3, 0xa1, 0x9b, 0x46, 0xa7, 0x94, 0x4d, 0xc4, 0x94, 0xb4, | ||
193 | 0x98, 0xe3, 0xe1, 0xe2, 0x34, 0xd5, 0x33, 0x16, 0x07, 0x54, 0xcd, 0xb7, 0x77, 0x53, 0xdb, | ||
194 | 0x4f, 0x4d, 0x46, 0x9d, 0xe9, 0xd4, 0x9c, 0x8a, 0x36, 0xb6, 0xb8, 0x38, 0x26, 0x6c, 0x0e, | ||
195 | 0xff, 0x9c, 0x1b, 0x43, 0x8b, 0x80, 0xcc, 0xb9, 0x3d, 0xda, 0xc7, 0xf1, 0x8a, 0xf2, 0x6d, | ||
196 | 0xb8, 0xd7, 0x74, 0x2f, 0x7e, 0x1e, 0xb7, 0xd3, 0x4a, 0xb4, 0xac, 0xfc, 0x79, 0x48, 0x6c, | ||
197 | 0xbc, 0x96, 0xb6, 0x94, 0x46, 0x57, 0x2d, 0xb0, 0xa3, 0xfc, 0x1e, 0xb9, 0x52, 0x60, 0x85, | ||
198 | 0x2d, 0x41, 0xd0, 0x43, 0x01, 0x1e, 0x1c, 0xd5, 0x7d, 0xfc, 0xf3, 0x96, 0x0d, 0xc7, 0xcb, | ||
199 | 0x2a, 0x29, 0x9a, 0x93, 0xdd, 0x88, 0x2d, 0x37, 0x5d, 0xaa, 0xfb, 0x49, 0x68, 0xa0, 0x9c, | ||
200 | 0x50, 0x86, 0x7f, 0x68, 0x56, 0x57, 0xf9, 0x79, 0x18, 0x39, 0xd4, 0xe0, 0x01, 0x84, 0x33, | ||
201 | 0x61, 0xca, 0xa5, 0xd2, 0xd6, 0xe4, 0xc9, 0x8a, 0x4a, 0x23, 0x44, 0x4e, 0xbc, 0xf0, 0xdc, | ||
202 | 0x24, 0xa1, 0xa0, 0xc4, 0xe2, 0x07, 0x3c, 0x10, 0xc4, 0xb5, 0x25, 0x4b, 0x65, 0x63, 0xf4, | ||
203 | 0x80, 0xe7, 0xcf, 0x61, 0xb1, 0x71, 0x82, 0x21, 0x87, 0x2c, 0xf5, 0x91, 0x00, 0x32, 0x0c, | ||
204 | 0xec, 0xa9, 0xb5, 0x9a, 0x74, 0x85, 0xe3, 0x36, 0x8f, 0x76, 0x4f, 0x9c, 0x6d, 0xce, 0xbc, | ||
205 | 0xad, 0x0a, 0x4b, 0xed, 0x76, 0x04, 0xcb, 0xc3, 0xb9, 0x33, 0x9e, 0x01, 0x93, 0x96, 0x69, | ||
206 | 0x7d, 0xc5, 0xa2, 0x45, 0x79, 0x9b, 0x04, 0x5c, 0x84, 0x09, 0xed, 0x88, 0x43, 0xc7, 0xab, | ||
207 | 0x93, 0x14, 0x26, 0xa1, 0x40, 0xb5, 0xce, 0x4e, 0xbf, 0x2a, 0x42, 0x85, 0x3e, 0x2c, 0x3b, | ||
208 | 0x54, 0xe8, 0x12, 0x1f, 0x0e, 0x97, 0x59, 0xb2, 0x27, 0x89, 0xfa, 0xf2, 0xdf, 0x8e, 0x68, | ||
209 | 0x59, 0xdc, 0x06, 0xbc, 0xb6, 0x85, 0x0d, 0x06, 0x22, 0xec, 0xb1, 0xcb, 0xe5, 0x04, 0xe6, | ||
210 | 0x3d, 0xb3, 0xb0, 0x41, 0x73, 0x08, 0x3f, 0x3c, 0x58, 0x86, 0x63, 0xeb, 0x50, 0xee, 0x1d, | ||
211 | 0x2c, 0x37, 0x74, 0xa9, 0xd3, 0x18, 0xa3, 0x47, 0x6e, 0x93, 0x54, 0xad, 0x0a, 0x5d, 0xb8, | ||
212 | 0x2a, 0x55, 0x5d, 0x78, 0xf6, 0xee, 0xbe, 0x8e, 0x3c, 0x76, 0x69, 0xb9, 0x40, 0xc2, 0x34, | ||
213 | 0xec, 0x2a, 0xb9, 0xed, 0x7e, 0x20, 0xe4, 0x8d, 0x00, 0x38, 0xc7, 0xe6, 0x8f, 0x44, 0xa8, | ||
214 | 0x86, 0xce, 0xeb, 0x2a, 0xe9, 0x90, 0xf1, 0x4c, 0xdf, 0x32, 0xfb, 0x73, 0x1b, 0x6d, 0x92, | ||
215 | 0x1e, 0x95, 0xfe, 0xb4, 0xdb, 0x65, 0xdf, 0x4d, 0x23, 0x54, 0x89, 0x48, 0xbf, 0x4a, 0x2e, | ||
216 | 0x70, 0xd6, 0xd7, 0x62, 0xb4, 0x33, 0x29, 0xb1, 0x3a, 0x33, 0x4c, 0x23, 0x6d, 0xa6, 0x76, | ||
217 | 0xa5, 0x21, 0x63, 0x48, 0xe6, 0x90, 0x5d, 0xed, 0x90, 0x95, 0x0b, 0x7a, 0x84, 0xbe, 0xb8, | ||
218 | 0x0d, 0x5e, 0x63, 0x0c, 0x62, 0x26, 0x4c, 0x14, 0x5a, 0xb3, 0xac, 0x23, 0xa4, 0x74, 0xa7, | ||
219 | 0x6f, 0x33, 0x30, 0x05, 0x60, 0x01, 0x42, 0xa0, 0x28, 0xb7, 0xee, 0x19, 0x38, 0xf1, 0x64, | ||
220 | 0x80, 0x82, 0x43, 0xe1, 0x41, 0x27, 0x1f, 0x1f, 0x90, 0x54, 0x7a, 0xd5, 0x23, 0x2e, 0xd1, | ||
221 | 0x3d, 0xcb, 0x28, 0xba, 0x58, 0x7f, 0xdc, 0x7c, 0x91, 0x24, 0xe9, 0x28, 0x51, 0x83, 0x6e, | ||
222 | 0xc5, 0x56, 0x21, 0x42, 0xed, 0xa0, 0x56, 0x22, 0xa1, 0x40, 0x80, 0x6b, 0xa8, 0xf7, 0x94, | ||
223 | 0xca, 0x13, 0x6b, 0x0c, 0x39, 0xd9, 0xfd, 0xe9, 0xf3, 0x6f, 0xa6, 0x9e, 0xfc, 0x70, 0x8a, | ||
224 | 0xb3, 0xbc, 0x59, 0x3c, 0x1e, 0x1d, 0x6c, 0xf9, 0x7c, 0xaf, 0xf9, 0x88, 0x71, 0x95, 0xeb, | ||
225 | 0x57, 0x00, 0xbd, 0x9f, 0x8c, 0x4f, 0xe1, 0x24, 0x83, 0xc5, 0x22, 0xea, 0xfd, 0xd3, 0x0c, | ||
226 | 0xe2, 0x17, 0x18, 0x7c, 0x6a, 0x4c, 0xde, 0x77, 0xb4, 0x53, 0x9b, 0x4c, 0x81, 0xcd, 0x23, | ||
227 | 0x60, 0xaa, 0x0e, 0x25, 0x73, 0x9c, 0x02, 0x79, 0x32, 0x30, 0xdf, 0x74, 0xdf, 0x75, 0x19, | ||
228 | 0xf4, 0xa5, 0x14, 0x5c, 0xf7, 0x7a, 0xa8, 0xa5, 0x91, 0x84, 0x7c, 0x60, 0x03, 0x06, 0x3b, | ||
229 | 0xcd, 0x50, 0xb6, 0x27, 0x9c, 0xfe, 0xb1, 0xdd, 0xcc, 0xd3, 0xb0, 0x59, 0x24, 0xb2, 0xca, | ||
230 | 0xe2, 0x1c, 0x81, 0x22, 0x9d, 0x07, 0x8f, 0x8e, 0xb9, 0xbe, 0x4e, 0xfa, 0xfc, 0x39, 0x65, | ||
231 | 0xba, 0xbf, 0x9d, 0x12, 0x37, 0x5e, 0x97, 0x7e, 0xf3, 0x89, 0xf5, 0x5d, 0xf5, 0xe3, 0x09, | ||
232 | 0x8c, 0x62, 0xb5, 0x20, 0x9d, 0x0c, 0x53, 0x8a, 0x68, 0x1b, 0xd2, 0x8f, 0x75, 0x17, 0x5d, | ||
233 | 0xd4, 0xe5, 0xda, 0x75, 0x62, 0x19, 0x14, 0x6a, 0x26, 0x2d, 0xeb, 0xf8, 0xaf, 0x37, 0xf0, | ||
234 | 0x6c, 0xa4, 0x55, 0xb1, 0xbc, 0xe2, 0x33, 0xc0, 0x9a, 0xca, 0xb0, 0x11, 0x49, 0x4f, 0x68, | ||
235 | 0x9b, 0x3b, 0x6b, 0x3c, 0xcc, 0x13, 0xf6, 0xc7, 0x85, 0x61, 0x68, 0x42, 0xae, 0xbb, 0xdd, | ||
236 | 0xcd, 0x45, 0x16, 0x29, 0x1d, 0xea, 0xdb, 0xc8, 0x03, 0x94, 0x3c, 0xee, 0x4f, 0x82, 0x11, | ||
237 | 0xc3, 0xec, 0x28, 0xbd, 0x97, 0x05, 0x99, 0xde, 0xd7, 0xbb, 0x5e, 0x22, 0x1f, 0xd4, 0xeb, | ||
238 | 0x64, 0xd9, 0x92, 0xd9, 0x85, 0xb7, 0x6a, 0x05, 0x6a, 0xe4, 0x24, 0x41, 0xf1, 0xcd, 0xf0, | ||
239 | 0xd8, 0x3f, 0xf8, 0x9e, 0x0e, 0xcd, 0x0b, 0x7a, 0x70, 0x6b, 0x5a, 0x75, 0x0a, 0x6a, 0x33, | ||
240 | 0x88, 0xec, 0x17, 0x75, 0x08, 0x70, 0x10, 0x2f, 0x24, 0xcf, 0xc4, 0xe9, 0x42, 0x00, 0x61, | ||
241 | 0x94, 0xca, 0x1f, 0x3a, 0x76, 0x06, 0xfa, 0xd2, 0x48, 0x81, 0xf0, 0x77, 0x60, 0x03, 0x45, | ||
242 | 0xd9, 0x61, 0xf4, 0xa4, 0x6f, 0x3d, 0xd9, 0x30, 0xc3, 0x04, 0x6b, 0x54, 0x2a, 0xb7, 0xec, | ||
243 | 0x3b, 0xf4, 0x4b, 0xf5, 0x68, 0x52, 0x26, 0xce, 0xff, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xa5, | ||
244 | 0xa9, 0xb1, 0xe0, 0x23, 0xc4, 0x0a, 0x77, 0x4d, 0xf9, 0x51, 0x20, 0xa3, 0xa5, 0xa9, 0xb1, | ||
245 | 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xc4, 0xeb, 0x54, 0x0b, | ||
246 | 0x75, 0x68, 0x52, 0x07, 0x8c, 0x9a, 0x97, 0x8d, 0x79, 0x70, 0x62, 0x46, 0xef, 0x5c, 0x1b, | ||
247 | 0x95, 0x89, 0x71, 0x41, 0xe1, 0x21, 0xa1, 0xa1, 0xa1, 0xc0, 0x02, 0x67, 0x4c, 0x1a, 0xb6, | ||
248 | 0xcf, 0xfd, 0x78, 0x53, 0x24, 0xab, 0xb5, 0xc9, 0xf1, 0x60, 0x23, 0xa5, 0xc8, 0x12, 0x87, | ||
249 | 0x6d, 0x58, 0x13, 0x85, 0x88, 0x92, 0x87, 0x6d, 0x58, 0x32, 0xc7, 0x0c, 0x9a, 0x97, 0xac, | ||
250 | 0xda, 0x36, 0xee, 0x5e, 0x3e, 0xdf, 0x1d, 0xb8, 0xf2, 0x66, 0x2f, 0xbd, 0xf8, 0x72, 0x47, | ||
251 | 0xed, 0x58, 0x13, 0x85, 0x88, 0x92, 0x87, 0x8c, 0x7b, 0x55, 0x09, 0x90, 0xa2, 0xc6, 0xef, | ||
252 | 0x3d, 0xf8, 0x53, 0x24, 0xab, 0xd4, 0x2a, 0xb7, 0xec, 0x5a, 0x36, 0xee, 0x5e, 0x3e, 0xdf, | ||
253 | 0x3c, 0xfa, 0x76, 0x4f, 0xfd, 0x59, 0x30, 0xe2, 0x46, 0xef, 0x3d, 0xf8, 0x53, 0x05, 0x69, | ||
254 | 0x31, 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, 0x19, 0xb0, 0xe2, 0x27, 0xcc, 0xfb, 0x74, | ||
255 | 0x4b, 0x14, 0x8b, 0x94, 0x8b, 0x75, 0x68, 0x33, 0xc5, 0x08, 0x92, 0x87, 0x8c, 0x9a, 0xb6, | ||
256 | 0xcf, 0x1c, 0xba, 0xd7, 0x0d, 0x98, 0xb2, 0xe6, 0x2f, 0xdc, 0x1b, 0x95, 0x89, 0x71, 0x60, | ||
257 | 0x23, 0xc4, 0x0a, 0x96, 0x8f, 0x9c, 0xba, 0xf6, 0x6e, 0x3f, 0xfc, 0x5b, 0x15, 0xa8, 0xd2, | ||
258 | 0x26, 0xaf, 0xbd, 0xf8, 0x72, 0x66, 0x2f, 0xdc, 0x1b, 0xb4, 0xcb, 0x14, 0x8b, 0x94, 0xaa, | ||
259 | 0xb7, 0xcd, 0xf9, 0x51, 0x01, 0x80, 0x82, 0x86, 0x6f, 0x3d, 0xd9, 0x30, 0xe2, 0x27, 0xcc, | ||
260 | 0xfb, 0x74, 0x4b, 0x14, 0xaa, 0xb7, 0xcd, 0xf9, 0x70, 0x43, 0x04, 0x6b, 0x35, 0xc9, 0xf1, | ||
261 | 0x60, 0x23, 0xa5, 0xc8, 0xf3, 0x45, 0x08, 0x92, 0x87, 0x6d, 0x58, 0x32, 0xe6, 0x2f, 0xbd, | ||
262 | 0xf8, 0x72, 0x66, 0x4e, 0x1e, 0xbe, 0xfe, 0x7e, 0x7e, 0x7e, 0x5f, 0x1d, 0x99, 0x91, 0xa0, | ||
263 | 0xa3, 0xc4, 0x0a, 0x77, 0x4d, 0x18, 0x93, 0xa4, 0xab, 0xd4, 0x0b, 0x75, 0x49, 0x10, 0xa2, | ||
264 | 0xc6, 0xef, 0x3d, 0xf8, 0x53, 0x24, 0xab, 0xb5, 0xe8, 0x33, 0xe4, 0x4a, 0x16, 0xae, 0xde, | ||
265 | 0x1f, 0xbc, 0xdb, 0x15, 0xa8, 0xb3, 0xc5, 0x08, 0x73, 0x45, 0xe9, 0x31, 0xc1, 0xe1, 0x21, | ||
266 | 0xa1, 0xa1, 0xa1, 0xc0, 0x02, 0x86, 0x6f, 0x5c, 0x3a, 0xd7, 0x0d, 0x98, 0x93, 0xa4, 0xca, | ||
267 | 0x16, 0xae, 0xde, 0x1f, 0x9d, 0x99, 0xb0, 0xe2, 0x46, 0xef, 0x3d, 0xf8, 0x72, 0x47, 0x0c, | ||
268 | 0x9a, 0xb6, 0xcf, 0xfd, 0x59, 0x11, 0xa0, 0xa3, 0xa5, 0xc8, 0xf3, 0x45, 0x08, 0x92, 0x87, | ||
269 | 0x6d, 0x39, 0xf0, 0x43, 0x04, 0x8a, 0x96, 0xae, 0xde, 0x3e, 0xdf, 0x1d, 0x99, 0x91, 0xa0, | ||
270 | 0xc2, 0x06, 0x6f, 0x3d, 0xf8, 0x72, 0x47, 0x0c, 0x9a, 0x97, 0x8d, 0x98, 0x93, 0x85, 0x88, | ||
271 | 0x73, 0x45, 0xe9, 0x31, 0xe0, 0x23, 0xa5, 0xa9, 0xd0, 0x03, 0x84, 0x8a, 0x96, 0xae, 0xde, | ||
272 | 0x1f, 0xbc, 0xdb, 0x15, 0xa8, 0xd2, 0x26, 0xce, 0xff, 0x5d, 0x19, 0x91, 0x81, 0x80, 0x82, | ||
273 | 0x67, 0x2d, 0xd8, 0x13, 0xa4, 0xab, 0xd4, 0x0b, 0x94, 0xaa, 0xb7, 0xcd, 0xf9, 0x51, 0x20, | ||
274 | 0xa3, 0xa5, 0xc8, 0xf3, 0x45, 0xe9, 0x50, 0x22, 0xc6, 0xef, 0x5c, 0x3a, 0xd7, 0x0d, 0x98, | ||
275 | 0x93, 0x85, 0x88, 0x73, 0x64, 0x4a, 0xf7, 0x4d, 0xf9, 0x51, 0x20, 0xa3, 0xc4, 0x0a, 0x96, | ||
276 | 0xae, 0xde, 0x3e, 0xfe, 0x7e, 0x7e, 0x7e, 0x5f, 0x3c, 0xfa, 0x76, 0x4f, 0xfd, 0x78, 0x72, | ||
277 | 0x66, 0x2f, 0xbd, 0xd9, 0x30, 0xc3, 0xe5, 0x48, 0x12, 0x87, 0x8c, 0x7b, 0x55, 0x28, 0xd2, | ||
278 | 0x07, 0x8c, 0x9a, 0x97, 0xac, 0xda, 0x17, 0x8d, 0x79, 0x51, 0x20, 0xa3, 0xc4, 0xeb, 0x54, | ||
279 | 0x0b, 0x94, 0x8b, 0x94, 0xaa, 0xd6, 0x2e, 0xbf, 0xfc, 0x5b, 0x15, 0xa8, 0xd2, 0x26, 0xaf, | ||
280 | 0xdc, 0x1b, 0xb4, 0xea, 0x37, 0xec, 0x3b, 0xf4, 0x6a, 0x37, 0xcd, 0x18, 0x93, 0x85, 0x69, | ||
281 | 0x31, 0xc1, 0xe1, 0x40, 0xe3, 0x25, 0xc8, 0x12, 0x87, 0x8c, 0x9a, 0xb6, 0xcf, 0xfd, 0x59, | ||
282 | 0x11, 0xa0, 0xc2, 0x06, 0x8e, 0x7f, 0x5d, 0x38, 0xf2, 0x47, 0x0c, 0x7b, 0x74, 0x6a, 0x37, | ||
283 | 0xec, 0x5a, 0x36, 0xee, 0x3f, 0xfc, 0x7a, 0x76, 0x4f, 0x1c, 0x9b, 0x95, 0x89, 0x71, 0x41, | ||
284 | 0x00, 0x63, 0x44, 0xeb, 0x54, 0x2a, 0xd6, 0x0f, 0x9c, 0xba, 0xd7, 0x0d, 0x98, 0x93, 0x85, | ||
285 | 0x69, 0x31, 0xc1, 0x00, 0x82, 0x86, 0x8e, 0x9e, 0xbe, 0xdf, 0x3c, 0xfa, 0x57, 0x2c, 0xda, | ||
286 | 0x36, 0xee, 0x3f, 0xfc, 0x5b, 0x15, 0x89, 0x71, 0x41, 0x00, 0x82, 0x86, 0x8e, 0x7f, 0x5d, | ||
287 | 0x38, 0xf2, 0x47, 0xed, 0x58, 0x13, 0xa4, 0xca, 0xf7, 0x4d, 0xf9, 0x51, 0x01, 0x80, 0x63, | ||
288 | 0x44, 0xeb, 0x54, 0x2a, 0xd6, 0x2e, 0xbf, 0xdd, 0x19, 0x91, 0xa0, 0xa3, 0xa5, 0xa9, 0xb1, | ||
289 | 0xe0, 0x42, 0x06, 0x8e, 0x7f, 0x5d, 0x19, 0x91, 0xa0, 0xa3, 0xc4, 0x0a, 0x96, 0x8f, 0x7d, | ||
290 | 0x78, 0x72, 0x47, 0x0c, 0x7b, 0x74, 0x6a, 0x56, 0x2e, 0xde, 0x1f, 0xbc, 0xfa, 0x57, 0x0d, | ||
291 | 0x79, 0x51, 0x01, 0x61, 0x21, 0xa1, 0xc0, 0xe3, 0x25, 0xa9, 0xb1, 0xc1, 0xe1, 0x40, 0x02, | ||
292 | 0x67, 0x4c, 0x1a, 0x97, 0x8d, 0x98, 0x93, 0xa4, 0xab, 0xd4, 0x2a, 0xd6, 0x0f, 0x9c, 0x9b, | ||
293 | 0xb4, 0xcb, 0x14, 0xaa, 0xb7, 0xcd, 0xf9, 0x51, 0x20, 0xa3, 0xc4, 0xeb, 0x35, 0xc9, 0xf1, | ||
294 | 0x60, 0x42, 0x06, 0x8e, 0x7f, 0x7c, 0x7a, 0x76, 0x6e, 0x3f, 0xfc, 0x7a, 0x76, 0x6e, 0x5e, | ||
295 | 0x3e, 0xfe, 0x7e, 0x5f, 0x3c, 0xdb, 0x15, 0x89, 0x71, 0x41, 0xe1, 0x21, 0xc0, 0xe3, 0x44, | ||
296 | 0xeb, 0x54, 0x2a, 0xb7, 0xcd, 0xf9, 0x70, 0x62, 0x27, 0xad, 0xd8, 0x32, 0xc7, 0x0c, 0x7b, | ||
297 | 0x74, 0x4b, 0x14, 0xaa, 0xb7, 0xec, 0x3b, 0xd5, 0x28, 0xd2, 0x07, 0x6d, 0x39, 0xd1, 0x20, | ||
298 | 0xc2, 0xe7, 0x4c, 0x1a, 0x97, 0x8d, 0x98, 0xb2, 0xc7, 0x0c, 0x59, 0x28, 0xf3, 0x9b }; | ||
299 | |||
300 | // clang-format off | ||
diff --git a/keyboards/ploopyco/trackball/rules.mk b/keyboards/ploopyco/trackball/rules.mk index e1eb998fe..4ac92ebf6 100644 --- a/keyboards/ploopyco/trackball/rules.mk +++ b/keyboards/ploopyco/trackball/rules.mk | |||
@@ -24,6 +24,6 @@ POINTING_DEVICE_ENABLE = yes | |||
24 | MOUSEKEY_ENABLE = yes # Mouse keys | 24 | MOUSEKEY_ENABLE = yes # Mouse keys |
25 | 25 | ||
26 | QUANTUM_LIB_SRC += analog.c spi_master.c | 26 | QUANTUM_LIB_SRC += analog.c spi_master.c |
27 | SRC += pmw3360.c opt_encoder.c | 27 | SRC += drivers/sensors/pmw3360.c opt_encoder.c |
28 | 28 | ||
29 | DEFAULT_FOLDER = ploopyco/trackball/rev1_005 | 29 | DEFAULT_FOLDER = ploopyco/trackball/rev1_005 |
diff --git a/keyboards/ploopyco/trackball/trackball.h b/keyboards/ploopyco/trackball/trackball.h index fd2bf465a..70f5d83b1 100644 --- a/keyboards/ploopyco/trackball/trackball.h +++ b/keyboards/ploopyco/trackball/trackball.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include "quantum.h" | 21 | #include "quantum.h" |
22 | #include "spi_master.h" | 22 | #include "spi_master.h" |
23 | #include "pmw3360.h" | 23 | #include "drivers/sensors/pmw3360.h" |
24 | #include "analog.h" | 24 | #include "analog.h" |
25 | #include "opt_encoder.h" | 25 | #include "opt_encoder.h" |
26 | #include "pointing_device.h" | 26 | #include "pointing_device.h" |
diff --git a/keyboards/ploopyco/trackball_mini/rules.mk b/keyboards/ploopyco/trackball_mini/rules.mk index 58fad239f..22c5e3c06 100644 --- a/keyboards/ploopyco/trackball_mini/rules.mk +++ b/keyboards/ploopyco/trackball_mini/rules.mk | |||
@@ -27,6 +27,6 @@ POINTING_DEVICE_ENABLE = yes | |||
27 | MOUSEKEY_ENABLE = no # Mouse keys | 27 | MOUSEKEY_ENABLE = no # Mouse keys |
28 | 28 | ||
29 | QUANTUM_LIB_SRC += analog.c | 29 | QUANTUM_LIB_SRC += analog.c |
30 | SRC += adns5050.c opt_encoder.c | 30 | SRC += drivers/sensors/adns5050.c opt_encoder.c |
31 | 31 | ||
32 | DEFAULT_FOLDER = ploopyco/trackball_mini/rev1_001 | 32 | DEFAULT_FOLDER = ploopyco/trackball_mini/rev1_001 |
diff --git a/keyboards/ploopyco/trackball_mini/trackball_mini.h b/keyboards/ploopyco/trackball_mini/trackball_mini.h index a12d12a0c..7bcb02a94 100644 --- a/keyboards/ploopyco/trackball_mini/trackball_mini.h +++ b/keyboards/ploopyco/trackball_mini/trackball_mini.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "quantum.h" | 22 | #include "quantum.h" |
23 | #include "adns5050.h" | 23 | #include "drivers/sensors/adns5050.h" |
24 | #include "analog.h" | 24 | #include "analog.h" |
25 | #include "opt_encoder.h" | 25 | #include "opt_encoder.h" |
26 | #include "pointing_device.h" | 26 | #include "pointing_device.h" |
diff --git a/keyboards/ploopyco/trackball_nano/rules.mk b/keyboards/ploopyco/trackball_nano/rules.mk index 0286194b9..f47c31615 100644 --- a/keyboards/ploopyco/trackball_nano/rules.mk +++ b/keyboards/ploopyco/trackball_nano/rules.mk | |||
@@ -27,6 +27,6 @@ POINTING_DEVICE_ENABLE = yes | |||
27 | MOUSEKEY_ENABLE = no # Mouse keys | 27 | MOUSEKEY_ENABLE = no # Mouse keys |
28 | 28 | ||
29 | QUANTUM_LIB_SRC += analog.c | 29 | QUANTUM_LIB_SRC += analog.c |
30 | SRC += adns5050.c opt_encoder.c | 30 | SRC += drivers/sensors/adns5050.c opt_encoder.c |
31 | 31 | ||
32 | DEFAULT_FOLDER = ploopyco/trackball_nano/rev1_001 | 32 | DEFAULT_FOLDER = ploopyco/trackball_nano/rev1_001 |
diff --git a/keyboards/ploopyco/trackball_nano/trackball_nano.h b/keyboards/ploopyco/trackball_nano/trackball_nano.h index 5692383b1..6c8ecace7 100644 --- a/keyboards/ploopyco/trackball_nano/trackball_nano.h +++ b/keyboards/ploopyco/trackball_nano/trackball_nano.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "quantum.h" | 22 | #include "quantum.h" |
23 | #include "adns5050.h" | 23 | #include "drivers/sensors/adns5050.h" |
24 | #include "analog.h" | 24 | #include "analog.h" |
25 | #include "opt_encoder.h" | 25 | #include "opt_encoder.h" |
26 | #include "pointing_device.h" | 26 | #include "pointing_device.h" |
diff --git a/keyboards/ramonimbao/chevron/info.json b/keyboards/ramonimbao/chevron/info.json index 11ed02e53..2a88fedb1 100644 --- a/keyboards/ramonimbao/chevron/info.json +++ b/keyboards/ramonimbao/chevron/info.json | |||
@@ -1,7 +1,5 @@ | |||
1 | { | 1 | { |
2 | "keyboard_name": "Chevron", | 2 | "keyboard_name": "Chevron", |
3 | "url": "", | ||
4 | "maintainer": "", | ||
5 | "width": 14.5, | 3 | "width": 14.5, |
6 | "height": 5, | 4 | "height": 5, |
7 | "layouts": { | 5 | "layouts": { |
diff --git a/keyboards/sendyyeah/75pixels/info.json b/keyboards/sendyyeah/75pixels/info.json index 20d158cf7..d952cac13 100644 --- a/keyboards/sendyyeah/75pixels/info.json +++ b/keyboards/sendyyeah/75pixels/info.json | |||
@@ -7,7 +7,7 @@ | |||
7 | "layouts": { | 7 | "layouts": { |
8 | "LAYOUT_ortho_5x15": { | 8 | "LAYOUT_ortho_5x15": { |
9 | "layout": [ | 9 | "layout": [ |
10 | {"label": "Esc", "X": 0, "y": 0}, | 10 | {"label": "Esc", "x": 0, "y": 0}, |
11 | {"label": "1", "x": 1, "y": 0}, | 11 | {"label": "1", "x": 1, "y": 0}, |
12 | {"label": "2", "x": 2, "y": 0}, | 12 | {"label": "2", "x": 2, "y": 0}, |
13 | {"label": "3", "x": 3, "y": 0}, | 13 | {"label": "3", "x": 3, "y": 0}, |
@@ -22,21 +22,21 @@ | |||
22 | {"label": "NumLock", "x": 12, "y": 0}, | 22 | {"label": "NumLock", "x": 12, "y": 0}, |
23 | {"label": "/", "x": 13, "y": 0}, | 23 | {"label": "/", "x": 13, "y": 0}, |
24 | {"label": "*", "x": 14, "y": 0}, | 24 | {"label": "*", "x": 14, "y": 0}, |
25 | {"label": "Tab", "X": 0, "y": 1}, | 25 | {"label": "Tab", "x": 0, "y": 1}, |
26 | {"label": "Q", "X": 1, "y": 1}, | 26 | {"label": "Q", "x": 1, "y": 1}, |
27 | {"label": "W", "X": 2, "y": 1}, | 27 | {"label": "W", "x": 2, "y": 1}, |
28 | {"label": "E", "X": 3, "y": 1}, | 28 | {"label": "E", "x": 3, "y": 1}, |
29 | {"label": "R", "X": 4, "y": 1}, | 29 | {"label": "R", "x": 4, "y": 1}, |
30 | {"label": "T", "X": 5, "y": 1}, | 30 | {"label": "T", "x": 5, "y": 1}, |
31 | {"label": "Y", "X": 6, "y": 1}, | 31 | {"label": "Y", "x": 6, "y": 1}, |
32 | {"label": "U", "X": 7, "y": 1}, | 32 | {"label": "U", "x": 7, "y": 1}, |
33 | {"label": "I", "X": 8, "y": 1}, | 33 | {"label": "I", "x": 8, "y": 1}, |
34 | {"label": "O", "X": 9, "y": 1}, | 34 | {"label": "O", "x": 9, "y": 1}, |
35 | {"label": "P", "X": 10, "y": 1}, | 35 | {"label": "P", "x": 10, "y": 1}, |
36 | {"label": "|\n\\", "X": 11, "y": 1}, | 36 | {"label": "|\n\\", "x": 11, "y": 1}, |
37 | {"label": "7\nHome", "X": 12, "y": 1}, | 37 | {"label": "7\nHome", "x": 12, "y": 1}, |
38 | {"label": "8\nUp", "X": 13, "y": 1}, | 38 | {"label": "8\nUp", "x": 13, "y": 1}, |
39 | {"label": "9\nPgUp", "X": 14, "y": 1}, | 39 | {"label": "9\nPgUp", "x": 14, "y": 1}, |
40 | {"label": "Caps", "x": 0, "y": 2}, | 40 | {"label": "Caps", "x": 0, "y": 2}, |
41 | {"label": "A", "x": 1, "y": 2}, | 41 | {"label": "A", "x": 1, "y": 2}, |
42 | {"label": "S", "x": 2, "y": 2}, | 42 | {"label": "S", "x": 2, "y": 2}, |
@@ -67,21 +67,21 @@ | |||
67 | {"label": "1\nEnd", "x": 12, "y": 3}, | 67 | {"label": "1\nEnd", "x": 12, "y": 3}, |
68 | {"label": "2\nDown", "x": 13, "y": 3}, | 68 | {"label": "2\nDown", "x": 13, "y": 3}, |
69 | {"label": "3\nPgDn", "x": 14, "y": 3}, | 69 | {"label": "3\nPgDn", "x": 14, "y": 3}, |
70 | {"label": "Ctrl", "X": 0, "y": 4}, | 70 | {"label": "Ctrl", "x": 0, "y": 4}, |
71 | {"label": "Win", "X": 1, "y": 4}, | 71 | {"label": "Win", "x": 1, "y": 4}, |
72 | {"label": "Alt", "X": 2, "y": 4}, | 72 | {"label": "Alt", "x": 2, "y": 4}, |
73 | {"label": "Fn", "X": 3, "y": 4}, | 73 | {"label": "Fn", "x": 3, "y": 4}, |
74 | {"label": "Lower", "X": 4, "y": 4}, | 74 | {"label": "Lower", "x": 4, "y": 4}, |
75 | {"label": "Space", "X": 5, "y": 4}, | 75 | {"label": "Space", "x": 5, "y": 4}, |
76 | {"label": "Space", "X": 6, "y": 4}, | 76 | {"label": "Space", "x": 6, "y": 4}, |
77 | {"label": "Raise", "X": 7, "y": 4}, | 77 | {"label": "Raise", "x": 7, "y": 4}, |
78 | {"label": "Alt", "X": 8, "y": 4}, | 78 | {"label": "Alt", "x": 8, "y": 4}, |
79 | {"label": "Win", "X": 9, "y": 4}, | 79 | {"label": "Win", "x": 9, "y": 4}, |
80 | {"label": "Menu", "X": 10, "y": 4}, | 80 | {"label": "Menu", "x": 10, "y": 4}, |
81 | {"label": "Ctrl", "X": 11, "y": 4}, | 81 | {"label": "Ctrl", "x": 11, "y": 4}, |
82 | {"label": "0\nIns", "X": 12, "y": 4}, | 82 | {"label": "0\nIns", "x": 12, "y": 4}, |
83 | {"label": ".\nDel", "X": 13, "y": 4}, | 83 | {"label": ".\nDel", "x": 13, "y": 4}, |
84 | {"label": "Enter", "X": 14, "y": 4} | 84 | {"label": "Enter", "x": 14, "y": 4} |
85 | ] | 85 | ] |
86 | } | 86 | } |
87 | } | 87 | } |
diff --git a/keyboards/setta21/keymaps/salicylic/config.h b/keyboards/setta21/keymaps/salicylic/config.h index 44b34aa2f..06e23ba7a 100644 --- a/keyboards/setta21/keymaps/salicylic/config.h +++ b/keyboards/setta21/keymaps/salicylic/config.h | |||
@@ -27,7 +27,7 @@ | |||
27 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 27 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
28 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 28 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
29 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 29 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
30 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 30 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
31 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 31 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
32 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 32 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
33 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 33 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
@@ -37,4 +37,3 @@ | |||
37 | # define RGB_MATRIX_VAL_STEP 5 | 37 | # define RGB_MATRIX_VAL_STEP 5 |
38 | # define RGB_MATRIX_SPD_STEP 10 | 38 | # define RGB_MATRIX_SPD_STEP 10 |
39 | #endif | 39 | #endif |
40 | |||
diff --git a/keyboards/sofle/keymaps/devdev/config.h b/keyboards/sofle/keymaps/devdev/config.h index 7d597d991..32d071735 100644 --- a/keyboards/sofle/keymaps/devdev/config.h +++ b/keyboards/sofle/keymaps/devdev/config.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2021 Dane Evans | 1 | /* Copyright 2021 Dane Evans |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
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 | #pragma once | 16 | #pragma once |
17 | 17 | ||
18 | 18 | ||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #define CUSTOM_FONT | 30 | #define CUSTOM_FONT |
31 | 31 | ||
32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
33 | 33 | ||
34 | 34 | ||
35 | #define TAPPING_FORCE_HOLD | 35 | #define TAPPING_FORCE_HOLD |
@@ -56,7 +56,7 @@ | |||
56 | 56 | ||
57 | #ifdef RGBLIGHT_ENABLE | 57 | #ifdef RGBLIGHT_ENABLE |
58 | #undef RGBLED_NUM | 58 | #undef RGBLED_NUM |
59 | 59 | ||
60 | //#define RGBLIGHT_ANIMATIONS | 60 | //#define RGBLIGHT_ANIMATIONS |
61 | //#define RGBLIGHT_EFFECT_BREATHING | 61 | //#define RGBLIGHT_EFFECT_BREATHING |
62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
@@ -68,11 +68,11 @@ | |||
68 | //#define RGBLIGHT_EFFECT_RGB_TEST | 68 | //#define RGBLIGHT_EFFECT_RGB_TEST |
69 | //#define RGBLIGHT_EFFECT_ALTERNATING | 69 | //#define RGBLIGHT_EFFECT_ALTERNATING |
70 | //#define RGBLIGHT_EFFECT_TWINKLE | 70 | //#define RGBLIGHT_EFFECT_TWINKLE |
71 | 71 | ||
72 | #define RGBLED_NUM 70 | 72 | #define RGBLED_NUM 70 |
73 | //#define RGBLED_SPLIT | 73 | //#define RGBLED_SPLIT |
74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet | 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet |
75 | 75 | ||
76 | //#define RGBLED_NUM 30 | 76 | //#define RGBLED_NUM 30 |
77 | #define RGBLIGHT_LIMIT_VAL 120 | 77 | #define RGBLIGHT_LIMIT_VAL 120 |
78 | #define RGBLIGHT_HUE_STEP 10 | 78 | #define RGBLIGHT_HUE_STEP 10 |
@@ -84,11 +84,11 @@ | |||
84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
92 | 92 | ||
93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
94 | 94 | ||
@@ -127,4 +127,4 @@ | |||
127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH | 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH |
128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH | 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH |
129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
130 | #endif \ No newline at end of file | 130 | #endif |
diff --git a/keyboards/sofle/keymaps/killmaster/config.h b/keyboards/sofle/keymaps/killmaster/config.h new file mode 100644 index 000000000..2e6abe84e --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/config.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* Copyright 2021 Carlos Martins | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | |||
18 | /* The way how "handedness" is decided (which half is which), | ||
19 | see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness | ||
20 | for more options. | ||
21 | */ | ||
22 | |||
23 | #define RGB_DI_PIN D3 | ||
24 | |||
25 | #ifdef RGB_MATRIX_ENABLE | ||
26 | |||
27 | #define RGBLED_NUM 72 | ||
28 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
29 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | ||
30 | #define RGB_MATRIX_HUE_STEP 8 | ||
31 | #define RGB_MATRIX_SAT_STEP 8 | ||
32 | #define RGB_MATRIX_VAL_STEP 8 | ||
33 | #define RGB_MATRIX_SPD_STEP 10 | ||
34 | #define RGB_MATRIX_KEYPRESSES | ||
35 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
36 | #define RGB_MATRIX_SPLIT {36,36} | ||
37 | #define SPLIT_TRANSPORT_MIRROR | ||
38 | |||
39 | #endif | ||
40 | |||
41 | #ifdef RGBLIGHT_ENABLE | ||
42 | #define RGBLIGHT_SPLIT | ||
43 | #define RGBLED_NUM 70 | ||
44 | #define RGB_SPLIT {36,36} | ||
45 | #define RGBLIGHT_LIMIT_VAL 120 | ||
46 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
47 | // /*== all animations enable ==*/ | ||
48 | // #define RGBLIGHT_ANIMATIONS | ||
49 | // /*== or choose animations ==*/ | ||
50 | // #define RGBLIGHT_EFFECT_BREATHING | ||
51 | //#define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
52 | //#define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
53 | // #define RGBLIGHT_EFFECT_SNAKE | ||
54 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
55 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
56 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
57 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
58 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
59 | #endif | ||
60 | |||
61 | #define MEDIA_KEY_DELAY 2 | ||
62 | |||
63 | #define USB_POLLING_INTERVAL_MS 1 | ||
64 | #define QMK_KEYS_PER_SCAN 12 | ||
diff --git a/keyboards/sofle/keymaps/killmaster/keymap.c b/keyboards/sofle/keymaps/killmaster/keymap.c new file mode 100644 index 000000000..950dee36b --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/keymap.c | |||
@@ -0,0 +1,403 @@ | |||
1 | /* Copyright 2021 Carlos Martins | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | #include <stdio.h> | ||
19 | |||
20 | enum sofle_layers { | ||
21 | /* _M_XYZ = Mac Os, _W_XYZ = Win/Linux */ | ||
22 | _QWERTY, | ||
23 | _LOWER, | ||
24 | _RAISE, | ||
25 | _ADJUST, | ||
26 | }; | ||
27 | |||
28 | enum custom_keycodes { | ||
29 | KC_QWERTY = SAFE_RANGE, | ||
30 | KC_LOWER, | ||
31 | KC_RAISE, | ||
32 | KC_ADJUST, | ||
33 | KC_PRVWD, | ||
34 | KC_NXTWD, | ||
35 | KC_LSTRT, | ||
36 | KC_LEND, | ||
37 | KC_DLINE | ||
38 | }; | ||
39 | |||
40 | |||
41 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
42 | /* | ||
43 | * QWERTY | ||
44 | * ,-----------------------------------------. ,-----------------------------------------. | ||
45 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | | ||
46 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
47 | * | ESC | Q | W | E | R | T | | Y | U | I | O | P | Bspc | | ||
48 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
49 | * | Tab | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | | ||
50 | * |------+------+------+------+------+------| | | |------+------+------+------+------+------| | ||
51 | * |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / |RShift| | ||
52 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
53 | * | LGUI | LAlt | LCTR |LOWER | /Space / \Enter \ |RAISE | RCTR | RAlt | RGUI | | ||
54 | * | | | | |/ / \ \ | | | | | | ||
55 | * `----------------------------------' '------''---------------------------' | ||
56 | */ | ||
57 | |||
58 | [_QWERTY] = LAYOUT( | ||
59 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
60 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
61 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
62 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, | ||
63 | KC_LGUI,KC_LALT,KC_LCTRL, KC_LOWER, KC_SPC, KC_ENT, KC_RAISE, KC_RCTRL, KC_RALT, KC_RGUI | ||
64 | ), | ||
65 | /* LOWER | ||
66 | * ,-----------------------------------------. ,-----------------------------------------. | ||
67 | * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | | ||
68 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
69 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | | ||
70 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
71 | * | Tab | ! | @ | # | $ | % |-------. ,-------| ^ | & | * | ( | ) | | | | ||
72 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
73 | * | Shift| = | - | + | { | } |-------| |-------| [ | ] | ; | : | \ | Shift| | ||
74 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
75 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
76 | * | | | | |/ / \ \ | | | | | | ||
77 | * `----------------------------------' '------''---------------------------' | ||
78 | */ | ||
79 | [_LOWER] = LAYOUT( | ||
80 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
81 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F12, | ||
82 | _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, | ||
83 | _______, KC_EQL, KC_MINS, KC_PLUS, KC_LCBR, KC_RCBR, _______, _______, KC_LBRC, KC_RBRC, KC_SCLN, KC_COLN, KC_BSLS, _______, | ||
84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
85 | ), | ||
86 | /* RAISE | ||
87 | * ,----------------------------------------. ,-----------------------------------------. | ||
88 | * | | | | | | | | | | | | | | | ||
89 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
90 | * | Esc | Ins | Pscr | Menu | |RGBTog| | | PWrd | Up | NWrd | DLine| Bspc | | ||
91 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
92 | * | Tab | LAt | LCtl |LShift| | Caps |-------. ,-------| | Left | Down | Rigth| Del | Bspc | | ||
93 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
94 | * |Shift | Undo | Cut | Copy | Paste| |-------| |-------| | LStr | | LEnd | | Shift| | ||
95 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
96 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
97 | * | | | | |/ / \ \ | | | | | | ||
98 | * `----------------------------------' '------''---------------------------' | ||
99 | */ | ||
100 | [_RAISE] = LAYOUT( | ||
101 | _______, _______ , _______ , _______ , RGB_RMOD , RGB_MOD, _______, _______ , _______, _______ , _______ ,_______, | ||
102 | _______, KC_INS, KC_PSCR, KC_APP, XXXXXXX, RGB_TOG, KC_PGUP, KC_PRVWD, KC_UP, KC_NXTWD,KC_DLINE, KC_BSPC, | ||
103 | _______, KC_LALT, KC_LCTL, KC_LSFT, XXXXXXX, KC_CAPS, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL, KC_BSPC, | ||
104 | _______,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, KC_LSTRT, XXXXXXX, KC_LEND, XXXXXXX, _______, | ||
105 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
106 | ), | ||
107 | /* ADJUST | ||
108 | * ,-----------------------------------------. ,-----------------------------------------. | ||
109 | * | | | | | | | | | | | | | | | ||
110 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
111 | * | RESET| |QWERTY|COLEMAK| | | | | | | | | | | ||
112 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
113 | * | | |MACWIN| | | |-------. ,-------| | VOLDO| MUTE | VOLUP| | | | ||
114 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
115 | * | | | | | | |-------| |-------| | PREV | PLAY | NEXT | | | | ||
116 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
117 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
118 | * | | | | |/ / \ \ | | | | | | ||
119 | * `----------------------------------' '------''---------------------------' | ||
120 | */ | ||
121 | [_ADJUST] = LAYOUT( | ||
122 | XXXXXXX , XXXXXXX, XXXXXXX , XXXXXXX , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
123 | RESET , XXXXXXX, KC_QWERTY, XXXXXXX , CG_TOGG,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
124 | XXXXXXX , XXXXXXX,CG_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD, KC_MUTE, KC_VOLU, XXXXXXX, XXXXXXX, | ||
125 | XXXXXXX , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, | ||
126 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
127 | ) | ||
128 | }; | ||
129 | |||
130 | #ifdef OLED_DRIVER_ENABLE | ||
131 | |||
132 | static void render_logo(void) { | ||
133 | static const char PROGMEM bananas_logo[] = { | ||
134 | // 'killmaster_bananas', 128x32px | ||
135 | 0x00, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, 0xe0, 0x02, 0x0e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
143 | 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
144 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, | ||
145 | 0x00, 0x00, 0x80, 0xc0, 0x40, 0x00, 0x00, 0x00, 0x40, 0x40, 0xd8, 0xc8, 0x00, 0x00, 0x00, 0x00, | ||
146 | 0x08, 0x08, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0xf8, 0xf8, 0x00, 0x00, 0x00, | ||
147 | 0x00, 0x00, 0xc0, 0x40, 0x40, 0xc0, 0x80, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, | ||
148 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0xc0, 0x40, 0x00, 0x00, 0x40, 0x40, 0xf0, | ||
149 | 0x40, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, | ||
150 | 0x40, 0xc0, 0x80, 0x40, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
151 | 0x00, 0x01, 0x0f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xf0, | ||
152 | 0xe0, 0xc0, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, | ||
153 | 0x02, 0x07, 0x0d, 0x10, 0x20, 0x20, 0x00, 0x00, 0x20, 0x20, 0x3f, 0x3f, 0x20, 0x20, 0x00, 0x00, | ||
154 | 0x00, 0x00, 0x1f, 0x3f, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x3f, 0x20, 0x20, 0x20, | ||
155 | 0x00, 0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x1c, 0x36, 0x22, 0x22, 0x22, | ||
156 | 0x1f, 0x20, 0x00, 0x00, 0x10, 0x23, 0x22, 0x22, 0x26, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x1f, | ||
157 | 0x30, 0x20, 0x20, 0x20, 0x00, 0x00, 0x0f, 0x1f, 0x32, 0x22, 0x22, 0x32, 0x23, 0x00, 0x00, 0x00, | ||
158 | 0x20, 0x3f, 0x21, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x07, 0x07, 0x0f, 0x0f, 0x0f, 0x1f, 0x1f, | ||
160 | 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3e, 0x3e, 0x1c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
161 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
162 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
166 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
167 | }; | ||
168 | oled_write_raw_P(bananas_logo, sizeof(bananas_logo)); | ||
169 | } | ||
170 | |||
171 | static void print_status_narrow(void) { | ||
172 | // Print current mode | ||
173 | oled_write_P(PSTR("Sofle"), false); | ||
174 | oled_write_P(PSTR("\n\n\n"), false); | ||
175 | switch (get_highest_layer(default_layer_state)) { | ||
176 | case _QWERTY: | ||
177 | oled_write_ln_P(PSTR("QWERT"), false); | ||
178 | break; | ||
179 | default: | ||
180 | oled_write_P(PSTR("Undef"), false); | ||
181 | } | ||
182 | oled_write_P(PSTR("\n\n"), false); | ||
183 | // Print current layer | ||
184 | oled_write_ln_P(PSTR("Layer"), false); | ||
185 | switch (get_highest_layer(layer_state)) { | ||
186 | case _QWERTY: | ||
187 | oled_write_P(PSTR("Base\n"), false); | ||
188 | break; | ||
189 | case _RAISE: | ||
190 | oled_write_P(PSTR("Raise"), false); | ||
191 | break; | ||
192 | case _LOWER: | ||
193 | oled_write_P(PSTR("Lower"), false); | ||
194 | break; | ||
195 | case _ADJUST: | ||
196 | oled_write_P(PSTR("Adj\n"), false); | ||
197 | break; | ||
198 | default: | ||
199 | oled_write_ln_P(PSTR("Undef"), false); | ||
200 | } | ||
201 | oled_write_P(PSTR("\n\n"), false); | ||
202 | } | ||
203 | |||
204 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
205 | if (is_keyboard_master()) { | ||
206 | return OLED_ROTATION_270; | ||
207 | } | ||
208 | else { | ||
209 | return OLED_ROTATION_180; | ||
210 | } | ||
211 | return rotation; | ||
212 | } | ||
213 | |||
214 | void oled_task_user(void) { | ||
215 | if (is_keyboard_master()) { | ||
216 | print_status_narrow(); | ||
217 | } else { | ||
218 | render_logo(); | ||
219 | } | ||
220 | } | ||
221 | |||
222 | |||
223 | |||
224 | #endif // OLED_DRIVER_ENABLE | ||
225 | |||
226 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
227 | switch (keycode) { | ||
228 | case KC_QWERTY: | ||
229 | if (record->event.pressed) { | ||
230 | set_single_persistent_default_layer(_QWERTY); | ||
231 | } | ||
232 | return false; | ||
233 | case KC_LOWER: | ||
234 | if (record->event.pressed) { | ||
235 | layer_on(_LOWER); | ||
236 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
237 | } else { | ||
238 | layer_off(_LOWER); | ||
239 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
240 | } | ||
241 | return false; | ||
242 | case KC_RAISE: | ||
243 | if (record->event.pressed) { | ||
244 | layer_on(_RAISE); | ||
245 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
246 | } else { | ||
247 | layer_off(_RAISE); | ||
248 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
249 | } | ||
250 | return false; | ||
251 | case KC_ADJUST: | ||
252 | if (record->event.pressed) { | ||
253 | layer_on(_ADJUST); | ||
254 | } else { | ||
255 | layer_off(_ADJUST); | ||
256 | } | ||
257 | return false; | ||
258 | case KC_PRVWD: | ||
259 | if (record->event.pressed) { | ||
260 | if (keymap_config.swap_lctl_lgui) { | ||
261 | register_mods(mod_config(MOD_LALT)); | ||
262 | register_code(KC_LEFT); | ||
263 | } else { | ||
264 | register_mods(mod_config(MOD_LCTL)); | ||
265 | register_code(KC_LEFT); | ||
266 | } | ||
267 | } else { | ||
268 | if (keymap_config.swap_lctl_lgui) { | ||
269 | unregister_mods(mod_config(MOD_LALT)); | ||
270 | unregister_code(KC_LEFT); | ||
271 | } else { | ||
272 | unregister_mods(mod_config(MOD_LCTL)); | ||
273 | unregister_code(KC_LEFT); | ||
274 | } | ||
275 | } | ||
276 | break; | ||
277 | case KC_NXTWD: | ||
278 | if (record->event.pressed) { | ||
279 | if (keymap_config.swap_lctl_lgui) { | ||
280 | register_mods(mod_config(MOD_LALT)); | ||
281 | register_code(KC_RIGHT); | ||
282 | } else { | ||
283 | register_mods(mod_config(MOD_LCTL)); | ||
284 | register_code(KC_RIGHT); | ||
285 | } | ||
286 | } else { | ||
287 | if (keymap_config.swap_lctl_lgui) { | ||
288 | unregister_mods(mod_config(MOD_LALT)); | ||
289 | unregister_code(KC_RIGHT); | ||
290 | } else { | ||
291 | unregister_mods(mod_config(MOD_LCTL)); | ||
292 | unregister_code(KC_RIGHT); | ||
293 | } | ||
294 | } | ||
295 | break; | ||
296 | case KC_LSTRT: | ||
297 | if (record->event.pressed) { | ||
298 | if (keymap_config.swap_lctl_lgui) { | ||
299 | //CMD-arrow on Mac, but we have CTL and GUI swapped | ||
300 | register_mods(mod_config(MOD_LCTL)); | ||
301 | register_code(KC_LEFT); | ||
302 | } else { | ||
303 | register_code(KC_HOME); | ||
304 | } | ||
305 | } else { | ||
306 | if (keymap_config.swap_lctl_lgui) { | ||
307 | unregister_mods(mod_config(MOD_LCTL)); | ||
308 | unregister_code(KC_LEFT); | ||
309 | } else { | ||
310 | unregister_code(KC_HOME); | ||
311 | } | ||
312 | } | ||
313 | break; | ||
314 | case KC_LEND: | ||
315 | if (record->event.pressed) { | ||
316 | if (keymap_config.swap_lctl_lgui) { | ||
317 | //CMD-arrow on Mac, but we have CTL and GUI swapped | ||
318 | register_mods(mod_config(MOD_LCTL)); | ||
319 | register_code(KC_RIGHT); | ||
320 | } else { | ||
321 | register_code(KC_END); | ||
322 | } | ||
323 | } else { | ||
324 | if (keymap_config.swap_lctl_lgui) { | ||
325 | unregister_mods(mod_config(MOD_LCTL)); | ||
326 | unregister_code(KC_RIGHT); | ||
327 | } else { | ||
328 | unregister_code(KC_END); | ||
329 | } | ||
330 | } | ||
331 | break; | ||
332 | case KC_DLINE: | ||
333 | if (record->event.pressed) { | ||
334 | register_mods(mod_config(MOD_LCTL)); | ||
335 | register_code(KC_BSPC); | ||
336 | } else { | ||
337 | unregister_mods(mod_config(MOD_LCTL)); | ||
338 | unregister_code(KC_BSPC); | ||
339 | } | ||
340 | break; | ||
341 | } | ||
342 | return true; | ||
343 | } | ||
344 | |||
345 | #ifdef ENCODER_ENABLE | ||
346 | |||
347 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
348 | uint8_t temp_mod = get_mods(); | ||
349 | uint8_t temp_osm = get_oneshot_mods(); | ||
350 | bool is_ctrl = (temp_mod | temp_osm) & MOD_MASK_CTRL; | ||
351 | bool is_shift = (temp_mod | temp_osm) & MOD_MASK_SHIFT; | ||
352 | |||
353 | if (is_shift) { | ||
354 | if (index == 0) { /* First encoder */ | ||
355 | if (clockwise) { | ||
356 | rgb_matrix_increase_hue(); | ||
357 | } else { | ||
358 | rgb_matrix_decrease_hue(); | ||
359 | } | ||
360 | } else if (index == 1) { /* Second encoder */ | ||
361 | if (clockwise) { | ||
362 | rgb_matrix_decrease_sat(); | ||
363 | } else { | ||
364 | rgb_matrix_increase_sat(); | ||
365 | } | ||
366 | } | ||
367 | } else if (is_ctrl) { | ||
368 | if (index == 0) { /* First encoder */ | ||
369 | if (clockwise) { | ||
370 | rgb_matrix_increase_val(); | ||
371 | } else { | ||
372 | rgb_matrix_decrease_val(); | ||
373 | } | ||
374 | } else if (index == 1) { /* Second encoder */ | ||
375 | if (clockwise) { | ||
376 | rgb_matrix_increase_speed(); | ||
377 | } else { | ||
378 | rgb_matrix_decrease_speed(); | ||
379 | } | ||
380 | } | ||
381 | } else { | ||
382 | if (index == 1) { /* First encoder */ | ||
383 | if (clockwise) { | ||
384 | tap_code(KC_PGUP); | ||
385 | // tap_code(KC_MS_WH_UP); | ||
386 | } else { | ||
387 | tap_code(KC_PGDOWN); | ||
388 | // tap_code(KC_MS_WH_DOWN); | ||
389 | } | ||
390 | } else if (index == 0) { /* Second encoder */ | ||
391 | uint16_t mapped_code = 0; | ||
392 | if (clockwise) { | ||
393 | mapped_code = KC_VOLD; | ||
394 | } else { | ||
395 | mapped_code = KC_VOLU; | ||
396 | } | ||
397 | tap_code_delay(mapped_code, MEDIA_KEY_DELAY); | ||
398 | } | ||
399 | } | ||
400 | return true; | ||
401 | } | ||
402 | |||
403 | #endif | ||
diff --git a/keyboards/sofle/keymaps/killmaster/readme.md b/keyboards/sofle/keymaps/killmaster/readme.md new file mode 100644 index 000000000..6d6dea228 --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/readme.md | |||
@@ -0,0 +1,19 @@ | |||
1 |  | ||
2 |  | ||
3 | |||
4 | |||
5 | # Default keymap for Sofle Keyboard | ||
6 | |||
7 | Layout in [Keyboard Layout Editor](http://www.keyboard-layout-editor.com/#/gists/76efb423a46cbbea75465cb468eef7ff) and [adjust layer](http://www.keyboard-layout-editor.com/#/gists/4bcf66f922cfd54da20ba04905d56bd4) | ||
8 | |||
9 | |||
10 | Features: | ||
11 | |||
12 | - Symmetric modifiers (CMD/Super, Alt/Opt, Ctrl, Shift) | ||
13 | - Various modes, can be switched (using Adjust layer and the selected one is stored in EEPROM. | ||
14 | - Modes for Qwerty and Colemak support | ||
15 | - Modes for Mac vs Linux/Win support -> different order of modifiers and different action shortcuts on the "UPPER" layer (the red one in the image). Designed to simplify transtions when switching between operating systems often. | ||
16 | - The OLED on master half shows selected mode and caps lock state and is rotated. | ||
17 | - Left encoder controls volume up/down/mute. Right encoder PGUP/PGDOWN. | ||
18 | |||
19 | |||
diff --git a/keyboards/sofle/keymaps/killmaster/rules.mk b/keyboards/sofle/keymaps/killmaster/rules.mk new file mode 100644 index 000000000..38d611450 --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/rules.mk | |||
@@ -0,0 +1,4 @@ | |||
1 | EXTRAKEY_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
3 | RGB_MATRIX_ENABLE = yes | ||
4 | RGB_MATRIX_DRIVER = WS2812 | ||
diff --git a/keyboards/sofle/keymaps/rgb_default/config.h b/keyboards/sofle/keymaps/rgb_default/config.h index 7d597d991..32d071735 100644 --- a/keyboards/sofle/keymaps/rgb_default/config.h +++ b/keyboards/sofle/keymaps/rgb_default/config.h | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2021 Dane Evans | 1 | /* Copyright 2021 Dane Evans |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
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 | #pragma once | 16 | #pragma once |
17 | 17 | ||
18 | 18 | ||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #define CUSTOM_FONT | 30 | #define CUSTOM_FONT |
31 | 31 | ||
32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
33 | 33 | ||
34 | 34 | ||
35 | #define TAPPING_FORCE_HOLD | 35 | #define TAPPING_FORCE_HOLD |
@@ -56,7 +56,7 @@ | |||
56 | 56 | ||
57 | #ifdef RGBLIGHT_ENABLE | 57 | #ifdef RGBLIGHT_ENABLE |
58 | #undef RGBLED_NUM | 58 | #undef RGBLED_NUM |
59 | 59 | ||
60 | //#define RGBLIGHT_ANIMATIONS | 60 | //#define RGBLIGHT_ANIMATIONS |
61 | //#define RGBLIGHT_EFFECT_BREATHING | 61 | //#define RGBLIGHT_EFFECT_BREATHING |
62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
@@ -68,11 +68,11 @@ | |||
68 | //#define RGBLIGHT_EFFECT_RGB_TEST | 68 | //#define RGBLIGHT_EFFECT_RGB_TEST |
69 | //#define RGBLIGHT_EFFECT_ALTERNATING | 69 | //#define RGBLIGHT_EFFECT_ALTERNATING |
70 | //#define RGBLIGHT_EFFECT_TWINKLE | 70 | //#define RGBLIGHT_EFFECT_TWINKLE |
71 | 71 | ||
72 | #define RGBLED_NUM 70 | 72 | #define RGBLED_NUM 70 |
73 | //#define RGBLED_SPLIT | 73 | //#define RGBLED_SPLIT |
74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet | 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet |
75 | 75 | ||
76 | //#define RGBLED_NUM 30 | 76 | //#define RGBLED_NUM 30 |
77 | #define RGBLIGHT_LIMIT_VAL 120 | 77 | #define RGBLIGHT_LIMIT_VAL 120 |
78 | #define RGBLIGHT_HUE_STEP 10 | 78 | #define RGBLIGHT_HUE_STEP 10 |
@@ -84,11 +84,11 @@ | |||
84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
92 | 92 | ||
93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
94 | 94 | ||
@@ -127,4 +127,4 @@ | |||
127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH | 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH |
128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH | 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH |
129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
130 | #endif \ No newline at end of file | 130 | #endif |
diff --git a/keyboards/sofle/rev1/readme.md b/keyboards/sofle/rev1/readme.md new file mode 100644 index 000000000..629d568e6 --- /dev/null +++ b/keyboards/sofle/rev1/readme.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # Sofle Keyboard | ||
2 | |||
3 |  | ||
4 | |||
5 | Sofle is 6×4+5 keys column-staggered split keyboard. Based on Lily58, Corne and Helix keyboards. | ||
6 | |||
7 | More details about the keyboard on my blog: [Let me introduce you SofleKeyboard - a split keyboard based on Lily58 and Crkbd](https://josef-adamcik.cz/electronics/let-me-introduce-you-sofle-keyboard-split-keyboard-based-on-lily58.html) | ||
8 | |||
9 | The current (temporary) build guide and a build log is available here: [SofleKeyboard build log/guide](https://josef-adamcik.cz/electronics/soflekeyboard-build-log-and-build-guide.html) | ||
10 | |||
11 | * Keyboard Maintainer: [Josef Adamcik](https://josef-adamcik.cz) [Twitter:@josefadamcik](https://twitter.com/josefadamcik) | ||
12 | * Hardware Supported: SofleKeyboard PCB, ProMicro | ||
13 | * Hardware Availability: [PCB & Case Data](https://github.com/josefadamcik/SofleKeyboard) | ||
14 | |||
15 | Make example for this keyboard (after setting up your build environment): | ||
16 | |||
17 | make sofle:default | ||
18 | |||
19 | Flashing example for this keyboard: | ||
20 | |||
21 | make sofle:default:flash | ||
22 | |||
23 | Press reset button on he keyboard when asked. | ||
24 | |||
25 | Disconnect the first half, connect the second one and repeat the process. | ||
26 | |||
27 | See 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). | ||
diff --git a/keyboards/sofle/rev1/rev1.c b/keyboards/sofle/rev1/rev1.c index bbb014c4d..88a28e6a4 100644 --- a/keyboards/sofle/rev1/rev1.c +++ b/keyboards/sofle/rev1/rev1.c | |||
@@ -1 +1,87 @@ | |||
1 | /* Copyright 2021 Carlos Martins | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
1 | #include "sofle.h" | 17 | #include "sofle.h" |
18 | |||
19 | #ifdef RGB_MATRIX_ENABLE | ||
20 | // Physical Layout | ||
21 | // Columns | ||
22 | // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 | ||
23 | // ROWS | ||
24 | // 12 13 22 23 32 33 33 32 23 22 13 12 0 | ||
25 | // 02 03 04 04 03 02 | ||
26 | // 11 14 21 24 31 34 34 31 24 21 14 11 1 | ||
27 | // 01 01 | ||
28 | // 10 15 20 25 30 35 35 30 25 20 15 10 2 | ||
29 | // | ||
30 | // 09 16 19 26 29 36 36 29 26 19 16 09 3 | ||
31 | // | ||
32 | // 08 17 18 27 28 28 27 18 17 08 4 | ||
33 | // 07 06 05 05 06 07 | ||
34 | |||
35 | led_config_t g_led_config = { | ||
36 | { | ||
37 | { 11, 12, 21, 22, 31, 32 }, | ||
38 | { 10, 13, 20, 23, 30, 33 }, | ||
39 | { 9, 14, 19, 24, 29, 34}, | ||
40 | { 8, 15, 18, 25, 28, 35}, | ||
41 | { 7, 16, 17, 26, 27, NO_LED }, | ||
42 | { 47, 48, 57, 58, 67, 68}, | ||
43 | { 46, 49, 56, 59, 66, 69}, | ||
44 | { 45, 50, 55, 60, 65, 70}, | ||
45 | { 44, 51, 54, 61, 64, 71}, | ||
46 | { 43, 52, 53, 62, 63, NO_LED } | ||
47 | }, | ||
48 | { | ||
49 | // Left side underglow | ||
50 | {96, 40}, {16, 20}, {48, 10}, {80, 18}, {88, 60}, {56, 57}, {24,60}, | ||
51 | // Left side Matrix | ||
52 | {32, 57}, { 0, 48}, { 0, 36}, { 0, 24}, { 0, 12}, | ||
53 | {16, 12}, {16, 24}, {16, 36}, {16, 48}, {48, 55}, | ||
54 | {64, 57}, {32, 45}, {32, 33}, {32, 21}, {32, 9}, | ||
55 | {48, 7}, {48, 19}, {48, 31}, {48, 43}, {80, 59}, | ||
56 | {96, 64}, {64, 45}, {64, 33}, {64, 21}, {64, 9}, | ||
57 | {80, 10}, {80, 22}, {80, 34}, {80, 47}, | ||
58 | |||
59 | |||
60 | // Right side underglow | ||
61 | {128, 40}, {208, 20}, {176, 10}, {144, 18}, {136, 60}, {168, 57}, {200,60}, | ||
62 | // Right side Matrix | ||
63 | {192, 57}, {224, 48}, {224, 36}, {224, 24}, {224, 12}, | ||
64 | {208, 12}, {208, 24}, {208, 36}, {208, 48}, {176, 55}, | ||
65 | {160, 57}, {192, 45}, {192, 33}, {192, 21}, {192, 9}, | ||
66 | {176, 7}, {176, 19}, {176, 31}, {176, 43}, {144, 59}, | ||
67 | {128, 64}, {160, 45}, {160, 33}, {160, 21}, {160, 9}, | ||
68 | {144, 10}, {144, 22}, {144, 34}, {144, 47}, | ||
69 | }, | ||
70 | { | ||
71 | LED_FLAG_NONE, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, | ||
72 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
73 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
74 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
75 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
76 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
77 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
78 | LED_FLAG_NONE, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, | ||
79 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
80 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
81 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
82 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
83 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
84 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT | ||
85 | } | ||
86 | }; | ||
87 | #endif | ||
diff --git a/keyboards/terrazzo/config.h b/keyboards/terrazzo/config.h index 985110d16..907c94ff5 100644 --- a/keyboards/terrazzo/config.h +++ b/keyboards/terrazzo/config.h | |||
@@ -83,13 +83,13 @@ so there is only one configuration. */ | |||
83 | 83 | ||
84 | #ifdef LED_MATRIX_ENABLE | 84 | #ifdef LED_MATRIX_ENABLE |
85 | 85 | ||
86 | #define LED_DRIVER_ADDR_1 0x74 | 86 | #define LED_DRIVER_ADDR_1 0x74 |
87 | #define LED_DRIVER_COUNT 1 | 87 | #define LED_DRIVER_COUNT 1 |
88 | #define DRIVER_LED_TOTAL 105 | 88 | #define DRIVER_LED_TOTAL 105 |
89 | #define LED_MATRIX_ROWS 15 | 89 | #define LED_MATRIX_ROWS 15 |
90 | #define LED_MATRIX_COLS 7 | 90 | #define LED_MATRIX_COLS 7 |
91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 | 91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 |
92 | #define LED_DISABLE_WHEN_USB_SUSPENDED true | 92 | #define LED_DISABLE_WHEN_USB_SUSPENDED |
93 | 93 | ||
94 | #define DISABLE_LED_MATRIX_ALPHAS_MODS | 94 | #define DISABLE_LED_MATRIX_ALPHAS_MODS |
95 | #define DISABLE_LED_MATRIX_BREATHING | 95 | #define DISABLE_LED_MATRIX_BREATHING |
diff --git a/keyboards/tkc/portico/config.h b/keyboards/tkc/portico/config.h index 4a7da833f..ef6e46658 100644 --- a/keyboards/tkc/portico/config.h +++ b/keyboards/tkc/portico/config.h | |||
@@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
45 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 45 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
46 | # define DEBOUNCE 3 | 46 | # define DEBOUNCE 3 |
47 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 47 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
48 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 48 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
49 | # define RGB_MATRIX_KEYPRESSES | 49 | # define RGB_MATRIX_KEYPRESSES |
50 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 50 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
51 | # define DISABLE_RGB_MATRIX_BAND_SAT | 51 | # define DISABLE_RGB_MATRIX_BAND_SAT |
diff --git a/keyboards/tokyo60/config.h b/keyboards/tokyokeyboard/tokyo60/config.h index 03dee74e9..03dee74e9 100644 --- a/keyboards/tokyo60/config.h +++ b/keyboards/tokyokeyboard/tokyo60/config.h | |||
diff --git a/keyboards/tokyo60/info.json b/keyboards/tokyokeyboard/tokyo60/info.json index 10d1bf093..10d1bf093 100644 --- a/keyboards/tokyo60/info.json +++ b/keyboards/tokyokeyboard/tokyo60/info.json | |||
diff --git a/keyboards/tokyo60/keymaps/default/config.h b/keyboards/tokyokeyboard/tokyo60/keymaps/default/config.h index 271f48d00..271f48d00 100644 --- a/keyboards/tokyo60/keymaps/default/config.h +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/default/config.h | |||
diff --git a/keyboards/tokyo60/keymaps/default/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/default/keymap.c index 9139d15bc..9139d15bc 100644 --- a/keyboards/tokyo60/keymaps/default/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/default/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/swappedBottomRow/config.h b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/config.h index 271f48d00..271f48d00 100644 --- a/keyboards/tokyo60/keymaps/swappedBottomRow/config.h +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/config.h | |||
diff --git a/keyboards/tokyo60/keymaps/swappedBottomRow/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/keymap.c index 54b68f582..54b68f582 100644 --- a/keyboards/tokyo60/keymaps/swappedBottomRow/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/via/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/via/keymap.c index ffef9af79..ffef9af79 100644 --- a/keyboards/tokyo60/keymaps/via/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/via/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/via/rules.mk b/keyboards/tokyokeyboard/tokyo60/keymaps/via/rules.mk index 1e5b99807..1e5b99807 100644 --- a/keyboards/tokyo60/keymaps/via/rules.mk +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/via/rules.mk | |||
diff --git a/keyboards/tokyo60/readme.md b/keyboards/tokyokeyboard/tokyo60/readme.md index 11d4d353c..4d4f53ef0 100644 --- a/keyboards/tokyo60/readme.md +++ b/keyboards/tokyokeyboard/tokyo60/readme.md | |||
@@ -1,15 +1,15 @@ | |||
1 | # Tokyo60 | 1 | # Tokyo60 |
2 | 2 | ||
3 |  | 3 |  |
4 | 4 | ||
5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). | 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). |
6 | 6 | ||
7 | * Keyboard Maintainer: [Tokyo Keyboard](http://tokyokeyboard.com) | 7 | * Keyboard Maintainer: [Tokyo Keyboard](https://tokyokeyboard.com) |
8 | * Hardware Supported: Tokyo60 Rev.1 | 8 | * Hardware Supported: Tokyo60 Rev.1 - 4 |
9 | * Hardware Availability: [Drop](https://drop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) | 9 | * Hardware Availability: [Drop](https://drop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) |
10 | 10 | ||
11 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
12 | 12 | ||
13 | make tokyo60:default | 13 | make tokyokeyboard/tokyo60:default |
14 | 14 | ||
15 | See 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). | 15 | See 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). |
diff --git a/keyboards/tokyo60/rules.mk b/keyboards/tokyokeyboard/tokyo60/rules.mk index fa639b1ca..fa639b1ca 100644 --- a/keyboards/tokyo60/rules.mk +++ b/keyboards/tokyokeyboard/tokyo60/rules.mk | |||
diff --git a/keyboards/tokyo60/tokyo60.c b/keyboards/tokyokeyboard/tokyo60/tokyo60.c index 2126bb612..2126bb612 100644 --- a/keyboards/tokyo60/tokyo60.c +++ b/keyboards/tokyokeyboard/tokyo60/tokyo60.c | |||
diff --git a/keyboards/tokyo60/tokyo60.h b/keyboards/tokyokeyboard/tokyo60/tokyo60.h index 9eb5f3e62..9eb5f3e62 100644 --- a/keyboards/tokyo60/tokyo60.h +++ b/keyboards/tokyokeyboard/tokyo60/tokyo60.h | |||
diff --git a/keyboards/whitefox/config.h b/keyboards/whitefox/config.h index 4d7a460d2..1cdac01d0 100644 --- a/keyboards/whitefox/config.h +++ b/keyboards/whitefox/config.h | |||
@@ -62,6 +62,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
62 | #define LED_BRIGHTNESS_LO 100 | 62 | #define LED_BRIGHTNESS_LO 100 |
63 | #define LED_BRIGHTNESS_HI 255 | 63 | #define LED_BRIGHTNESS_HI 255 |
64 | 64 | ||
65 | /* LED matrix driver */ | ||
66 | #define LED_DRIVER_ADDR_1 0x74 | ||
67 | #define LED_DRIVER_COUNT 1 | ||
68 | #define DRIVER_LED_TOTAL 71 | ||
69 | #define LED_DISABLE_WHEN_USB_SUSPENDED | ||
70 | |||
71 | /* i2c (for LED matrix) */ | ||
72 | #define I2C1_CLOCK_SPEED 400000 | ||
73 | #define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
74 | #define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
75 | #define I2C1_BANK GPIOB | ||
76 | #define I2C1_SCL 0 | ||
77 | #define I2C1_SDA 1 | ||
78 | |||
65 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | 79 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. |
66 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | 80 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). |
67 | */ | 81 | */ |
diff --git a/keyboards/whitefox/rules.mk b/keyboards/whitefox/rules.mk index 771804369..7c1d0c3de 100644 --- a/keyboards/whitefox/rules.mk +++ b/keyboards/whitefox/rules.mk | |||
@@ -25,16 +25,12 @@ COMMAND_ENABLE = yes # Commands for debug and configuration | |||
25 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 25 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
26 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 26 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
27 | NKRO_ENABLE = yes # USB Nkey Rollover | 27 | NKRO_ENABLE = yes # USB Nkey Rollover |
28 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
29 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 28 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
30 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
31 | AUDIO_ENABLE = no # Audio output | 30 | AUDIO_ENABLE = no # Audio output |
32 | BACKLIGHT_DRIVER = custom | ||
33 | VISUALIZER_ENABLE = yes | ||
34 | 31 | ||
35 | LED_DRIVER = is31fl3731c | 32 | LED_MATRIX_ENABLE = yes |
36 | LED_WIDTH = 16 | 33 | LED_MATRIX_DRIVER = IS31FL3731 |
37 | LED_HEIGHT = 5 | ||
38 | 34 | ||
39 | LAYOUTS = 65_ansi 65_ansi_blocker 65_ansi_blocker_split_bs 65_iso 65_iso_blocker 65_iso_blocker_split_bs | 35 | LAYOUTS = 65_ansi 65_ansi_blocker 65_ansi_blocker_split_bs 65_iso 65_iso_blocker 65_iso_blocker_split_bs |
40 | 36 | ||
diff --git a/keyboards/whitefox/whitefox.c b/keyboards/whitefox/whitefox.c index ea083c6e0..f10f0fd5c 100644 --- a/keyboards/whitefox/whitefox.c +++ b/keyboards/whitefox/whitefox.c | |||
@@ -16,3 +16,79 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "whitefox.h" | 18 | #include "whitefox.h" |
19 | |||
20 | #ifdef LED_MATRIX_ENABLE | ||
21 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { | ||
22 | // The numbers in the comments are the led numbers DXX on the PCB | ||
23 | /* Refer to IS31 manual for these locations | ||
24 | * driver | ||
25 | * | LED address | ||
26 | * | | */ | ||
27 | // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ||
28 | { 0, C1_1 }, { 0, C1_2 }, { 0, C1_3 }, { 0, C1_4 }, { 0, C1_5 }, { 0, C1_6 }, { 0, C1_7 }, { 0, C1_8 }, { 0, C2_1 }, { 0, C2_2 }, { 0, C2_3 }, { 0, C2_4 }, { 0, C2_5 }, { 0, C2_6 }, { 0, C2_7 }, { 0, C2_8 }, | ||
29 | // 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ||
30 | { 0, C3_1 }, { 0, C3_2 }, { 0, C3_3 }, { 0, C3_4 }, { 0, C3_5 }, { 0, C3_6 }, { 0, C3_7 }, { 0, C3_8 }, { 0, C4_1 }, { 0, C4_2 }, { 0, C4_3 }, { 0, C4_4 }, { 0, C4_5 }, { 0, C4_6 }, { 0, C4_7 }, | ||
31 | // 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ||
32 | { 0, C4_8 }, { 0, C5_1 }, { 0, C5_2 }, { 0, C5_3 }, { 0, C5_4 }, { 0, C5_5 }, { 0, C5_6 }, { 0, C5_7 }, { 0, C5_8 }, { 0, C6_1 }, { 0, C6_2 }, { 0, C6_3 }, { 0, C6_4 }, { 0, C6_5 }, { 0, C6_6 }, | ||
33 | // 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | ||
34 | { 0, C6_7 }, { 0, C6_8 }, { 0, C7_1 }, { 0, C7_2 }, { 0, C7_3 }, { 0, C7_4 }, { 0, C7_5 }, { 0, C7_6 }, { 0, C7_7 }, { 0, C7_8 }, { 0, C8_1 }, { 0, C8_2 }, { 0, C8_3 }, { 0, C8_4 }, { 0, C8_5 }, | ||
35 | // 62 63 64 65 66 67 68 69 70 71 | ||
36 | { 0, C8_6 }, { 0, C8_7 }, { 0, C8_8 }, { 0, C9_1 }, { 0, C9_2 }, { 0, C9_3 }, { 0, C9_4 }, { 0, C9_5 }, { 0, C9_6 }, { 0, C9_7 }, | ||
37 | }; | ||
38 | |||
39 | led_config_t g_led_config = { | ||
40 | { | ||
41 | // Key Matrix to LED Index | ||
42 | { 0, 1, 2, 3, 4, 5, 6, 7, 8 }, | ||
43 | { 9, 10, 11, 12, 13, 14, 15, 16, 17 }, | ||
44 | { 18, 19, 20, 21, 22, 23, 24, 25, 26 }, | ||
45 | { 27, 28, 29, 30, 31, 32, 33, 34, 35 }, | ||
46 | { 36, 37, 38, 39, 40, 41, 42, 43, 44 }, | ||
47 | { 45, 46, 47, 48, 49, 50, 51, 52, 53 }, | ||
48 | { 54, 55, 56, 57, 58, 59, 60, 61, 62 }, | ||
49 | { 63, 64, 65, 66, 67, 68, 69, 70, NO_LED }, | ||
50 | }, { | ||
51 | // LED Index to Physical Position | ||
52 | { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 119, 0 }, { 134, 0 }, { 149, 0 }, { 164, 0 }, { 179, 0 }, { 194, 0 }, { 209, 0 }, { 224, 0 }, | ||
53 | { 4, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 205, 16 }, { 224, 16 }, | ||
54 | { 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 175, 32 }, { 190, 32 }, { 207, 32 }, { 224, 32 }, | ||
55 | { 2, 48 }, { 19, 48 }, { 34, 48 }, { 49, 48 }, { 63, 48 }, { 78, 48 }, { 93, 48 }, { 108, 48 }, { 123, 48 }, { 138, 48 }, { 153, 48 }, { 168, 48 }, { 189, 48 }, { 209, 48 }, { 224, 48 }, | ||
56 | { 2, 64 }, { 21, 64 }, { 39, 64 }, { 95, 64 }, { 149, 64 }, { 164, 64 }, { 179, 64 }, { 194, 64 }, { 209, 64 }, { 224, 64 } | ||
57 | }, { | ||
58 | // LED Index to Flag | ||
59 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
60 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
61 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
62 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, | ||
63 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
64 | } | ||
65 | }; | ||
66 | #endif | ||
67 | |||
68 | void keyboard_pre_init_kb(void) { | ||
69 | #ifdef LED_MATRIX_ENABLE | ||
70 | // Turn on LED controller | ||
71 | setPinOutput(B16); | ||
72 | writePinHigh(B16); | ||
73 | #endif | ||
74 | keyboard_pre_init_user(); | ||
75 | } | ||
76 | |||
77 | void matrix_init_kb(void) { | ||
78 | // put your keyboard start-up code here | ||
79 | // runs once when the firmware starts up | ||
80 | |||
81 | #ifdef LED_MATRIX_ENABLE | ||
82 | /* | ||
83 | * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), | ||
84 | * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. | ||
85 | */ | ||
86 | # if !defined(LED_MATRIX_STARTUP_SPD) | ||
87 | # define LED_MATRIX_STARTUP_SPD UINT8_MAX / 2 | ||
88 | # endif | ||
89 | led_matrix_set_speed(LED_MATRIX_STARTUP_SPD), | ||
90 | led_matrix_set_flags(LED_FLAG_ALL); | ||
91 | #endif | ||
92 | |||
93 | matrix_init_user(); | ||
94 | } | ||
diff --git a/keyboards/xbows/nature/config.h b/keyboards/xbows/nature/config.h index c1ff79335..e321f7ee1 100644 --- a/keyboards/xbows/nature/config.h +++ b/keyboards/xbows/nature/config.h | |||
@@ -35,7 +35,7 @@ | |||
35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 | 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 |
36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
39 | # define RGB_MATRIX_KEYPRESSES | 39 | # define RGB_MATRIX_KEYPRESSES |
40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/xbows/woody/config.h b/keyboards/xbows/woody/config.h index 7f396d000..ea27508da 100644 --- a/keyboards/xbows/woody/config.h +++ b/keyboards/xbows/woody/config.h | |||
@@ -16,10 +16,10 @@ | |||
16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
21 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 21 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
23 | #define DISABLE_RGB_MATRIX_BAND_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_SAT |
24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
@@ -40,4 +40,4 @@ | |||
40 | #define DRIVER_1_LED_TOTAL 35 | 40 | #define DRIVER_1_LED_TOTAL 35 |
41 | #define DRIVER_2_LED_TOTAL 32 | 41 | #define DRIVER_2_LED_TOTAL 32 |
42 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | 42 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) |
43 | #endif \ No newline at end of file | 43 | #endif |
diff --git a/keyboards/yncognito/batpad/config.h b/keyboards/yncognito/batpad/config.h index 02c84a514..7ca4072e0 100644 --- a/keyboards/yncognito/batpad/config.h +++ b/keyboards/yncognito/batpad/config.h | |||
@@ -47,13 +47,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
47 | 47 | ||
48 | #define RGB_DI_PIN B5 | 48 | #define RGB_DI_PIN B5 |
49 | #define DRIVER_LED_TOTAL 8 | 49 | #define DRIVER_LED_TOTAL 8 |
50 | #define RGB_MATRIX_KEYPRESSES | 50 | #define RGB_MATRIX_KEYPRESSES |
51 | #define RGB_MATRIX_KEYRELEASES | 51 | #define RGB_MATRIX_KEYRELEASES |
52 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 52 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
53 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 53 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
54 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false | 54 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED |
55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
56 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 | 56 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 |
57 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 57 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
58 | |||
59 | |||