-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add I2C offset to get the keyboard init state (#57)
* Add I2C offset to get the keyboard init state * Change keyboard ready state to 0x01. Change docs, warn that all other init states are subject to change. * Move all defines to header file
- Loading branch information
1 parent
70e3a59
commit bf5d029
Showing
6 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
#pragma once | ||
|
||
// Mouse | ||
void mouseTick(); | ||
void mouseReset(); | ||
void mouseSetRequestedId(uint8_t); | ||
uint8_t getMouseId(); | ||
bool mouseIsReady(); | ||
uint8_t getMousePacketSize(); | ||
|
||
// Keyboard | ||
#define KBD_STATE_OFF 0x00 | ||
#define KBD_STATE_READY 0x01 | ||
#define KBD_STATE_BAT 0x02 | ||
#define KBD_STATE_SET_LEDS 0x03 | ||
#define KBD_STATE_SET_LEDS_ACK 0x04 | ||
#define KBD_STATE_RESET 0x10 | ||
#define KBD_STATE_RESET_ACK 0x11 | ||
|
||
void keyboardTick(); | ||
void keyboardReset(); | ||
bool keyboardIsReady(); | ||
uint8_t getKeyboardState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#define version_major 47 | ||
#define version_minor 2 | ||
#define version_patch 4 | ||
#define version_patch 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters