Skip to content

Commit

Permalink
Added Caps Lock LED handler to wilba.tech PCBs (qmk#8660)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilba authored and sowbug committed May 24, 2020
1 parent a19b8fc commit 7094f4f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
13 changes: 13 additions & 0 deletions keyboards/wilba_tech/wt60_d/wt60_d.c
Original file line number Diff line number Diff line change
@@ -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;
}
15 changes: 14 additions & 1 deletion keyboards/wilba_tech/wt69_a/wt69_a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 7094f4f

Please sign in to comment.