1
0
Fork 0

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:
Joel Challis 2020-11-18 17:51:53 +00:00 committed by GitHub
parent e1e13c53ac
commit f00402a2f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 54 additions and 546 deletions

View file

@ -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);
}