keychron_qmk_firmware/keyboards/wekey/stelo65/stelo65.c
Uy Bui 50d81b63e9
[Keyboard] Stelo65 (#15102)
* [Keyboard] add new keyboard Stelo

* [Keyboard] Stelo encoder action

* Update keyboards/wekey/stelo/readme.md

* Update keyboards/wekey/stelo/rules.mk

* [Keyboard] change name Stelo to Stelo65
2022-01-08 19:53:45 -08:00

17 lines
409 B
C

// Copyright 2021 @wekey (@@wekey)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "stelo65.h"
#include "encoder_actions.h"
void matrix_scan_kb(void) {
encoder_action_unregister();
matrix_scan_user();
}
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
encoder_action_register(index, clockwise);
return true;
};