summaryrefslogtreecommitdiff
path: root/keyboards/al1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/al1')
-rw-r--r--keyboards/al1/al1.c24
-rw-r--r--keyboards/al1/al1.h5
-rw-r--r--keyboards/al1/config.h5
3 files changed, 5 insertions, 29 deletions
diff --git a/keyboards/al1/al1.c b/keyboards/al1/al1.c
index e50a6373b4..460a7620cf 100644
--- a/keyboards/al1/al1.c
+++ b/keyboards/al1/al1.c
@@ -14,27 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "al1.h"
-
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- return process_record_user(keycode, record);
-}
-
-void led_set_kb(uint8_t usb_led) {
- CONFIG_LED_IO;
- print_dec(usb_led);
- if (usb_led & (1<<USB_LED_CAPS_LOCK))
- PORTB &= ~(1<<7);
- else
- PORTB |= (1<<7);
-
- if (usb_led & (1<<USB_LED_NUM_LOCK))
- PORTD &= ~(1<<0);
- else
- PORTD |= (1<<0);
-
- if (usb_led & (1<<USB_LED_SCROLL_LOCK))
- PORTD &= ~(1<<1);
- else
- PORTD |= (1<<1);
- led_set_user(usb_led);
-}
diff --git a/keyboards/al1/al1.h b/keyboards/al1/al1.h
index 17a0c96552..c313a898d2 100644
--- a/keyboards/al1/al1.h
+++ b/keyboards/al1/al1.h
@@ -18,11 +18,6 @@
#include "quantum.h"
-#define CONFIG_LED_IO \
- DDRB |= (1<<7) | (1<<6); \
- DDRD |= (1<<0) | (1<<1);
-
-
#define LAYOUT( \
K500, K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K415, K414,\
K501, K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K215, K413,\
diff --git a/keyboards/al1/config.h b/keyboards/al1/config.h
index f4ded4346c..6a59afae7a 100644
--- a/keyboards/al1/config.h
+++ b/keyboards/al1/config.h
@@ -46,6 +46,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
+#define LED_NUM_LOCK_PIN D0
+#define LED_CAPS_LOCK_PIN B7
+#define LED_SCROLL_LOCK_PIN D1
+#define LED_PIN_ON_STATE 0
+
#define BACKLIGHT_PIN B6
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3