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

Adding bm60ec rgb #12852

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
741a199
initial checkin
umbacos Oct 4, 2020
83b8a4c
initial commit
umbacos Oct 4, 2020
3baedf9
added makefiles
umbacos Oct 4, 2020
ac2aba1
sa
umbacos Oct 16, 2020
ecf327d
refresh
umbacos Dec 23, 2020
a477049
Create mail
umbacos Oct 21, 2020
91533ea
Delete mail
umbacos Oct 21, 2020
8bd3d4c
spi
umbacos Dec 28, 2020
652816b
bm43a updated
umbacos Dec 29, 2020
c0e46d2
added rama m65
umbacos Feb 27, 2021
d80994f
update m65b
umbacos Mar 4, 2021
4895b8e
added bm60ec rgb
umbacos May 8, 2021
9c4f42b
changed name to the directory
umbacos May 9, 2021
28f9664
fixed directories
umbacos May 9, 2021
d64e915
added readme.md
umbacos May 9, 2021
2aa3a87
rebaselined qmk
umbacos May 12, 2021
391e36a
dz60
umbacos May 14, 2021
bb439e4
okok
umbacos May 25, 2021
b6c0393
ok
umbacos Jun 12, 2021
06bb570
fixed encoders
umbacos Jun 14, 2021
9369df0
ok
umbacos Jun 15, 2021
71d8483
ok
umbacos Jun 16, 2021
9e34daa
ok
umbacos Jun 16, 2021
1f4c306
update
umbacos Jun 30, 2021
a03aea3
ok
umbacos Jul 6, 2021
0d4413d
win_mac
umbacos Jul 19, 2021
8cd49f9
abba
umbacos Jul 31, 2021
4694eae
new keymap
umbacos Aug 15, 2021
0dc2bdb
[Keyboard] Add Waka60 keyboard (#15173)
kylemccreery Dec 11, 2021
fb93869
[Keyboard] add Radialex (#14949)
takashicompany Dec 11, 2021
0aa59ee
[Keyboard] Add ginkgo65hot (#15404)
Runheme Dec 11, 2021
9294258
[Keyboard] Add KPrepublic BM60hsrgb/rev2 (#15177)
peepeetee Dec 11, 2021
711a608
bugfix (I don't know what's changed yet but something changed) (#15455)
peepeetee Dec 11, 2021
ae34dde
[Keyboard] Add XS60 (#15248)
Xelus22 Dec 11, 2021
d566c7c
a
umbacos Dec 11, 2021
67920f6
Merge branch 'master' of https://github.com/umbacos/qmk_firmware
umbacos Dec 11, 2021
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
Binary file added hid_listen.mac
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma once

/* Make layout upside down = USB port on left side
#undef MATRIX_ROW_PINS
#undef MATRIX_COL_PINS
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
#define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B4 }
*/

#define IGNORE_MOD_TAP_INTERRUPT

#define MUSIC_MAP

#define RGB_DI_PIN D3
#define RGBLED_NUM 20
#define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

//#define BACKLIGHT_BREATHING
//#define BREATHING_PERIOD 6
//#define BACKLIGHT_LEVELS 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
#include QMK_KEYBOARD_H
#include "keymap_italian.h"
#include <print.h>

#ifdef AUDIO_ENABLE
#include "audio.h"
#endif

extern keymap_config_t keymap_config;
bool alt_tab_enabled;
uint32_t alt_tab_timer;

// custom keycodes
enum gherkin_tapcodes {
TD_Q_ESC,
TD_P_BKSP,
TD_I_UP,
TD_K_DOWN,
TD_J_LEFT,
TD_L_RIGHT
};

//Friendly Layer Names
enum gherkin_layers {
_QWERTY,
_SUPER,
_SHIFT_SUPER,
_LOWER,
_ACCENT,
_ALT_TAB,
_MUSIC
};

// custom keycodes
enum gherkin_keycodes {
QWERTY = SAFE_RANGE,
SUPER,
LOWER,
BOOT,
BACKLIT,
ALT_TAB,
PLAY_1,
PLAY_2,
PLAY_3,
MUSIC,
MUSIC_OFF
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_ortho_3x10(
TD(TD_Q_ESC), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, TD(TD_P_BKSP),
LGUI_T(KC_A), LT(_ALT_TAB,KC_S), KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, RGUI_T(KC_ENT),
LSFT_T(KC_Z), LCTL_T(KC_X), LALT_T(KC_C), LT(_ACCENT,KC_V), LT(_SHIFT_SUPER, KC_BSPC), LT(_SUPER, KC_SPC), LT(_ACCENT, KC_B), RALT_T(KC_N), RCTL_T(KC_M), RSFT_T(IT_COMM)
),
[_SUPER] = LAYOUT_ortho_3x10(
KC_1, KC_2, KC_3, IT_MINS, IT_EQL, IT_BKSL, KC_HOME, KC_UP, KC_END, KC_BSPC,
KC_4, KC_5, KC_6, IT_LBRC, IT_RBRC, IT_SLSH, KC_LEFT, KC_DOWN, KC_RIGHT, KC_DEL ,
LT(_SHIFT_SUPER, KC_7), KC_8, KC_9, KC_0, MO(_LOWER), _______, IT_QST, IT_LESS, IT_APOS, IT_DOT
),
[_SHIFT_SUPER] = LAYOUT_ortho_3x10(
IT_EXLM, IT_AT, IT_SHRP, IT_UNDS, IT_PLUS, IT_PIPE, S(KC_HOME), S(KC_UP), S(KC_END), _______,
IT_DLR, IT_PERC, IT_CRC, IT_LCBR, IT_RCBR, IT_MORE, S(KC_LEFT), S(KC_DOWN), S(KC_RIGHT), _______ ,
IT_AMPR, IT_ASTR, IT_LPRN, IT_RPRN, _______, MO(_LOWER), IT_SCLN, IT_MORE, IT_DQOT, IT_COLN
),
[_LOWER] = LAYOUT_ortho_3x10(
MUSIC, BL_TOGG, PLAY_1, KC_MUTE, RGB_TOG, KC_WH_U, KC_MS_BTN1, KC_MS_U, KC_MS_BTN2, KC_PGUP,
KC_TAB, BL_STEP, PLAY_2, KC_VOLU, RGB_MOD, KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_PGDN,
KC_LSFT, BL_BRTG, PLAY_3, KC_VOLD, _______, KC_DOT, BOOT, XXXXXXX, KC_LGUI, KC_RSFT
),
[_ACCENT] = LAYOUT_ortho_3x10(
IT_EURO, XXXXXXX, IT_EACC, KC_F1, KC_F2, KC_F3, IT_UACC, IT_IACC, IT_OACC, XXXXXXX,
IT_AACC, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
KC_LSFT, KC_LCTL, KC_LALT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_RALT, KC_RCTL, KC_RSFT
),
[_ALT_TAB] = LAYOUT_ortho_3x10(
ALT_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
KC_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
),
[_MUSIC] = LAYOUT_ortho_3x10(
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, MUSIC_OFF
),
};

#ifdef AUDIO_ENABLE

const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_ortho_3x10(
19, 20, 21, 22, 23, 29, 30, 31, 32, 33,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
0, 1, 2, 3, 4, 5, 6, 7, 15, 16
);

float tone_startup[][2] = SONG(STARTUP_SOUND);
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
float tone_dvorak[][2] = SONG(DVORAK_SOUND);
float tone_colemak[][2] = SONG(COLEMAK_SOUND);
float tone_plover[][2] = SONG(PLOVER_SOUND);
float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND);
float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);

float tone_1[][2] = SONG(ODE_TO_JOY);
float tone_2[][2] = SONG(CAMPANELLA);
float tone_3[][2] = SONG(FANTASIE_IMPROMPTU);

#endif

void persistant_default_layer_set(uint16_t default_layer) {
eeconfig_update_default_layer(default_layer);
default_layer_set(default_layer);
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case ALT_TAB:
if (record->event.pressed) {
alt_tab_enabled = true;
register_code(KC_LGUI);
tap_code(KC_TAB);
}
break;
case BOOT:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_SONG(tone_plover_gb);
wait_ms(500);
#endif
reset_keyboard();
}
return false;
break;
case MUSIC:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_SONG(tone_plover_gb);
music_on();
layer_on(_MUSIC);
#endif
}
return false;
break;
case PLAY_1:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_SONG(tone_1);
#endif
}
return false;
break;
case PLAY_2:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_SONG(tone_2);
#endif
}
return false;
break;
case PLAY_3:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_SONG(tone_3);
#endif
}
return false;
break;
case BACKLIT:
if (record->event.pressed) {
register_code(KC_RSFT);
#ifdef BACKLIGHT_ENABLE

#ifdef AUDIO_ENABLE
PLAY_SONG(tone_plover_gb);
#endif

backlight_step();
#endif
} else {
unregister_code(KC_RSFT);
}
return false;
break;
}
return true;
}

void matrix_init_user(void) {

#ifdef AUDIO_ENABLE
set_tempo(255);
startup_user();
#endif
}

#ifdef AUDIO_ENABLE

void startup_user()
{
wait_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}

void shutdown_user()
{
PLAY_SONG(tone_goodbye);
wait_ms(150);
stop_all_notes();
}

void music_on_user(void)
{
music_scale_user();
}

void music_scale_user(void)
{
PLAY_SONG(music_scale);
}

bool music_mask_user(uint16_t keycode) {

switch (keycode) {
case MUSIC_OFF:
music_off();
layer_state_set(_QWERTY);
return false;

default:
return true;
}
}

#endif

void matrix_scan_user(void) {

if (alt_tab_enabled && (get_highest_layer(layer_state)==_QWERTY)) {
unregister_code(KC_LGUI);
alt_tab_enabled=false;
}
}

//Tap Dance Definitions
qk_tap_dance_action_t tap_dance_actions[] = {
[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC),
[TD_P_BKSP] = ACTION_TAP_DANCE_DOUBLE(KC_P, KC_BSPC),
[TD_I_UP] = ACTION_TAP_DANCE_DOUBLE(KC_I, KC_UP),
[TD_K_DOWN] = ACTION_TAP_DANCE_DOUBLE(KC_K, KC_DOWN),
[TD_J_LEFT] = ACTION_TAP_DANCE_DOUBLE(KC_J, KC_LEFT),
[TD_L_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_L, KC_RIGHT),
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TAP_DANCE_ENABLE = yes
MOUSEKEY_ENABLE = yes
BACKLIGHT_ENABLE = yes
CONSOLE_ENABLE = no
AUDIO_ENABLE = no
#BACKLIGHT_DRIVER = yes # Valid driver values are 'pwm,software,no'
RGBLIGHT_ENABLE = yes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once

/* Make layout upside down = USB port on left side
#undef MATRIX_ROW_PINS
#undef MATRIX_COL_PINS
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
#define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B4 }
*/

#define IGNORE_MOD_TAP_INTERRUPT

#define RGB_DI_PIN F6
#define RGBLED_NUM 6
#define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

#ifdef BACKLIGHT_LEVELS
#undef BACKLIGHT_LEVELS
#endif
#define BACKLIGHT_LEVELS 3

#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#include QMK_KEYBOARD_H
#include "keymap_italian.h"

//extern keymap_config_t keymap_config;
bool alt_tab_enabled;
uint32_t alt_tab_timer;

//Friendly Layer Names
enum gherkin_layers {
_QWERTY,
_ESC,
_BSPC,
_SHIFT,
_NUMBER,
_SYMBOL,
_ACCENT
};

// custom keycodes
enum gherkin_keycodes {
ALT_TAB = SAFE_RANGE
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_ortho_3x10(
LGUI_T(KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, RGUI_T(KC_P),
LT(_BSPC, KC_A), KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(_ESC, KC_ENT),
LT(_SHIFT, KC_Z),LCTL_T(KC_X), LALT_T(KC_C), LGUI_T(KC_V), LT(_NUMBER, KC_BSPC), LT(_ACCENT, KC_SPC), LGUI_T(KC_B), RALT_T(KC_N), RCTL_T(KC_M), RSFT_T(IT_COMM)
),
[_ESC] = LAYOUT_ortho_3x10(
KC_ESC, _______, KC_MUTE, RGB_TOG, BL_TOGG, _______, _______, _______, _______, _______,
KC_TAB, ALT_TAB, KC_VOLU, RGB_MOD, BL_STEP, _______, _______, _______, _______, _______,
_______, _______, KC_VOLD, _______, _______, _______, _______, _______, _______, _______
),
[_BSPC] = LAYOUT_ortho_3x10(
_______, _______, KC_MUTE, RGB_TOG, BL_TOGG, _______, _______, _______, _______, KC_BSPC,
KC_TAB, ALT_TAB, KC_VOLU, RGB_MOD, BL_STEP, _______, _______, _______, KC_UP, _______,
RESET, _______, KC_VOLD, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT
),
[_SHIFT] = LAYOUT_ortho_3x10(
S(KC_Q), S(KC_W), S(KC_E), S(KC_R), S(KC_T), S(KC_Y), S(KC_U), S(KC_I), S(KC_O), S(KC_P),
S(KC_A), S(KC_S), S(KC_D), S(KC_F), S(KC_G), S(KC_H), S(KC_J), S(KC_K), S(KC_L), S(KC_ENT),
S(KC_Z), S(KC_X), S(KC_C), S(KC_V), S(KC_BSPC), LT(_SYMBOL, S(KC_SPC)), S(KC_B), S(KC_N), S(KC_M), IT_DOT
),
[_NUMBER] = LAYOUT_ortho_3x10(
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
LGUI_T(KC_PPLS), KC_PMNS, KC_PSLS, KC_PAST, XXXXXXX, IT_PLUS, IT_MINS, IT_EQL, IT_LBRC, IT_RBRC,
LT(_SYMBOL, KC_7), KC_8, KC_9, KC_0, KC_SPC, _______, IT_QST, IT_LESS, IT_APOS, IT_SCLN
),
[_SYMBOL] = LAYOUT_ortho_3x10(
IT_EXLM, IT_AT, IT_SHRP, IT_UNDS, IT_PLUS, IT_PIPE, S(KC_HOME), S(KC_UP), S(KC_END), _______,
IT_DLR, IT_PERC, IT_CRC, IT_LCBR, IT_RCBR, IT_MORE, S(KC_LEFT), S(KC_DOWN), S(KC_RIGHT), _______ ,
IT_AMPR, IT_ASTR, IT_LPRN, IT_RPRN, _______, KC_SPC, IT_SLSH, IT_MORE, IT_DQOT, IT_COLN
),
[_ACCENT] = LAYOUT_ortho_3x10(
IT_EURO, XXXXXXX, IT_EACC, XXXXXXX, XXXXXXX, XXXXXXX, IT_UACC, IT_IACC, IT_OACC, XXXXXXX,
IT_AACC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, IT_SLSH, IT_MORE, IT_DQOT, IT_COLN,
KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, IT_QST, IT_LESS, IT_APOS, IT_SCLN
)
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case ALT_TAB:
if (record->event.pressed) {
alt_tab_enabled = true;
register_code(KC_LGUI);
tap_code(KC_TAB);
}
break;
}
return true;
}

void matrix_scan_user(void) {
if (alt_tab_enabled && (get_highest_layer(layer_state)==_QWERTY)) {
unregister_code(KC_LGUI);
alt_tab_enabled=false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BACKLIGHT_ENABLE = yes
RGBLIGHT_ENABLE = yes
Loading