summary refs log tree commit diff
path: root/keyboards/alps64
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-11-18 17:51:53 +0000
committerGitHub <noreply@github.com>2020-11-18 17:51:53 +0000
commitf00402a2f3d551bcb1fb87245238e2b392192eb5 (patch)
treeaad0bdc88a3fae31ac58cfdd62d99bac06dc67d0 /keyboards/alps64
parente1e13c53acb24c3617c3de88fa401acb3d628074 (diff)
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
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 0e4ef07bc0..61270aaced 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
 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);
-}
diff --git a/keyboards/alps64/config.h b/keyboards/alps64/config.h
index 25453e696f..15903818b9 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/>.
 
 #define DIODE_DIRECTION COL2ROW
 
+#define LED_CAPS_LOCK_PIN C5
+
 /* define if matrix has ghost */
 //#define MATRIX_HAS_GHOST