Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor zinc to use split_common #7114

Merged
merged 39 commits into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6a25112
Add Zinc keyboard
monksoffunk Oct 13, 2018
5c47980
Fix RGB LED init of monks/keymap.c
monksoffunk Oct 15, 2018
e0cb787
Add RGBLED_BOTH_ENABLE option
monksoffunk Jun 23, 2019
954d4d0
Fix RGBLED_BOTH_ENABLE option
monksoffunk Jun 23, 2019
72c76f0
Add LED_BOTH_ENABLE feature to 2 keymaps
monksoffunk Aug 2, 2019
38b0ba5
Use split_common instead of own split flies
monksoffunk Aug 5, 2019
23263c8
Fix split LED
monksoffunk Aug 6, 2019
6e574e0
Fix RGB LED config for iOS device
monksoffunk Aug 7, 2019
d6fb248
Add RGB_MOD reverse key to default keymap
monksoffunk Aug 7, 2019
acff2b6
Update readme_jp.md of default keymap
monksoffunk Aug 7, 2019
a11a241
Add readme_en.md of default keymap
monksoffunk Aug 7, 2019
307b74d
Merge branch 'master' into zinc_splitcommon
monksoffunk Nov 11, 2019
31646b0
Merge branch 'master' into zinc_splitcommon
monksoffunk Nov 11, 2019
f8c8300
Update keyboards/zinc/readme.md
monksoffunk Nov 11, 2019
e81e9e2
Update keyboards/zinc/readme.md
monksoffunk Nov 11, 2019
e014349
Update keyboards/zinc/readme.md
monksoffunk Nov 11, 2019
d404168
Update keyboards/zinc/rules.mk
monksoffunk Nov 11, 2019
8656180
Update keyboards/zinc/rules.mk
monksoffunk Nov 11, 2019
fa2837d
Update toshi0383 keymap
monksoffunk Nov 11, 2019
b104e62
Merge branch 'zinc_splitcommon_2019OCT' of https://github.com/monksof…
monksoffunk Nov 11, 2019
4378a3e
Update keyboards/zinc/keymaps/toshi0383/rules.mk
monksoffunk Nov 11, 2019
5e9bcce
Update keyboards/zinc/keymaps/toshi0383/rules.mk
monksoffunk Nov 11, 2019
bb2ed11
Update keyboards/zinc/keymaps/toshi0383/rules.mk
monksoffunk Nov 11, 2019
684d5d3
Update keyboards/zinc/keymaps/toshi0383/rules.mk
monksoffunk Nov 11, 2019
1e5ff74
Remove build option firmware size impacts (as #6947)
monksoffunk Nov 11, 2019
cf580db
Remove some dead code and whitespace
monksoffunk Nov 11, 2019
1c6ba1b
Remove unused code
monksoffunk Nov 11, 2019
8a66442
Remove unused code
monksoffunk Nov 11, 2019
3354060
Update keyboards/zinc/rev1/config.h
monksoffunk Jan 20, 2020
793531b
Update keyboards/zinc/reva/config.h
monksoffunk Jan 20, 2020
d722254
Update keyboards/zinc/keymaps/default/rules.mk
monksoffunk Feb 3, 2020
7b2fbc2
Update keyboards/zinc/keymaps/default/keymap.c
monksoffunk Feb 3, 2020
370934c
Update keyboards/zinc/keymaps/default/keymap.c
monksoffunk Feb 3, 2020
2729b3e
Update keyboards/zinc/keymaps/default/keymap.c
monksoffunk Feb 3, 2020
614bb4b
Update keyboards/zinc/keymaps/default/readme_en.md
monksoffunk Feb 9, 2020
44385e2
Update keyboards/zinc/keymaps/default/readme_en.md
monksoffunk Mar 16, 2020
f1c75cb
Merge branch 'tmp_master' into zinc_splitcommon_2019OCT
monksoffunk Mar 16, 2020
44330b4
Merge branch 'master' into zinc_splitcommon_2019OCT
monksoffunk Apr 29, 2020
51ff769
Breaking Changes Changelog
monksoffunk Apr 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions keyboards/zinc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once
//#ifndef CONFIG_H
//#define CONFIG_H

#include "config_common.h"

// GCC include 'config.h" sequence in qmk_firmware/keyboards/zinc/
// -include keyboards/zinc/config.h
// -include keyboards/zinc/rev?/config.h
// -include keyboards/zinc/rev?/keymaps/MAPNAME/config.h
// XXXX.c

#include <serial_config.h>

// GCC include search path in qmk_firmare/keyboards/zinc/
// #include "..." search starts here:
// #include <...> search starts here:
// keyboards/zinc/rev?/keymaps/MAPNAME
// keyboards/zinc
// keyboards/zinc/rev?
// .
// ./tmk_core
// ......

#ifdef USE_Link_Time_Optimization
// LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
// so just disable them
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION
#endif // USE_Link_Time_Optimization

//#endif /* CONFIG_H */
162 changes: 0 additions & 162 deletions keyboards/zinc/i2c.c

This file was deleted.

49 changes: 0 additions & 49 deletions keyboards/zinc/i2c.h

This file was deleted.

2 changes: 0 additions & 2 deletions keyboards/zinc/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once
// if you need more program area, try uncomment follow line
#include "serial_config_simpleapi.h"

// place overrides here
// Selection of RGBLIGHT MODE to use.
Expand Down
28 changes: 19 additions & 9 deletions keyboards/zinc/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { \
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | |RGB ON| HUE+ | SAT+ | VAL+ | Mac | | Win | - | = |Print |ScLock|Pause |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | | MODE | HUE- | SAT- | VAL- | | | | | | | | |
* |MODE R| MODE | HUE- | SAT- | VAL- | | | | | | |PageUp| |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | | | | EISU | EISU | EISU | | KANA | KANA | Home |PageDn|PageUp| End |
* `-----------------------------------------' `-----------------------------------------'
*/
[_ADJUST] = LAYOUT_ortho_4x12( \
_______, RESET, RGBRST, _______, _______, _______, _______, QWERTY, COLEMAK, DVORAK, _______, KC_INS, \
_______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, AG_NORM, AG_SWAP, KC_MINS, KC_EQL, KC_PSCR, KC_SLCK, KC_PAUS,\
_______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______,\
_______, _______, _______, EISU, EISU, EISU, KANA, KANA, KC_HOME, KC_PGDN, KC_PGUP, KC_END\
RGB_RMOD,RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, KC_PGUP, _______,\
_______, _______, _______, EISU, EISU, EISU, KANA, KANA, KANA, KC_HOME, KC_PGDN, KC_END\
)
};

// define variables for reactive RGB
bool TOG_STATUS = false;
bool TOG_STATUS = false;

// Setting ADJUST layer RGB back to default
void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
Expand Down Expand Up @@ -212,7 +212,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;

case RAISE:
if (record->event.pressed) {
//not sure how to have keyboard check mode and set it to a variable, so my work around
Expand Down Expand Up @@ -245,16 +245,28 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;

//led operations - RGB mode change now updates the RGB_current_mode to allow the right RGB mode to be set after reactive keys are released
case RGB_RMOD:
#if defined(RGBLIGHT_ENABLE)
if (record->event.pressed) {
rgblight_mode_noeeprom(RGB_current_config.mode);
rgblight_step_reverse();
RGB_current_config.mode = rgblight_config.mode;
}
return false;
#endif
break;

case RGB_MOD:
#ifdef RGBLIGHT_ENABLE
#if defined(RGBLIGHT_ENABLE)
if (record->event.pressed) {
rgblight_mode_noeeprom(RGB_current_config.mode);
rgblight_step();
RGB_current_config.mode = rgblight_config.mode;
}
#endif
return false;
#endif
break;

case EISU:
Expand Down Expand Up @@ -302,5 +314,3 @@ void matrix_init_user(void) {
RGB_current_config = rgblight_config;
#endif
}


Loading