aboutsummaryrefslogtreecommitdiff
path: root/keyboards/terrazzo
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-05-29 14:38:50 -0700
committerGitHub <noreply@github.com>2021-05-29 14:38:50 -0700
commit1646c0f26cfa21a7023d404008e4d0aa4917193d (patch)
tree337ab0498a929285a234518fee34a4d9dcf51656 /keyboards/terrazzo
parentf55e39e8a2246f6f96fd5d4a84a866e2615cde7b (diff)
downloadqmk_firmware-1646c0f26cfa21a7023d404008e4d0aa4917193d.tar.gz
qmk_firmware-1646c0f26cfa21a7023d404008e4d0aa4917193d.zip
2021 May 29 Breaking Changes Update (#13034)
* Add Per Key functionality for AutoShift (#11536) * LED Matrix: Reactive effect buffers & advanced indicators (#12588) * [Keyboard] kint36: switch to sym_eager_pk debouncing (#12626) * [Keyboard] kint2pp: reduce input latency by ≈10ms (#12625) * LED Matrix: Split (#12633) * [CI] Format code according to conventions (#12650) * feat: infinite timeout for leader key (#6580) * feat: implement leader_no_timeout logic * docs(leader_key): infinite leader timeout docs * Format code according to conventions (#12680) * Update ADC driver for STM32F1xx, STM32F3xx, STM32F4xx (#12403) * Fix default ADC_RESOLUTION for ADCv3 (and ADCv4) Recent ChibiOS update removed ADC_CFGR1_RES_10BIT from the ADCv3 headers (that macro should not have been there, because ADCv3 has CFGR instead of CFGR1). Fix the default value for ADC_RESOLUTION to use ADC_CFGR_RES_10BITS if it is defined (that name is used for ADCv3 and ADCv4). * Update ADC docs to match the actually used resolution ADC driver for ChibiOS actually uses the 10-bit resolution by default (probably to match AVR); fix the documentation accordingly. Also add both ADC_CFGR_RES_10BITS and ADC_CFGR1_RES_10BIT constants (these names differ according to the ADC implementation in the particular MCU). * Fix pinToMux() for B12 and B13 on STM32F3xx Testing on STM32F303CCT6 revealed that the ADC mux values for B12 and B13 pins were wrong. * Add support for all possible analog pins on STM32F1xx Added ADC mux values for pins A0...A7, B0, B1, C0...C5 on STM32F1xx (they are the same at least for STM32F103x8 and larger F103 devices, and also F102, F105, F107 families). Actually tested on STM32F103C8T6 (therefore pins C0...C5 were not tested). Pins F6...F10, which are present on STM32F103x[C-G] in 144-pin packages, cannot be supported at the moment, because those pins are connected only to ADC3, but the ChibiOS ADC driver for STM32F1xx supports only ADC1. * Add support for all possible analog pins on STM32F4xx Added ADC mux values for pins A0...A7, B0, B1, C0...C5 and optionally F3...F10 (if STM32_ADC_USE_ADC3 is enabled). These mux values are apparently the same for all F4xx devices, except some smaller devices may not have ADC3. Actually tested on STM32F401CCU6, STM32F401CEU6, STM32F411CEU6 (using various WeAct “Blackpill” boards); only pins A0...A7, B0, B1 were tested. Pins F3...F10 are inside `#if STM32_ADC_USE_ADC3` because some devices which don't have ADC3 also don't have the GPIOF port, therefore the code which refers to Fx pins does not compile. * Fix STM32F3xx ADC mux table in documentation The ADC driver documentation had some errors in the mux table for STM32F3xx. Fix this table to match the datasheet and the actual code (mux settings for B12 and B13 were also tested on a real STM32F303CCT6 chip). * Add STM32F1xx ADC pins to the documentation * Add STM32F4xx ADC pins to the documentation * Add initial support for tinyuf2 bootloader (when hosted on F411 blackpill) (#12600) * Add support for jumping to tinyuf2 bootloader. Adds blackpill UF2 example. * Update flashing.md * Update chconf.h * Update config.h * Update halconf.h * Update mcuconf.h * eeprom driver: Refactor where eeprom driver initialisation (and EEPROM emulation initialisation) occurs to make it non-target-specific. (#12671) * Add support for MCU = STM32F446 (#12619) * Add support for MCU = STM32F446 * Update platforms/chibios/GENERIC_STM32_F446XE/configs/config.h * Restore mcuconf.h to the one used by RT-STM32F446RE-NUCLEO64 * stm32f446: update mcuconf.h and board.h for 16MHz operation, with USB enabled, and other peripherals disabled. * Format code according to conventions (#12682) * Format code according to conventions (#12687) * Add STM32L433 and L443 support (#12063) * initial L433 commit * change to XC * fix L433 * disable all peripherals * update system and peripheral clocks * 433 change * use its own board files * revert its own board files * l433 specific change * fix stm32l432xx define * remove duplicate #define * fix bootloader jump * move to L443xx and add i2c2, spi2, usart3 to mcuconf.h * move to L443 * move to L443 * fix sdmmc in mcuconf.h * include STM32L443 * add L443 * Include L443 in compatible microcontrollers * Include L443 in compatible microcontrollers * Update config bootloader jump description * Update ChibiOS define reasoning * Update quantum/mcu_selection.mk * fix git conflict * Updated Function96 with V2 files and removed chconf.h and halconf.h (#12613) * Fix bad PR merge for #6580. (#12721) * Change RGB/LED Matrix to use a simple define for USB suspend (#12697) * [CI] Format code according to conventions (#12731) * Fixing transport's led/rgb matrix suspend state logic (#12770) * [CI] Format code according to conventions (#12772) * Fix comment parsing (#12750) * Added OLED fade out support (#12086) * fix some references to bin/qmk that slipped in (#12832) * Resolve a number of warnings in `qmk generate-api` (#12833) * New command: qmk console (#12828) * stash poc * stash * tidy up implementation * Tidy up slightly for review * Tidy up slightly for review * Bodge environment to make tests pass * Refactor away from asyncio due to windows issues * Filter devices * align vid/pid printing * Add hidapi to the installers * start preparing for multiple hid_listeners * udev rules for hid_listen * refactor to move closer to end state * very basic implementation of the threaded model * refactor how vid/pid/index are supplied and parsed * windows improvements * read the report directly when usage page isn't available * add per-device colors, the choice to show names or numbers, and refactor * add timestamps * Add support for showing bootloaders * tweak the color for bootloaders * Align bootloader disconnect with connect color * add support for showing all bootloaders * fix the pyusb check * tweaks * fix exception * hide a stack trace behind -v * add --no-bootloaders option * add documentation for qmk console * Apply suggestions from code review * pyformat * clean up and flesh out KNOWN_BOOTLOADERS * Remove pointless SERIAL_LINK_ENABLE rules (#12846) * Make Swap Hands use PROGMEM (#12284) This converts the array that the Swap Hands feature uses to use PROGMEM, and to read from that array, as such. Since this array never changes at runtime, there is no reason to keep it in memory. Especially for AVR boards, as memory is a precious resource. * Fix another bin/qmk reference (#12856) * [Keymap] Turn OLED off on suspend in soundmonster keymap (#10419) * Fixup build errors on `develop` branch. (#12723) * LED Matrix: Effects! (#12651) * Fix syntax error when compiling for ARM (#12866) * Remove KEYMAP and LAYOUT_kc (#12160) * alias KEYMAP to LAYOUT * remove KEYMAP and LAYOUT_kc * Add setup, clone, and env to the list of commands we allow even with broken modules (#12868) * Rename `point_t` -> `led_point_t` (#12864) * [Keyboard] updated a vendor name / fixed minor keymap issues (#12881) * Add missing LED Matrix suspend code to suspend.c (#12878) * LED Matrix: Documentation (#12685) * Deprecate `send_unicode_hex_string()` (#12602) * Fix spelling mistake regarding LED Matrix in split_common. (#12888) * [Keymap] Fix QWERTY/DVORAK status output for kzar keymap (#12895) * Use milc.subcommand.config instead of qmk.cli.config (#12915) * Use milc.subcommand.config instead * pyformat * remove the config test * Add function to allow repeated blinking of one layer (#12237) * Implement function rgblight_blink_layer_repeat to allow repeated blinking of one layer at a time * Update doc * Rework rgblight blinking according to requested change * optimize storage * Fixup housekeeping from being invoked twice per loop. (#12933) * matrix: wait for row signal to go HIGH for every row (#12945) I noticed this discrepancy (last row of the matrix treated differently than the others) when optimizing the input latency of my keyboard controller, see also https://michael.stapelberg.ch/posts/2021-05-08-keyboard-input-latency-qmk-kinesis/ Before this commit, when tuning the delays I noticed ghost key presses when pressing the F2 key, which is on the last row of the keyboard matrix: the dead_grave key, which is on the first row of the keyboard matrix, would be incorrectly detected as pressed. After this commit, all keyboard matrix rows are interpreted correctly. I suspect that my setup is more susceptible to this nuance than others because I use GPIO_INPUT_PIN_DELAY=0 and hence don’t have another delay that might mask the problem. * ensure we do not conflict with existing keymap aliases (#12976) * Add support for up to 4 IS31FL3733 drivers (#12342) * Convert Encoder callbacks to be boolean functions (#12805) * [Keyboard] Fix Terrazzo build failure (#12977) * Do not hard set config in CPTC files (#11864) * [Keyboard] Corne - Remove legacy revision support (#12226) * [Keymap] Update to Drashna keymap and user code (based on develop) (#12936) * Add Full-duplex serial driver for ARM boards (#9842) * Document LED_MATRIX_FRAMEBUFFER_EFFECTS (#12987) * Backlight: add defines for default level and breathing state (#12560) * Add dire message about LUFA mass storage bootloader (#13014) * [Keyboard] Remove redundant legacy and common headers for crkbd (#13023) Was causing compiler errors on some systems. * Fix keyboards/keymaps for boolean encoder callback changes (#12985) * `backlight.c`: include `eeprom.h` (#13024) * Add changelog for 2021-05-29 Breaking Changes merge (#12939) * Add ChangeLog for 2021-05-29 Breaking Changes Merge: initial version * Add recent develop changes * Sort recent develop changes * Remove sections for ChibiOS changes per tzarc No ChibiOS changes this round. * Add and sort recent develop changes * add notes about keyboard moves/deletions * import changelog for PR 12172 Documents the change to BOOTMAGIC_ENABLE. * update section headings * re-sort changelog * add additional note regarding Bootmagic changes * remove changelog timestamp * update dates in main Breaking Changes docs * fix broken section anchors in previous changelogs * add link to backlight/eeprom patch to changelog * highlight some more changes * link PRs from section headers * Restore standard readme * run: qmk cformat --core-only
Diffstat (limited to 'keyboards/terrazzo')
-rw-r--r--keyboards/terrazzo/config.h21
-rw-r--r--keyboards/terrazzo/keymaps/default/keymap.c21
-rw-r--r--keyboards/terrazzo/keymaps/ortho/keymap.c19
-rw-r--r--keyboards/terrazzo/keymaps/ortho_all/keymap.c21
-rw-r--r--keyboards/terrazzo/keymaps/ortho_mit/keymap.c19
-rw-r--r--keyboards/terrazzo/readme.md8
-rw-r--r--keyboards/terrazzo/rules.mk36
-rw-r--r--keyboards/terrazzo/terrazzo.c38
-rw-r--r--keyboards/terrazzo/terrazzo_effects/dino.h2
-rw-r--r--keyboards/terrazzo/terrazzo_effects/dot.h4
-rw-r--r--keyboards/terrazzo/terrazzo_effects/heart.h2
-rw-r--r--keyboards/terrazzo/terrazzo_effects/outrun.h2
-rw-r--r--keyboards/terrazzo/terrazzo_effects/pac_dude.h2
-rw-r--r--keyboards/terrazzo/terrazzo_effects/wpm_chart.h4
14 files changed, 125 insertions, 74 deletions
diff --git a/keyboards/terrazzo/config.h b/keyboards/terrazzo/config.h
index e13a1e0db..985110d16 100644
--- a/keyboards/terrazzo/config.h
+++ b/keyboards/terrazzo/config.h
@@ -91,6 +91,27 @@ so there is only one configuration. */
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 true
93 93
94#define DISABLE_LED_MATRIX_ALPHAS_MODS
95#define DISABLE_LED_MATRIX_BREATHING
96#define DISABLE_LED_MATRIX_BAND
97#define DISABLE_LED_MATRIX_BAND_PINWHEEL
98#define DISABLE_LED_MATRIX_BAND_SPIRAL
99#define DISABLE_LED_MATRIX_CYCLE_LEFT_RIGHT
100#define DISABLE_LED_MATRIX_CYCLE_UP_DOWN
101#define DISABLE_LED_MATRIX_CYCLE_OUT_IN
102#define DISABLE_LED_MATRIX_DUAL_BEACON
103#define DISABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE
104#define DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
105#define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
106#define DISABLE_LED_MATRIX_SOLID_REACTIVE_CROSS
107#define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS
108#define DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS
109#define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS
110#define DISABLE_LED_MATRIX_SOLID_SPLASH
111#define DISABLE_LED_MATRIX_SOLID_MULTISPLASH
112#define DISABLE_LED_MATRIX_WAVE_LEFT_RIGHT
113#define DISABLE_LED_MATRIX_WAVE_UP_DOWN
114
94#endif 115#endif
95 116
96/* Terrazzo animations */ 117/* Terrazzo animations */
diff --git a/keyboards/terrazzo/keymaps/default/keymap.c b/keyboards/terrazzo/keymaps/default/keymap.c
index 9392a6055..b6439aa8e 100644
--- a/keyboards/terrazzo/keymaps/default/keymap.c
+++ b/keyboards/terrazzo/keymaps/default/keymap.c
@@ -36,41 +36,41 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36 [_QWERTY] = LAYOUT( 36 [_QWERTY] = LAYOUT(
37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, 37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, 38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SFTSLSH, 39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SFTSLSH,
40 TZ_OFF, KC_LGUI, KC_RALT, LOWERSP, RAISESP, MO(_NAV), MO(_FN) 40 TZ_OFF, KC_LGUI, KC_RALT, LOWERSP, RAISESP, MO(_NAV), MO(_FN)
41 ), 41 ),
42 42
43 [_RAISE] = LAYOUT( 43 [_RAISE] = LAYOUT(
44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, 44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, 45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT,
46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, 46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______,
47 _______, _______, _______, _______, _______, _______, _______ 47 _______, _______, _______, _______, _______, _______, _______
48 ), 48 ),
49 49
50 [_LOWER] = LAYOUT( 50 [_LOWER] = LAYOUT(
51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, 51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, 52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT,
53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, 53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______,
54 _______, _______, _______, _______, _______, _______, _______ 54 _______, _______, _______, _______, _______, _______, _______
55 ), 55 ),
56 56
57 [_NAV] = LAYOUT( 57 [_NAV] = LAYOUT(
58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, XXXXXXX, _______, 58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, XXXXXXX, _______,
59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, _______, 59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, _______,
60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, 60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
61 _______, _______, _______, _______, _______, _______, _______ 61 _______, _______, _______, _______, _______, _______, _______
62 ), 62 ),
63 63
64 [_FN] = LAYOUT( 64 [_FN] = LAYOUT(
65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, 65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, 66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______,
67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, CG_TOGG, 67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, CG_TOGG,
68 _______, RESET, _______, _______, _______, _______, _______ 68 _______, RESET, _______, _______, _______, _______, _______
69 ) 69 )
70}; 70};
71 71
72 72
73void encoder_update_user(uint8_t index, bool clockwise) { 73bool encoder_update_user(uint8_t index, bool clockwise) {
74 terrazzo_scroll_pixel(clockwise); 74 terrazzo_scroll_pixel(clockwise);
75 switch(get_highest_layer(layer_state)) { 75 switch(get_highest_layer(layer_state)) {
76 case _NAV: 76 case _NAV:
@@ -81,5 +81,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
81 // Default encoder behavior of Page Up and Down 81 // Default encoder behavior of Page Up and Down
82 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP); 82 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
83 break; 83 break;
84 } 84 }
85} \ No newline at end of file 85 return true;
86}
diff --git a/keyboards/terrazzo/keymaps/ortho/keymap.c b/keyboards/terrazzo/keymaps/ortho/keymap.c
index c2085c414..986cb884d 100644
--- a/keyboards/terrazzo/keymaps/ortho/keymap.c
+++ b/keyboards/terrazzo/keymaps/ortho/keymap.c
@@ -36,40 +36,40 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36 [_QWERTY] = LAYOUT_ortho( 36 [_QWERTY] = LAYOUT_ortho(
37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, 37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, 38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, 39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
40 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, LOWERSP, RAISESP, MO(_NAV), MO(_FN), KC_DEL 40 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, LOWERSP, RAISESP, MO(_NAV), MO(_FN), KC_DEL
41 ), 41 ),
42 42
43 [_RAISE] = LAYOUT_ortho( 43 [_RAISE] = LAYOUT_ortho(
44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, 44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______, 45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______,
46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______, 46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______ 47 _______, _______, _______, _______, _______, _______, _______, _______, _______
48 ), 48 ),
49 49
50 [_LOWER] = LAYOUT_ortho( 50 [_LOWER] = LAYOUT_ortho(
51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, 51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______, 52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______,
53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______, 53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______,
54 _______, _______, _______, _______, _______, _______, _______, _______, _______ 54 _______, _______, _______, _______, _______, _______, _______, _______, _______
55 ), 55 ),
56 56
57 [_NAV] = LAYOUT_ortho( 57 [_NAV] = LAYOUT_ortho(
58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, 58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, _______,
59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, _______, 59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, _______,
60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, 60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______,
61 _______, _______, _______, _______, _______, _______, _______, _______, _______ 61 _______, _______, _______, _______, _______, _______, _______, _______, _______
62 ), 62 ),
63 63
64 [_FN] = LAYOUT_ortho( 64 [_FN] = LAYOUT_ortho(
65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, 65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______, 66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______,
67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG, 67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG,
68 _______, RESET, _______, _______, _______, _______, _______, _______, _______ 68 _______, RESET, _______, _______, _______, _______, _______, _______, _______
69 ) 69 )
70}; 70};
71 71
72void encoder_update_user(uint8_t index, bool clockwise) { 72bool encoder_update_user(uint8_t index, bool clockwise) {
73 terrazzo_scroll_pixel(clockwise); 73 terrazzo_scroll_pixel(clockwise);
74 switch(get_highest_layer(layer_state)) { 74 switch(get_highest_layer(layer_state)) {
75 case _NAV: 75 case _NAV:
@@ -80,5 +80,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
80 // Default encoder behavior of Page Up and Down 80 // Default encoder behavior of Page Up and Down
81 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP); 81 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
82 break; 82 break;
83 } 83 }
84} \ No newline at end of file 84 return true;
85}
diff --git a/keyboards/terrazzo/keymaps/ortho_all/keymap.c b/keyboards/terrazzo/keymaps/ortho_all/keymap.c
index ba33c15fb..b0ecd9c91 100644
--- a/keyboards/terrazzo/keymaps/ortho_all/keymap.c
+++ b/keyboards/terrazzo/keymaps/ortho_all/keymap.c
@@ -16,7 +16,7 @@
16 16
17/* Ortho layout with all 1u 17/* Ortho layout with all 1u
18 * make terrazzo:othro_all 18 * make terrazzo:othro_all
19 */ 19 */
20#include QMK_KEYBOARD_H 20#include QMK_KEYBOARD_H
21 21
22enum layers { 22enum layers {
@@ -36,40 +36,40 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36 [_QWERTY] = LAYOUT_ortho_all( 36 [_QWERTY] = LAYOUT_ortho_all(
37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, 37 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, 38 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, 39 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
40 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), MO(_NAV), MO(_FN), KC_DEL 40 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), MO(_NAV), MO(_FN), KC_DEL
41 ), 41 ),
42 42
43 [_RAISE] = LAYOUT_ortho_all( 43 [_RAISE] = LAYOUT_ortho_all(
44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, 44 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______, 45 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______,
46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______, 46 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
48 ), 48 ),
49 49
50 [_LOWER] = LAYOUT_ortho_all( 50 [_LOWER] = LAYOUT_ortho_all(
51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, 51 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______, 52 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______,
53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______, 53 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______,
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
55 ), 55 ),
56 56
57 [_NAV] = LAYOUT_ortho_all( 57 [_NAV] = LAYOUT_ortho_all(
58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, 58 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______,
59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN,_______, 59 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN,_______,
60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, 60 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______,
61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 61 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
62 ), 62 ),
63 63
64 [_FN] = LAYOUT_ortho_all( 64 [_FN] = LAYOUT_ortho_all(
65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, 65 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______, 66 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______,
67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG, 67 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG,
68 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______ 68 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______
69 ) 69 )
70}; 70};
71 71
72void encoder_update_user(uint8_t index, bool clockwise) { 72bool encoder_update_user(uint8_t index, bool clockwise) {
73 terrazzo_scroll_pixel(clockwise); 73 terrazzo_scroll_pixel(clockwise);
74 switch(get_highest_layer(layer_state)) { 74 switch(get_highest_layer(layer_state)) {
75 case _NAV: 75 case _NAV:
@@ -80,5 +80,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
80 /* Default encoder behavior of Page Up and Down */ 80 /* Default encoder behavior of Page Up and Down */
81 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP); 81 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
82 break; 82 break;
83 } 83 }
84} \ No newline at end of file 84 return true;
85}
diff --git a/keyboards/terrazzo/keymaps/ortho_mit/keymap.c b/keyboards/terrazzo/keymaps/ortho_mit/keymap.c
index ab63f5395..87e6d3f78 100644
--- a/keyboards/terrazzo/keymaps/ortho_mit/keymap.c
+++ b/keyboards/terrazzo/keymaps/ortho_mit/keymap.c
@@ -33,41 +33,41 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
33 [_QWERTY] = LAYOUT_ortho_mit( 33 [_QWERTY] = LAYOUT_ortho_mit(
34 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, 34 KC_MUTE, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
35 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, 35 TZ_NXT, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
36 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, 36 TZ_PRV, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
37 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, MO(_LOWER), KC_SPC, MO(_RAISE), MO(_NAV), MO(_FN), KC_DEL 37 TZ_OFF, KC_TAB, KC_LGUI, KC_RALT, MO(_LOWER), KC_SPC, MO(_RAISE), MO(_NAV), MO(_FN), KC_DEL
38 ), 38 ),
39 39
40 [_RAISE] = LAYOUT_ortho_mit( 40 [_RAISE] = LAYOUT_ortho_mit(
41 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, 41 _______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
42 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______, 42 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, _______,
43 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______, 43 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS, KC_LBRC, KC_RBRC, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
45 ), 45 ),
46 46
47 [_LOWER] = LAYOUT_ortho_mit( 47 [_LOWER] = LAYOUT_ortho_mit(
48 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, 48 _______, KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
49 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______, 49 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PLUS, KC_COLN, KC_DQT, _______,
50 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______, 50 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PIPE, KC_LCBR, KC_RCBR, _______, _______,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
52 ), 52 ),
53 53
54 [_NAV] = LAYOUT_ortho_mit( 54 [_NAV] = LAYOUT_ortho_mit(
55 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, 55 _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______,
56 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN,_______, 56 _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN,_______,
57 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, 57 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______,
58 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 58 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
59 ), 59 ),
60 60
61 [_FN] = LAYOUT_ortho_mit( 61 [_FN] = LAYOUT_ortho_mit(
62 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, 62 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
63 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______, 63 _______, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F11, KC_F12, _______, _______,
64 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG, 64 _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, CG_TOGG,
65 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______ 65 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______
66 ) 66 )
67}; 67};
68 68
69 69
70void encoder_update_user(uint8_t index, bool clockwise) { 70bool encoder_update_user(uint8_t index, bool clockwise) {
71 terrazzo_scroll_pixel(clockwise); 71 terrazzo_scroll_pixel(clockwise);
72 switch(get_highest_layer(layer_state)) { 72 switch(get_highest_layer(layer_state)) {
73 case _NAV: 73 case _NAV:
@@ -78,5 +78,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
78 /* Default encoder behavior of Page Up and Down */ 78 /* Default encoder behavior of Page Up and Down */
79 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP); 79 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
80 break; 80 break;
81 } 81 }
82} \ No newline at end of file 82 return true;
83}
diff --git a/keyboards/terrazzo/readme.md b/keyboards/terrazzo/readme.md
index 08cecd6a6..e0f4f3457 100644
--- a/keyboards/terrazzo/readme.md
+++ b/keyboards/terrazzo/readme.md
@@ -93,7 +93,7 @@ Terrazzo has 4 positions for encoders in the left-hand column. Up to 3 may be us
93The default keymaps are setup for one encoder. Encoders can change behavior based on the current layer. Here, on the "NAV" layer, the encoder changes volume instead of scrolling. 93The default keymaps are setup for one encoder. Encoders can change behavior based on the current layer. Here, on the "NAV" layer, the encoder changes volume instead of scrolling.
94 94
95```c 95```c
96void encoder_update_user(uint8_t index, bool clockwise) { 96bool encoder_update_user(uint8_t index, bool clockwise) {
97 terrazzo_scroll_pixel(clockwise); 97 terrazzo_scroll_pixel(clockwise);
98 switch(get_highest_layer(layer_state)) { 98 switch(get_highest_layer(layer_state)) {
99 case _NAV: 99 case _NAV:
@@ -105,13 +105,14 @@ void encoder_update_user(uint8_t index, bool clockwise) {
105 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP); 105 clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
106 break; 106 break;
107 } 107 }
108 return true;
108} 109}
109``` 110```
110 111
111If using multiple encoders, the `index` param can be used to distingish which is providing input. 112If using multiple encoders, the `index` param can be used to distingish which is providing input.
112 113
113```c 114```c
114void encoder_update_user(uint8_t index, bool clockwise) { 115bool encoder_update_user(uint8_t index, bool clockwise) {
115 terrazzo_scroll_pixel(clockwise); 116 terrazzo_scroll_pixel(clockwise);
116 switch(index) { 117 switch(index) {
117 case 0: 118 case 0:
@@ -121,5 +122,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
121 clockwise ? tap_code(KC_AUDIO_VOL_UP) : tap_code(KC_AUDIO_VOL_DOWN); 122 clockwise ? tap_code(KC_AUDIO_VOL_UP) : tap_code(KC_AUDIO_VOL_DOWN);
122 break; 123 break;
123 } 124 }
125 return true;
124} 126}
125``` \ No newline at end of file 127```
diff --git a/keyboards/terrazzo/rules.mk b/keyboards/terrazzo/rules.mk
index 7a08fb769..719c6cb1f 100644
--- a/keyboards/terrazzo/rules.mk
+++ b/keyboards/terrazzo/rules.mk
@@ -2,33 +2,25 @@
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Bootloader selection 4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = atmel-dfu 5BOOTLOADER = atmel-dfu
13 6
14
15
16# Build Options 7# Build Options
17# comment out to disable the options. 8# change yes to no to disable
18# 9#
19BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration 10BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration
20MOUSEKEY_ENABLE = no # Mouse keys 11MOUSEKEY_ENABLE = no # Mouse keys
21EXTRAKEY_ENABLE = yes # Audio control and System control 12EXTRAKEY_ENABLE = yes # Audio control and System control
22CONSOLE_ENABLE = no # Console for debug 13CONSOLE_ENABLE = no # Console for debug
23COMMAND_ENABLE = no # Commands for debug and configuration 14COMMAND_ENABLE = no # Commands for debug and configuration
24SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
25NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
26AUDIO_ENABLE = no 17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
27RGBLIGHT_ENABLE = no 18NKRO_ENABLE = no # USB Nkey Rollover
28BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
29LED_MATRIX_ENABLE = yes 23LED_MATRIX_ENABLE = yes
30LED_MATRIX_DRIVER = IS31FL3731 24LED_MATRIX_DRIVER = IS31FL3731
31ENCODER_ENABLE = yes 25ENCODER_ENABLE = yes
32WPM_ENABLE = yes 26WPM_ENABLE = yes
33
34LAYOUTS = ortho ortho_mit ortho_all \ No newline at end of file
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index f079ded4d..e6ba1f6c3 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -17,7 +17,6 @@
17#include "terrazzo.h" 17#include "terrazzo.h"
18 18
19#ifdef LED_MATRIX_ENABLE 19#ifdef LED_MATRIX_ENABLE
20 #include "is31fl3731-simple.h"
21 #include <math.h> 20 #include <math.h>
22 #include "print.h" 21 #include "print.h"
23 #include "quantum.h" 22 #include "quantum.h"
@@ -44,6 +43,39 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
44 {0, C2_15},{0, C2_14},{0, C2_13},{0, C2_12},{0, C2_11},{0, C2_10},{0, C2_9} 43 {0, C2_15},{0, C2_14},{0, C2_13},{0, C2_12},{0, C2_11},{0, C2_10},{0, C2_9}
45}; 44};
46 45
46led_config_t g_led_config = {
47 {
48 // Key Matrix to LED Index
49 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
50 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
51 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
52 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
53 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
54 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
55 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
56 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
57 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }
58 }, {
59 // LED Index to Physical Position
60 { 0, 0 }, { 16, 0 }, { 32, 0 }, { 48, 0 }, { 64, 0 }, { 80, 0 }, { 96, 0 }, { 112, 0 }, { 128, 0 }, { 144, 0 }, { 160, 0 }, { 176, 0 }, { 192, 0 }, { 208, 0 }, { 224, 0 },
61 { 0, 11 }, { 16, 11 }, { 32, 11 }, { 48, 11 }, { 64, 11 }, { 80, 11 }, { 96, 11 }, { 112, 11 }, { 128, 11 }, { 144, 11 }, { 160, 11 }, { 176, 11 }, { 192, 11 }, { 208, 11 }, { 224, 11 },
62 { 0, 21 }, { 16, 21 }, { 32, 21 }, { 48, 21 }, { 64, 21 }, { 80, 21 }, { 96, 21 }, { 112, 21 }, { 128, 21 }, { 144, 21 }, { 160, 21 }, { 176, 21 }, { 192, 21 }, { 208, 21 }, { 224, 21 },
63 { 0, 32 }, { 16, 32 }, { 32, 32 }, { 48, 32 }, { 64, 32 }, { 80, 32 }, { 96, 32 }, { 112, 32 }, { 128, 32 }, { 144, 32 }, { 160, 32 }, { 176, 32 }, { 192, 32 }, { 208, 32 }, { 224, 32 },
64 { 0, 43 }, { 16, 43 }, { 32, 43 }, { 48, 43 }, { 64, 43 }, { 80, 43 }, { 96, 43 }, { 112, 43 }, { 128, 43 }, { 144, 43 }, { 160, 43 }, { 176, 43 }, { 192, 43 }, { 208, 43 }, { 224, 43 },
65 { 0, 53 }, { 16, 53 }, { 32, 53 }, { 48, 53 }, { 64, 53 }, { 80, 53 }, { 96, 53 }, { 112, 53 }, { 128, 53 }, { 144, 53 }, { 160, 53 }, { 176, 53 }, { 192, 53 }, { 208, 53 }, { 224, 53 },
66 { 0, 64 }, { 16, 64 }, { 32, 64 }, { 48, 64 }, { 64, 64 }, { 80, 64 }, { 96, 64 }, { 112, 64 }, { 128, 64 }, { 144, 64 }, { 160, 64 }, { 176, 64 }, { 192, 64 }, { 208, 64 }, { 224, 64 }
67 }, {
68 // LED Index to Flag
69 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
70 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
71 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
72 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
73 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
74 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
75 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
76 }
77};
78
47#define TERRAZZO_EFFECT(name) 79#define TERRAZZO_EFFECT(name)
48#define TERRAZZO_EFFECT_IMPLS 80#define TERRAZZO_EFFECT_IMPLS
49 81
@@ -59,7 +91,7 @@ uint8_t terrazzo_effect = 1;
59void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { 91void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) {
60 uint8_t target = y * LED_MATRIX_COLS + x; 92 uint8_t target = y * LED_MATRIX_COLS + x;
61 if (target < DRIVER_LED_TOTAL && target >= 0) { 93 if (target < DRIVER_LED_TOTAL && target >= 0) {
62 led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); 94 led_matrix_set_value(y * LED_MATRIX_COLS + x, value);
63 } 95 }
64} 96}
65 97
@@ -113,7 +145,7 @@ void terrazzo_mode_off(void) {
113void terrazzo_render(void) { 145void terrazzo_render(void) {
114 switch(terrazzo_effect) { 146 switch(terrazzo_effect) {
115 case TERRAZZO_NONE: 147 case TERRAZZO_NONE:
116 led_matrix_set_index_value_all(0); 148 led_matrix_set_value_all(0);
117 break; 149 break;
118 #define TERRAZZO_EFFECT(name, ...) \ 150 #define TERRAZZO_EFFECT(name, ...) \
119 case TERRAZZO_EFFECT_##name: \ 151 case TERRAZZO_EFFECT_##name: \
diff --git a/keyboards/terrazzo/terrazzo_effects/dino.h b/keyboards/terrazzo/terrazzo_effects/dino.h
index 747ef6178..18c629f41 100644
--- a/keyboards/terrazzo/terrazzo_effects/dino.h
+++ b/keyboards/terrazzo/terrazzo_effects/dino.h
@@ -148,7 +148,7 @@ static uint8_t dino_bg[10][42] = {
148}; 148};
149 149
150void DINO(uint8_t i, bool dir) { 150void DINO(uint8_t i, bool dir) {
151 led_matrix_set_index_value_all(0); 151 led_matrix_set_value_all(0);
152 if (dir) { 152 if (dir) {
153 terrazzo_draw_at(0, 7, 7, 8, dino_frames[i % 2]); 153 terrazzo_draw_at(0, 7, 7, 8, dino_frames[i % 2]);
154 } else { 154 } else {
diff --git a/keyboards/terrazzo/terrazzo_effects/dot.h b/keyboards/terrazzo/terrazzo_effects/dot.h
index e8eb8e0fc..07c4621c2 100644
--- a/keyboards/terrazzo/terrazzo_effects/dot.h
+++ b/keyboards/terrazzo/terrazzo_effects/dot.h
@@ -19,8 +19,8 @@ TERRAZZO_EFFECT(DOT)
19# ifdef TERRAZZO_EFFECT_IMPLS 19# ifdef TERRAZZO_EFFECT_IMPLS
20// Animation for debugging. Lights one pixel according to animation index 20// Animation for debugging. Lights one pixel according to animation index
21void DOT(uint8_t i, bool dir) { 21void DOT(uint8_t i, bool dir) {
22 led_matrix_set_index_value_all(0); 22 led_matrix_set_value_all(0);
23 led_matrix_set_index_value(i, 10); 23 led_matrix_set_value(i, 10);
24} 24}
25 25
26# endif 26# endif
diff --git a/keyboards/terrazzo/terrazzo_effects/heart.h b/keyboards/terrazzo/terrazzo_effects/heart.h
index bdcd2d7b9..bfbd6acc3 100644
--- a/keyboards/terrazzo/terrazzo_effects/heart.h
+++ b/keyboards/terrazzo/terrazzo_effects/heart.h
@@ -91,7 +91,7 @@ static uint8_t heart_frames[4][105] = {
91 91
92 92
93void HEART(uint8_t i, bool dir) { 93void HEART(uint8_t i, bool dir) {
94 led_matrix_set_index_value_all(0); 94 led_matrix_set_value_all(0);
95 terrazzo_draw_at(0, 0, 7, 15, heart_frames[i % 4]); 95 terrazzo_draw_at(0, 0, 7, 15, heart_frames[i % 4]);
96} 96}
97 97
diff --git a/keyboards/terrazzo/terrazzo_effects/outrun.h b/keyboards/terrazzo/terrazzo_effects/outrun.h
index b4455ef49..127e714b2 100644
--- a/keyboards/terrazzo/terrazzo_effects/outrun.h
+++ b/keyboards/terrazzo/terrazzo_effects/outrun.h
@@ -89,7 +89,7 @@ bool last_dir;
89uint8_t change_index = 0; 89uint8_t change_index = 0;
90 90
91void OUTRUN(uint8_t i, bool dir) { 91void OUTRUN(uint8_t i, bool dir) {
92 led_matrix_set_index_value_all(0); 92 led_matrix_set_value_all(0);
93 93
94 if(dir != last_dir) { 94 if(dir != last_dir) {
95 change_index = i; 95 change_index = i;
diff --git a/keyboards/terrazzo/terrazzo_effects/pac_dude.h b/keyboards/terrazzo/terrazzo_effects/pac_dude.h
index aa4fc9923..aaf0c5545 100644
--- a/keyboards/terrazzo/terrazzo_effects/pac_dude.h
+++ b/keyboards/terrazzo/terrazzo_effects/pac_dude.h
@@ -51,7 +51,7 @@ static uint8_t pac_ghost[20] = {
51 51
52 52
53void PAC_DUDE(uint8_t i, bool dir) { 53void PAC_DUDE(uint8_t i, bool dir) {
54 led_matrix_set_index_value_all(0); 54 led_matrix_set_value_all(0);
55 if (dir) { 55 if (dir) {
56 terrazzo_draw_at(1, 4, 5, 5, pac_frames[i % 2]); 56 terrazzo_draw_at(1, 4, 5, 5, pac_frames[i % 2]);
57 terrazzo_set_pixel(3, 0 + i % 3, 5); 57 terrazzo_set_pixel(3, 0 + i % 3, 5);
diff --git a/keyboards/terrazzo/terrazzo_effects/wpm_chart.h b/keyboards/terrazzo/terrazzo_effects/wpm_chart.h
index 5c66bc39a..b80b604d2 100644
--- a/keyboards/terrazzo/terrazzo_effects/wpm_chart.h
+++ b/keyboards/terrazzo/terrazzo_effects/wpm_chart.h
@@ -85,14 +85,14 @@ static uint8_t number_3_4[10][12] = {
85uint8_t wpm_levels[10] = {20, 9, 8, 7, 6, 5, 4, 3, 2, 1}; 85uint8_t wpm_levels[10] = {20, 9, 8, 7, 6, 5, 4, 3, 2, 1};
86 86
87void WPM_CHART(uint8_t i, bool dir) { 87void WPM_CHART(uint8_t i, bool dir) {
88 led_matrix_set_index_value_all(0); 88 led_matrix_set_value_all(0);
89 uint8_t c_wpm = get_current_wpm(); 89 uint8_t c_wpm = get_current_wpm();
90 uint8_t half_wpm = floor(c_wpm / 2); 90 uint8_t half_wpm = floor(c_wpm / 2);
91 uint8_t max_rows = 10; 91 uint8_t max_rows = 10;
92 /* Turn on LED for current WPM. Each pixel is 2 wpm. */ 92 /* Turn on LED for current WPM. Each pixel is 2 wpm. */
93 for (int k = 0; k < half_wpm && k < 70; k++) { 93 for (int k = 0; k < half_wpm && k < 70; k++) {
94 uint8_t current_row = (int)floor(k / 7); 94 uint8_t current_row = (int)floor(k / 7);
95 led_matrix_set_index_value(k, wpm_levels[max_rows - current_row]); 95 led_matrix_set_value(k, wpm_levels[max_rows - current_row]);
96 }; 96 };
97 uint8_t d1 = (int)floor(c_wpm / 10); 97 uint8_t d1 = (int)floor(c_wpm / 10);
98 /* There is only room to print 2 digits. If the WPM is greater than 98 /* There is only room to print 2 digits. If the WPM is greater than