diff options
author | randlor <[email protected]> | 2019-12-16 05:33:04 +0000 |
---|---|---|
committer | James Young <[email protected]> | 2019-12-15 21:33:04 -0800 |
commit | 74dc65ab2efd315eaf1b954b782289d5be3c0721 (patch) | |
tree | 241240b54743cbb4515b1aef65251254cbc43ae1 /keyboards/xd68/xd68.c | |
parent | 3eb82e047079230e55d3aeff901c4d0dce69fb3a (diff) | |
download | qmk_firmware-74dc65ab2efd315eaf1b954b782289d5be3c0721.tar.gz qmk_firmware-74dc65ab2efd315eaf1b954b782289d5be3c0721.zip |
[Keyboard] XD68 65% ATMega32U4 based (#7395)
* First working draft
* Updated readme.md
* Fixed url
* Typo fix
* RGB + Backlight working
* Fixed matrix for ISO NUHS
* ISO matrix working
* Adding ANSI default layout
* First release commit
* Removed reference to deprecated layout
* Changes from PR #7395 review
* Additional changes as requested for PR #7395
* Additional changes from @noroadsleft review
* Replaced ifndef/endif with pragma
* Adding yanfali's recommended changes
Diffstat (limited to 'keyboards/xd68/xd68.c')
-rwxr-xr-x | keyboards/xd68/xd68.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/xd68/xd68.c b/keyboards/xd68/xd68.c new file mode 100755 index 0000000000..2a5a52bdae --- /dev/null +++ b/keyboards/xd68/xd68.c @@ -0,0 +1,22 @@ +#include "xd68.h" + +void matrix_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + matrix_init_user(); + led_init_ports(); +} + +void led_init_ports(void) { + // * Set our LED pins as output + setPinOutput(B2); + writePinHigh(B2); +} + +bool led_update_kb(led_t led_state) { + if(led_update_user(led_state)) { + writePin(B2, !led_state.caps_lock); + } + return true; +} + |