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

Bump actions/stale from 5 to 7 #14

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
21 changes: 13 additions & 8 deletions keyboards/lily58/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#undef RGBLED_NUM
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 27
#define RGBLED_NUM 20
#define RGBLIGHT_LIMIT_VAL 120
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17
#define RGBLIGHT_VAL_STEP 17

// Underglow
/*
#undef RGBLED_NUM
#define RGBLED_NUM 14 // Number of LEDs
#define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_SLEEP
*/
#undef RGB_DI_PIN
#define RGB_DI_PIN D4
#define RGBLED_SPLIT { 10, 10 }

#define ENCODERS_PAD_A { F4 }
#define ENCODERS_PAD_B { F5 }
#define ENCODERS_PAD_A_RIGHT { F5 }
#define ENCODERS_PAD_B_RIGHT { F4 }
#define ENCODER_RESOLUTION 2

#define OLED_DISPLAY_128X64
#define SPLIT_OLED_ENABLE
51 changes: 48 additions & 3 deletions keyboards/lily58/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
#ifdef OLED_ENABLE

oled_rotation_t oled_init_user(oled_rotation_t rotation) {
if (!is_keyboard_master())
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
return rotation;
return OLED_ROTATION_180;
}

// When you add source files to SRC in rules.mk, you can use functions.
Expand Down Expand Up @@ -147,3 +145,50 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}

#ifdef ENCODER_ENABLE
bool encoder_update_user(uint8_t index, bool clockwise) {

if (index == 0) { // Left
switch (biton32(layer_state)) {
case _QWERTY:
// Move whole words. Hold shift to select while moving.
if (clockwise) {
tap_code16(C(KC_RGHT));
} else {
tap_code16(C(KC_LEFT));
}
break;
default:
// History scrubbing. For Adobe products, hold shift while moving
// backward to go forward instead.
if (clockwise) {
tap_code16(C(KC_Z));
} else {
tap_code16(C(KC_Y));
}
break;
}
} else if (index == 1) { // Right
switch (biton32(layer_state)) {
case _QWERTY:
// Scrolling with PageUp and PgDn.
if (clockwise) {
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
break;
default:
// Scroll through tabs
if (clockwise) {
tap_code16(C(KC_TAB));
} else {
tap_code16(S(C(KC_TAB)));
}
break;
}
}
return true;
}
#endif
4 changes: 2 additions & 2 deletions keyboards/lily58/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
SWAP_HANDS_ENABLE = no # Enable one-hand typing
OLED_ENABLE= yes # OLED display
OLED_ENABLE = yes # OLED display

# If you want to change the display of OLED, you need to change here
SRC += ./lib/rgb_state_reader.c \
Expand Down