Refactor to use led config - Part 3 (#10966)
* Refactor to use led config * Refactor to use led config * Refactor to use led config * Refactor to use led config
This commit is contained in:
parent
e1e13c53ac
commit
f00402a2f3
30 changed files with 54 additions and 546 deletions
|
@ -15,23 +15,3 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "alps64.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
setPinOutput(C5);
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led)
|
||||
{
|
||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
// output high
|
||||
writePinHigh(C5);
|
||||
} else {
|
||||
// Hi-Z
|
||||
writePinLow(C5);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue