Update VIA support for Noxary 268.2 (#9451)

* Update readme.md description

* Enable bootmagic lite

* Update USB descriptor

* Add modern led code

* Update default keymap for readability

* Update default keymap readme with layout image

* Add VIA keymap

* Update keyboards/noxary/268_2/keymaps/default/readme.md

Flip order of layout image and title

* Update keyboards/noxary/268_2/keymaps/via/readme.md

Flip order of layout image and title

* Update keyboards/noxary/268_2/readme.md

bullet point keyboard maintainer

* Update keyboards/noxary/268_2/readme.md

Change list style
This commit is contained in:
Rozakiin
2020-06-23 07:24:33 +01:00
committed by GitHub
parent d353fcb99c
commit a8bb5840ad
9 changed files with 203 additions and 52 deletions

View File

@@ -15,13 +15,16 @@
*/
#include "268_2.h"
void led_set_kb(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
setPinOutput(B0);
writePinHigh(B0);
} else {
setPinInput(B0);
}
led_set_user(usb_led);
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
setPinOutput(B0);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B0, led_state.caps_lock);
}
return true;
}