aboutsummaryrefslogtreecommitdiff
path: root/keyboards/alps64
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/alps64')
-rw-r--r--keyboards/alps64/alps64.c20
-rw-r--r--keyboards/alps64/config.h2
2 files changed, 2 insertions, 20 deletions
diff --git a/keyboards/alps64/alps64.c b/keyboards/alps64/alps64.c
index 0e4ef07bc..61270aace 100644
--- a/keyboards/alps64/alps64.c
+++ b/keyboards/alps64/alps64.c
@@ -15,23 +15,3 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#include "alps64.h" 17#include "alps64.h"
18
19void keyboard_pre_init_kb(void) {
20 // put your keyboard start-up code here
21 // runs once when the firmware starts up
22 setPinOutput(C5);
23 keyboard_pre_init_user();
24}
25
26void led_set_kb(uint8_t usb_led)
27{
28 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
29 // output high
30 writePinHigh(C5);
31 } else {
32 // Hi-Z
33 writePinLow(C5);
34 }
35
36 led_set_user(usb_led);
37}
diff --git a/keyboards/alps64/config.h b/keyboards/alps64/config.h
index 25453e696..15903818b 100644
--- a/keyboards/alps64/config.h
+++ b/keyboards/alps64/config.h
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
37 37
38#define DIODE_DIRECTION COL2ROW 38#define DIODE_DIRECTION COL2ROW
39 39
40#define LED_CAPS_LOCK_PIN C5
41
40/* define if matrix has ghost */ 42/* define if matrix has ghost */
41//#define MATRIX_HAS_GHOST 43//#define MATRIX_HAS_GHOST
42 44