Added Caps Lock LED handler to wilba.tech PCBs (#8660)

This commit is contained in:
Wilba 2020-04-06 00:18:17 +10:00 committed by GitHub
parent 90665aeec9
commit 48cad94d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View file

@ -1 +1,14 @@
#include "wt60_d.h"
void keyboard_pre_init_kb(void) {
setPinOutput(F1);
keyboard_pre_init_user();
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(F1, led_state.caps_lock);
}
return true;
}

View file

@ -14,4 +14,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Nothing to see here, move along... ;-)
#include "wt69_a.h"
void keyboard_pre_init_kb(void) {
setPinOutput(F1);
keyboard_pre_init_user();
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(F1, led_state.caps_lock);
}
return true;
}