summaryrefslogtreecommitdiff
path: root/keyboards/winry/winry315
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/winry/winry315')
-rw-r--r--keyboards/winry/winry315/config.h1
-rw-r--r--keyboards/winry/winry315/info.json3
-rw-r--r--keyboards/winry/winry315/keymaps/via/encoder_actions.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/winry/winry315/config.h b/keyboards/winry/winry315/config.h
index 620a7f6e6b..18d47f7ec4 100644
--- a/keyboards/winry/winry315/config.h
+++ b/keyboards/winry/winry315/config.h
@@ -12,7 +12,6 @@
// RGB LED parameters.
// This PCB uses a single chain of WS2812-compatible addressable RGB LEDs for
// per-key backlight and underglow.
-#define RGB_DI_PIN F7
#define RGBLED_NUM 27
#define RGBLIGHT_LIMIT_VAL 150
diff --git a/keyboards/winry/winry315/info.json b/keyboards/winry/winry315/info.json
index 4039d5aaf5..10088f2c42 100644
--- a/keyboards/winry/winry315/info.json
+++ b/keyboards/winry/winry315/info.json
@@ -22,6 +22,9 @@
["F4", "C7", "D4", "D5", "D1", "F5", "C6", "D6", "D3", "D2", "F6", "B6", "D7", "B4", "B5", "B2", "D0", "E6", null, null, null, null, null, null]
]
},
+ "ws2812": {
+ "pin": "F7"
+ },
"layout_aliases": {
"LAYOUT_all": "LAYOUT_top"
},
diff --git a/keyboards/winry/winry315/keymaps/via/encoder_actions.c b/keyboards/winry/winry315/keymaps/via/encoder_actions.c
index 9a9092effd..d24d13bb26 100644
--- a/keyboards/winry/winry315/keymaps/via/encoder_actions.c
+++ b/keyboards/winry/winry315/keymaps/via/encoder_actions.c
@@ -37,7 +37,8 @@ static void exec_encoder_action(uint8_t index, bool clockwise, bool pressed) {
keyevent_t encoder_event = (keyevent_t) {
.key = clockwise ? encoder_cw[index] : encoder_ccw[index],
.pressed = pressed,
- .time = (timer_read() | 1)
+ .time = timer_read(),
+ .type = KEY_EVENT
};
// clang-format on
action_exec(encoder_event);