forked from mirrors/qmk_firmware
Update keyboard tracking references
This commit is contained in:
parent
6de65dae06
commit
dfb7ce7f41
32 changed files with 79 additions and 79 deletions
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include "planck.h"
|
#include "planck.h"
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_ez_glow
|
#ifdef KEYBOARD_olkb_planck_ez_glow
|
||||||
# include "glow.h"
|
# include "glow.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -175,12 +175,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,7 +358,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_ez
|
#ifdef KEYBOARD_olkb_planck_ez
|
||||||
|
|
||||||
#define LED_BRIGHTNESS 50
|
#define LED_BRIGHTNESS 50
|
||||||
|
|
||||||
|
@ -381,4 +381,4 @@ layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* KEYBOARD_planck_ez */
|
#endif /* KEYBOARD_olkb_planck_ez */
|
||||||
|
|
|
@ -207,12 +207,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,12 +216,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifndef KEYBOARD_planck_rev6
|
#ifndef KEYBOARD_olkb_planck_rev6
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifndef KEYBOARD_planck_rev6
|
#ifndef KEYBOARD_olkb_planck_rev6
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,12 +238,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,12 +207,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,12 +107,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,14 +154,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1 << 6);
|
PORTE &= ~(1 << 6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1 << 6);
|
PORTE |= (1 << 6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,12 +270,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,12 +130,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
{k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c}, \
|
{k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c}, \
|
||||||
{k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c} \
|
{k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c} \
|
||||||
}
|
}
|
||||||
#elif KEYBOARD_planck_rev6
|
#elif KEYBOARD_olkb_planck_rev6
|
||||||
#define LAYOUT( \
|
#define LAYOUT( \
|
||||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
||||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
|
||||||
|
|
|
@ -183,12 +183,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,12 +183,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,12 +171,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,12 +251,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,12 +218,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE &= ~(1<<6);
|
PORTE &= ~(1<<6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
PORTE |= (1<<6);
|
PORTE |= (1<<6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,21 +5,21 @@
|
||||||
|
|
||||||
#define encoder_update(clockwise) encoder_update_user(uint8_t index, clockwise)
|
#define encoder_update(clockwise) encoder_update_user(uint8_t index, clockwise)
|
||||||
|
|
||||||
#if defined(KEYBOARD_planck_ez)
|
#if defined(KEYBOARD_olkb_planck_ez)
|
||||||
#include "ez.h"
|
#include "ez.h"
|
||||||
#elif defined(KEYBOARD_planck_light)
|
#elif defined(KEYBOARD_olkb_planck_light)
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#elif defined(KEYBOARD_planck_rev1)
|
#elif defined(KEYBOARD_olkb_planck_rev1)
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
#elif defined(KEYBOARD_planck_rev2)
|
#elif defined(KEYBOARD_olkb_planck_rev2)
|
||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
#elif defined(KEYBOARD_planck_rev3)
|
#elif defined(KEYBOARD_olkb_planck_rev3)
|
||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
#elif defined(KEYBOARD_planck_rev4)
|
#elif defined(KEYBOARD_olkb_planck_rev4)
|
||||||
#include "rev4.h"
|
#include "rev4.h"
|
||||||
#elif defined(KEYBOARD_planck_rev5)
|
#elif defined(KEYBOARD_olkb_planck_rev5)
|
||||||
#include "rev5.h"
|
#include "rev5.h"
|
||||||
#elif defined(KEYBOARD_planck_rev6)
|
#elif defined(KEYBOARD_olkb_planck_rev6)
|
||||||
#include "rev6.h"
|
#include "rev6.h"
|
||||||
#endif // Planck revisions
|
#endif // Planck revisions
|
||||||
|
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
/**************************************************
|
/**************************************************
|
||||||
** Include headers specific to keyboard revision **
|
** Include headers specific to keyboard revision **
|
||||||
**************************************************/
|
**************************************************/
|
||||||
#ifdef KEYBOARD_preonic_rev1
|
#ifdef KEYBOARD_olkb_preonic_rev1
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KEYBOARD_preonic_rev2
|
#ifdef KEYBOARD_olkb_preonic_rev2
|
||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KEYBOARD_preonic_rev3
|
#ifdef KEYBOARD_olkb_preonic_rev3
|
||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||||
// #define STARTUP_SONG SONG(NO_SOUND)
|
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
#include "muse.h"
|
#include "muse.h"
|
||||||
#endif
|
#endif
|
||||||
#include "brandonschlack.h"
|
#include "brandonschlack.h"
|
||||||
|
@ -109,7 +109,7 @@ void led_set_user(uint8_t usb_led) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
float plover_song[][2] = SONG(PLOVER_SOUND);
|
float plover_song[][2] = SONG(PLOVER_SOUND);
|
||||||
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
|
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
|
||||||
# if defined(KEYBOARD_planck_light)
|
# if defined(KEYBOARD_olkb_planck_light)
|
||||||
# define RGB_DI_PIN A0
|
# define RGB_DI_PIN A0
|
||||||
# define RGBLED_NUM 13 // Number of LEDs
|
# define RGBLED_NUM 13 // Number of LEDs
|
||||||
# endif
|
# endif
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
# undef RGB_MATRIX_LED_PROCESS_LIMIT
|
# undef RGB_MATRIX_LED_PROCESS_LIMIT
|
||||||
# undef RGB_MATRIX_LED_FLUSH_LIMIT
|
# undef RGB_MATRIX_LED_FLUSH_LIMIT
|
||||||
# ifdef KEYBOARD_planck_rev6
|
# ifdef KEYBOARD_olkb_planck_rev6
|
||||||
# define DRIVER_LED_TOTAL RGBLED_NUM
|
# define DRIVER_LED_TOTAL RGBLED_NUM
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
# define EE_HANDS
|
# define EE_HANDS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(KEYBOARD_planck_light)
|
#if !defined(KEYBOARD_olkb_planck_light)
|
||||||
# ifdef RGBLIGHT_ENABLE
|
# ifdef RGBLIGHT_ENABLE
|
||||||
# define NO_MUSIC_MODE
|
# define NO_MUSIC_MODE
|
||||||
# endif // RGBLIGHT_ENABLE
|
# endif // RGBLIGHT_ENABLE
|
||||||
|
@ -65,15 +65,15 @@
|
||||||
# undef QMK_SPEAKER
|
# undef QMK_SPEAKER
|
||||||
# define QMK_SPEAKER B5
|
# define QMK_SPEAKER B5
|
||||||
# define SOLENOID_PIN A1
|
# define SOLENOID_PIN A1
|
||||||
#endif // KEYBOARD_planck_light
|
#endif // KEYBOARD_olkb_planck_light
|
||||||
|
|
||||||
#if defined(KEYBOARD_planck)
|
#if defined(KEYBOARD_olkb_planck)
|
||||||
# undef PRODUCT
|
# undef PRODUCT
|
||||||
# if defined(KEYBOARD_planck_light)
|
# if defined(KEYBOARD_olkb_planck_light)
|
||||||
# define PRODUCT Drashna Hacked RGB Beacon(Planck Light)
|
# define PRODUCT Drashna Hacked RGB Beacon(Planck Light)
|
||||||
# elif defined(KEYBOARD_planck_rev6)
|
# elif defined(KEYBOARD_olkb_planck_rev6)
|
||||||
# define PRODUCT Drashna Hacked Planck Rev6
|
# define PRODUCT Drashna Hacked Planck Rev6
|
||||||
# elif defined(KEYBOARD_planck_ez)
|
# elif defined(KEYBOARD_olkb_planck_ez)
|
||||||
# define PRODUCT Drashna Hacked Planck EZ
|
# define PRODUCT Drashna Hacked Planck EZ
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@ enum planck_keycodes {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_ez
|
#ifdef KEYBOARD_olkb_planck_ez
|
||||||
# define PLNK_1 BK_LWER
|
# define PLNK_1 BK_LWER
|
||||||
# define PLNK_2 SP_LWER
|
# define PLNK_2 SP_LWER
|
||||||
# define PLNK_3 KC_NO
|
# define PLNK_3 KC_NO
|
||||||
|
@ -162,7 +162,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_ez
|
#ifdef KEYBOARD_olkb_planck_ez
|
||||||
case TH_LVL:
|
case TH_LVL:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
keyboard_config.led_level++;
|
keyboard_config.led_level++;
|
||||||
|
@ -196,7 +196,7 @@ bool music_mask_user(uint16_t keycode) {
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
|
||||||
# ifdef KEYBOARD_planck_rev6
|
# ifdef KEYBOARD_olkb_planck_rev6
|
||||||
// clang-format off
|
// clang-format off
|
||||||
led_config_t g_led_config = {
|
led_config_t g_led_config = {
|
||||||
{
|
{
|
||||||
|
@ -236,7 +236,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
uint8_t this_led = host_keyboard_leds();
|
uint8_t this_led = host_keyboard_leds();
|
||||||
uint8_t this_osm = get_oneshot_mods();
|
uint8_t this_osm = get_oneshot_mods();
|
||||||
bool is_ez;
|
bool is_ez;
|
||||||
# ifdef KEYBOARD_planck_ez
|
# ifdef KEYBOARD_olkb_planck_ez
|
||||||
is_ez = true;
|
is_ez = true;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@ void rgb_matrix_indicators_user(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_init_keymap(void) {
|
void matrix_init_keymap(void) {
|
||||||
# ifdef KEYBOARD_planck_light
|
# ifdef KEYBOARD_olkb_planck_light
|
||||||
writePinLow(D6);
|
writePinLow(D6);
|
||||||
# endif
|
# endif
|
||||||
// rgblight_mode(RGB_MATRIX_MULTISPLASH);
|
// rgblight_mode(RGB_MATRIX_MULTISPLASH);
|
||||||
|
@ -340,7 +340,7 @@ void matrix_init_keymap(void) {
|
||||||
#else // RGB_MATRIX_INIT
|
#else // RGB_MATRIX_INIT
|
||||||
|
|
||||||
void matrix_init_keymap(void) {
|
void matrix_init_keymap(void) {
|
||||||
# if !defined(CONVERT_TO_PROTON_C) && !defined(KEYBOARD_planck)
|
# if !defined(CONVERT_TO_PROTON_C) && !defined(KEYBOARD_olkb_planck)
|
||||||
setPinOutput(D5);
|
setPinOutput(D5);
|
||||||
writePinHigh(D5);
|
writePinHigh(D5);
|
||||||
|
|
||||||
|
@ -377,7 +377,7 @@ void encoder_update(bool clockwise) {
|
||||||
}
|
}
|
||||||
#endif // ENCODER_ENABLE
|
#endif // ENCODER_ENABLE
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
void dip_update(uint8_t index, bool active) {
|
void dip_update(uint8_t index, bool active) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -402,9 +402,9 @@ void dip_update(uint8_t index, bool active) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // KEYBOARD_planck_rev6
|
#endif // KEYBOARD_olkb_planck_rev6
|
||||||
|
|
||||||
#ifdef KEYBOARD_planck_ez
|
#ifdef KEYBOARD_olkb_planck_ez
|
||||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||||
planck_ez_left_led_off();
|
planck_ez_left_led_off();
|
||||||
planck_ez_right_led_off();
|
planck_ez_right_led_off();
|
||||||
|
|
|
@ -14,7 +14,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
void rgb_matrix_indicators_user(void) {
|
void rgb_matrix_indicators_user(void) {
|
||||||
#ifdef KEYBOARD_planck_light
|
#ifdef KEYBOARD_olkb_planck_light
|
||||||
// Disable light in middle of 2U position of Planck Light
|
// Disable light in middle of 2U position of Planck Light
|
||||||
rgb_matrix_set_color(42, 0, 0, 0);
|
rgb_matrix_set_color(42, 0, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -230,7 +230,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Disable LED on Rev6
|
// Disable LED on Rev6
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||||
}
|
}
|
||||||
|
@ -283,12 +283,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,12 +179,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,12 +208,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
backlight_step();
|
backlight_step();
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinLow(E6);
|
writePinLow(E6);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
unregister_code(KC_RSFT);
|
unregister_code(KC_RSFT);
|
||||||
#ifdef KEYBOARD_planck_rev5
|
#ifdef KEYBOARD_olkb_planck_rev5
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#define EE_HANDS
|
#define EE_HANDS
|
||||||
|
|
||||||
#undef RGBLED_NUM
|
#undef RGBLED_NUM
|
||||||
#if defined(KEYBOARD_planck_rev5)
|
#if defined(KEYBOARD_olkb_planck_rev5)
|
||||||
#define RGBLED_NUM 10
|
#define RGBLED_NUM 10
|
||||||
#define RGB_DI_PIN D1
|
#define RGB_DI_PIN D1
|
||||||
#elif defined(KEYBOARD_keebio_levinson_rev2)
|
#elif defined(KEYBOARD_keebio_levinson_rev2)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef KEYBOARD_preonic_rev3
|
#ifdef KEYBOARD_olkb_preonic_rev3
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
#define STARTUP_SONG SONG(PREONIC_SOUND)
|
#define STARTUP_SONG SONG(PREONIC_SOUND)
|
||||||
// #define STARTUP_SONG SONG(NO_SOUND)
|
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
#ifdef KEYBOARD_preonic_rev3
|
#ifdef KEYBOARD_olkb_preonic_rev3
|
||||||
#include "muse.h"
|
#include "muse.h"
|
||||||
#endif
|
#endif
|
||||||
#include "brandonschlack.h"
|
#include "brandonschlack.h"
|
||||||
|
@ -104,7 +104,7 @@ layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KEYBOARD_preonic_rev3
|
#ifdef KEYBOARD_olkb_preonic_rev3
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
float plover_song[][2] = SONG(PLOVER_SOUND);
|
float plover_song[][2] = SONG(PLOVER_SOUND);
|
||||||
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#ifndef RGBLIGHT_ENABLE
|
#ifndef RGBLIGHT_ENABLE
|
||||||
#undef RGB_DI_PIN
|
#undef RGB_DI_PIN
|
||||||
#endif
|
#endif
|
||||||
#if defined(KEYBOARD_preonic_rev2)
|
#if defined(KEYBOARD_olkb_preonic_rev2)
|
||||||
#define RGB_DI_PIN B3
|
#define RGB_DI_PIN B3
|
||||||
#undef RGBLED_NUM
|
#undef RGBLED_NUM
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
|
|
@ -17,21 +17,21 @@
|
||||||
#define MT_SPC SFT_T(KC_SPC)
|
#define MT_SPC SFT_T(KC_SPC)
|
||||||
|
|
||||||
// LED/RGB controls
|
// LED/RGB controls
|
||||||
#ifdef KEYBOARD_planck_light
|
#ifdef KEYBOARD_olkb_planck_light
|
||||||
#define LGT_TOG RGB_TOG
|
#define LGT_TOG RGB_TOG
|
||||||
#define LGT_MOD RGB_MOD
|
#define LGT_MOD RGB_MOD
|
||||||
#define LGT_BRT _______
|
#define LGT_BRT _______
|
||||||
#define LGT_INC RGB_HUI
|
#define LGT_INC RGB_HUI
|
||||||
#define LGT_DEC RGB_HUD
|
#define LGT_DEC RGB_HUD
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev3
|
#ifdef KEYBOARD_olkb_planck_rev3
|
||||||
#define LGT_TOG BL_TOGG
|
#define LGT_TOG BL_TOGG
|
||||||
#define LGT_MOD BL_STEP
|
#define LGT_MOD BL_STEP
|
||||||
#define LGT_BRT BL_BRTG
|
#define LGT_BRT BL_BRTG
|
||||||
#define LGT_INC BL_INC
|
#define LGT_INC BL_INC
|
||||||
#define LGT_DEC BL_DEC
|
#define LGT_DEC BL_DEC
|
||||||
#endif
|
#endif
|
||||||
#ifdef KEYBOARD_planck_rev6
|
#ifdef KEYBOARD_olkb_planck_rev6
|
||||||
#define LGT_TOG _______
|
#define LGT_TOG _______
|
||||||
#define LGT_MOD _______
|
#define LGT_MOD _______
|
||||||
#define LGT_BRT _______
|
#define LGT_BRT _______
|
||||||
|
|
Loading…
Reference in a new issue