Browse Source

Refactor to use led config - Part 6 (#12115)

* Convert to config

* Convert to config

* Convert to config

* Convert to config

* Convert to config

* Convert to config

* Convert to config

* Convert to config

* revert changes
pull/12199/head
Joel Challis 3 years ago
committed by GitHub
parent
commit
790f94533c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
153 changed files with 249 additions and 1623 deletions
  1. +0
    -16
      keyboards/ares/ares.c
  2. +2
    -0
      keyboards/ares/config.h
  3. +0
    -16
      keyboards/bfake/bfake.c
  4. +2
    -0
      keyboards/bfake/config.h
  5. +0
    -26
      keyboards/chili/chili.c
  6. +5
    -0
      keyboards/chili/config.h
  7. +4
    -0
      keyboards/coarse/cordillera/config.h
  8. +0
    -20
      keyboards/coarse/cordillera/cordillera.c
  9. +3
    -0
      keyboards/crazy_keyboard_68/config.h
  10. +0
    -19
      keyboards/crazy_keyboard_68/crazy_keyboard_68.c
  11. +3
    -0
      keyboards/daisy/config.h
  12. +0
    -18
      keyboards/daisy/daisy.c
  13. +3
    -0
      keyboards/do60/config.h
  14. +0
    -17
      keyboards/do60/do60.c
  15. +0
    -18
      keyboards/donutcables/budget96/budget96.c
  16. +3
    -0
      keyboards/donutcables/budget96/config.h
  17. +2
    -0
      keyboards/eve/meteor/config.h
  18. +0
    -16
      keyboards/eve/meteor/meteor.c
  19. +5
    -0
      keyboards/evyd13/eon75/config.h
  20. +0
    -29
      keyboards/evyd13/eon75/eon75.c
  21. +5
    -0
      keyboards/evyd13/eon95/config.h
  22. +0
    -29
      keyboards/evyd13/eon95/eon95.c
  23. +5
    -0
      keyboards/evyd13/gh80_1800/config.h
  24. +0
    -28
      keyboards/evyd13/gh80_1800/gh80_1800.c
  25. +3
    -0
      keyboards/evyd13/minitomic/config.h
  26. +0
    -34
      keyboards/evyd13/minitomic/minitomic.c
  27. +5
    -0
      keyboards/evyd13/mx5160/config.h
  28. +0
    -42
      keyboards/evyd13/mx5160/mx5160.c
  29. +2
    -0
      keyboards/evyd13/nt660/config.h
  30. +0
    -16
      keyboards/evyd13/nt660/nt660.c
  31. +4
    -0
      keyboards/evyd13/quackfire/config.h
  32. +0
    -28
      keyboards/evyd13/quackfire/quackfire.c
  33. +5
    -0
      keyboards/evyd13/wasdat/config.h
  34. +0
    -31
      keyboards/evyd13/wasdat/wasdat.c
  35. +5
    -0
      keyboards/evyd13/wasdat_code/config.h
  36. +0
    -31
      keyboards/evyd13/wasdat_code/wasdat_code.c
  37. +5
    -0
      keyboards/evyd13/wonderland/config.h
  38. +0
    -33
      keyboards/evyd13/wonderland/wonderland.c
  39. +3
    -0
      keyboards/exclusive/e65/config.h
  40. +0
    -21
      keyboards/exclusive/e65/e65.c
  41. +2
    -0
      keyboards/exclusive/e6v2/le_bmc/config.h
  42. +0
    -16
      keyboards/exclusive/e6v2/le_bmc/le_bmc.c
  43. +2
    -0
      keyboards/exclusive/e6v2/oe_bmc/config.h
  44. +0
    -16
      keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c
  45. +4
    -0
      keyboards/exent/config.h
  46. +0
    -20
      keyboards/exent/exent.c
  47. +3
    -0
      keyboards/facew/config.h
  48. +0
    -18
      keyboards/facew/facew.c
  49. +3
    -0
      keyboards/foxlab/key65/hotswap/config.h
  50. +0
    -17
      keyboards/foxlab/key65/hotswap/hotswap.c
  51. +3
    -0
      keyboards/foxlab/key65/universal/config.h
  52. +0
    -17
      keyboards/foxlab/key65/universal/universal.c
  53. +4
    -0
      keyboards/freyr/config.h
  54. +0
    -19
      keyboards/freyr/freyr.c
  55. +3
    -0
      keyboards/ft/mars80/config.h
  56. +0
    -18
      keyboards/ft/mars80/mars80.c
  57. +4
    -0
      keyboards/gray_studio/hb85/config.h
  58. +0
    -20
      keyboards/gray_studio/hb85/hb85.c
  59. +3
    -0
      keyboards/handwired/tritium_numpad/config.h
  60. +0
    -28
      keyboards/handwired/tritium_numpad/tritium_numpad.c
  61. +4
    -0
      keyboards/hid_liber/config.h
  62. +0
    -21
      keyboards/hid_liber/hid_liber.c
  63. +4
    -0
      keyboards/j80/config.h
  64. +0
    -20
      keyboards/j80/j80.c
  65. +2
    -0
      keyboards/jc65/v32a/config.h
  66. +0
    -16
      keyboards/jc65/v32a/v32a.c
  67. +0
    -20
      keyboards/kb_elmo/aek2_usb/aek2_usb.c
  68. +4
    -0
      keyboards/kb_elmo/aek2_usb/config.h
  69. +2
    -0
      keyboards/kbdfans/kbdpad/mk1/config.h
  70. +0
    -16
      keyboards/kbdfans/kbdpad/mk1/mk1.c
  71. +6
    -1
      keyboards/kinesis/kint2pp/config.h
  72. +0
    -25
      keyboards/kinesis/kint2pp/kint2pp.c
  73. +6
    -0
      keyboards/kinesis/nguyenvietyen/config.h
  74. +0
    -30
      keyboards/kinesis/nguyenvietyen/nguyenvietyen.c
  75. +3
    -0
      keyboards/kira80/config.h
  76. +0
    -18
      keyboards/kira80/kira80.c
  77. +0
    -29
      keyboards/kona_classic/kona_classic.c
  78. +0
    -27
      keyboards/mechlovin/adelais/adelais.c
  79. +4
    -0
      keyboards/mechlovin/adelais/config.h
  80. +3
    -1
      keyboards/mechlovin/delphine/config.h
  81. +0
    -18
      keyboards/mechlovin/delphine/delphine.c
  82. +2
    -0
      keyboards/mechlovin/hannah65/config.h
  83. +0
    -18
      keyboards/mechlovin/hannah65/hannah65.c
  84. +2
    -0
      keyboards/mechlovin/infinity87/config.h
  85. +0
    -21
      keyboards/mechlovin/infinity87/infinity87.c
  86. +2
    -0
      keyboards/mechlovin/infinity88/config.h
  87. +0
    -22
      keyboards/mechlovin/infinity88/infinity88.c
  88. +2
    -0
      keyboards/mechlovin/pisces/config.h
  89. +0
    -25
      keyboards/mechlovin/pisces/pisces.c
  90. +4
    -0
      keyboards/mehkee96/config.h
  91. +0
    -18
      keyboards/mehkee96/mehkee96.c
  92. +4
    -0
      keyboards/nightly_boards/alter/rev1/config.h
  93. +0
    -20
      keyboards/nightly_boards/alter/rev1/rev1.c
  94. +2
    -0
      keyboards/panc60/config.h
  95. +0
    -16
      keyboards/panc60/panc60.c
  96. +3
    -0
      keyboards/pandora/config.h
  97. +0
    -18
      keyboards/pandora/pandora.c
  98. +4
    -0
      keyboards/pearl/config.h
  99. +0
    -20
      keyboards/pearl/pearl.c
  100. +0
    -16
      keyboards/percent/canoe/canoe.c

+ 0
- 16
keyboards/ares/ares.c View File

@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ares.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 2
- 0
keyboards/ares/config.h View File

@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/bfake/bfake.c View File

@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "bfake.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 2
- 0
keyboards/bfake/config.h View File

@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 26
keyboards/chili/chili.c View File

@ -14,29 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "chili.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
led_init_ports();
matrix_init_user();
}
void led_init_ports(void) {
setPinOutput(B1);
writePinHigh(B1);
setPinOutput(B2);
writePinHigh(B2);
setPinOutput(B3);
writePinHigh(B3);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(B1, !led_state.num_lock);
writePin(B2, !led_state.caps_lock);
writePin(B3, !led_state.scroll_lock);
}
return res;
}

+ 5
- 0
keyboards/chili/config.h View File

@ -42,6 +42,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B1
#define LED_CAPS_LOCK_PIN B2
#define LED_SCROLL_LOCK_PIN B3
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3


+ 4
- 0
keyboards/coarse/cordillera/config.h View File

@ -32,6 +32,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B0
#define LED_CAPS_LOCK_PIN A1
#define LED_SCROLL_LOCK_PIN A0
#define BACKLIGHT_PIN A8
#define BACKLIGHT_PWM_DRIVER PWMD1
#define BACKLIGHT_PWM_CHANNEL 1


+ 0
- 20
keyboards/coarse/cordillera/cordillera.c View File

@ -16,23 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "cordillera.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(B0);
setPinOutput(A1);
setPinOutput(A0);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(B0, led_state.num_lock);
writePin(A1, led_state.caps_lock);
writePin(A0, led_state.scroll_lock);
}
return true;
}

+ 3
- 0
keyboards/crazy_keyboard_68/config.h View File

@ -52,6 +52,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_CAPS_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
//#define BACKLIGHT_BREATHING


+ 0
- 19
keyboards/crazy_keyboard_68/crazy_keyboard_68.c View File

@ -15,22 +15,3 @@
*/
#include "crazy_keyboard_68.h"
void matrix_init_kb(void) {
led_init_ports();
matrix_init_user();
}
void led_init_ports(void) {
// Caps lock pin
setPinOutput(B0);
writePinHigh(B0);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B0, !led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/daisy/config.h View File

@ -52,6 +52,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_CAPS_LOCK_PIN C6
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN D0
// #define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6


+ 0
- 18
keyboards/daisy/daisy.c View File

@ -15,21 +15,3 @@
*/
#include "daisy.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(C6);
writePinHigh(C6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(C6, !led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/do60/config.h View File

@ -45,6 +45,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, F4, B4, D7, D6, B3, B0 }
#define UNUSED_PINS
#define LED_CAPS_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
/* Backlight Setup */
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 6


+ 0
- 17
keyboards/do60/do60.c View File

@ -2,26 +2,9 @@
extern inline void setdefaultrgb(void);
void matrix_init_kb(void) {
// Keyboard start-up code goes here
// Runs once when the firmware starts up
matrix_init_user();
led_init_ports();
setdefaultrgb();
};
void led_init_ports(void) {
// Set caps lock LED pin as output
setPinOutput(B2);
// Default to off
writePinHigh(B2);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B2, !led_state.caps_lock);
}
return true;
}

+ 0
- 18
keyboards/donutcables/budget96/budget96.c View File

@ -15,21 +15,3 @@
*/
#include "budget96.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/donutcables/budget96/config.h View File

@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 2
- 0
keyboards/eve/meteor/config.h View File

@ -36,5 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3

+ 0
- 16
keyboards/eve/meteor/meteor.c View File

@ -15,19 +15,3 @@
*/
#include "meteor.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/eon75/config.h View File

@ -51,6 +51,11 @@
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN B7
#define LED_CAPS_LOCK_PIN D5
#define LED_SCROLL_LOCK_PIN B0
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 29
keyboards/evyd13/eon75/eon75.c View File

@ -14,32 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "eon75.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
void led_init_ports(void) {
// * Set our LED pins as output and high
setPinOutput(D5);
writePinHigh(D5);
setPinOutput(B7);
writePinHigh(B7);
setPinOutput(B0);
writePinHigh(B0);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(D5, !led_state.caps_lock);
writePin(B7, !led_state.num_lock);
writePin(B0, !led_state.scroll_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/eon95/config.h View File

@ -51,6 +51,11 @@
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN B7
#define LED_CAPS_LOCK_PIN D5
#define LED_SCROLL_LOCK_PIN B0
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 29
keyboards/evyd13/eon95/eon95.c View File

@ -14,32 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "eon95.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
// * Set our LED pins as output and high
setPinOutput(D5);
writePinHigh(D5);
setPinOutput(B7);
writePinHigh(B7);
setPinOutput(B0);
writePinHigh(B0);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(D5, !led_state.caps_lock);
writePin(B7, !led_state.num_lock);
writePin(B0, !led_state.scroll_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/gh80_1800/config.h View File

@ -51,6 +51,11 @@
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN D6
#define LED_CAPS_LOCK_PIN D7
#define LED_SCROLL_LOCK_PIN D4
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 28
keyboards/evyd13/gh80_1800/gh80_1800.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "gh80_1800.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(D6);
setPinOutput(D7);
setPinOutput(D4);
writePinHigh(D6);
writePinHigh(D7);
writePinHigh(D4);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(D6, !led_state.num_lock);
writePin(D7, !led_state.caps_lock);
writePin(D4, !led_state.scroll_lock);
}
return true;
}

+ 3
- 0
keyboards/evyd13/minitomic/config.h View File

@ -51,6 +51,9 @@
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_CAPS_LOCK_PIN C7
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 34
keyboards/evyd13/minitomic/minitomic.c View File

@ -14,37 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "minitomic.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_init_ports(void) {
//Set led pin as output, then high (off)
writePinHigh(C7);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
// writePin sets the pin high for 1 and low for 0.
// In this example the pins are inverted, setting
// it low/0 turns it on, and high/1 turns the LED off.
// This behavior depends on whether the LED is between the pin
// and VCC or the pin and GND.
writePin(C7, !led_state.caps_lock);
}
return res;
}

+ 5
- 0
keyboards/evyd13/mx5160/config.h View File

@ -55,6 +55,11 @@
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B3
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 42
keyboards/evyd13/mx5160/mx5160.c View File

@ -14,45 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "mx5160.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_init_ports(void) {
//Set led pin as output, then high (off)
//Caps lock
setPinOutput(B1);
writePinHigh(B1);
//Num lock
setPinOutput(B2);
writePinHigh(B2);
//Scroll lock
setPinOutput(B3);
writePinHigh(B3);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
writePin(B2, !led_state.num_lock);
writePin(B1, !led_state.caps_lock);
writePin(B3, !led_state.scroll_lock);
}
return res;
}

+ 2
- 0
keyboards/evyd13/nt660/config.h View File

@ -53,6 +53,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_CAPS_LOCK_PIN D0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/evyd13/nt660/nt660.c View File

@ -14,19 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "nt660.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(D0);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(D0, !led_state.caps_lock);
}
return true;
}

+ 4
- 0
keyboards/evyd13/quackfire/config.h View File

@ -52,6 +52,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_CAPS_LOCK_PIN F7
#define LED_SCROLL_LOCK_PIN F6
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 5


+ 0
- 28
keyboards/evyd13/quackfire/quackfire.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quackfire.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(F6);
setPinOutput(F7);
writePinHigh(F6);
writePinHigh(F7);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(F7, !led_state.caps_lock);
writePin(F6, !led_state.scroll_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/wasdat/config.h View File

@ -57,6 +57,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B0
#define LED_SCROLL_LOCK_PIN B1
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 31
keyboards/evyd13/wasdat/wasdat.c View File

@ -14,34 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wasdat.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B0);
writePinHigh(B0);
setPinOutput(B1);
writePinHigh(B1);
setPinOutput(B2);
writePinHigh(B2);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B0, !led_state.caps_lock);
writePin(B1, !led_state.scroll_lock);
writePin(B2, !led_state.num_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/wasdat_code/config.h View File

@ -57,6 +57,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
#define LED_NUM_LOCK_PIN B3
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5


+ 0
- 31
keyboards/evyd13/wasdat_code/wasdat_code.c View File

@ -14,34 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wasdat_code.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B1);
setPinOutput(B2);
setPinOutput(B3);
writePinHigh(B1);
writePinHigh(B2);
writePinHigh(B3);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B1, !led_state.caps_lock);
writePin(B2, !led_state.scroll_lock);
writePin(B3, !led_state.num_lock);
}
return true;
}

+ 5
- 0
keyboards/evyd13/wonderland/config.h View File

@ -43,6 +43,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
#define LED_NUM_LOCK_PIN B1
#define LED_CAPS_LOCK_PIN B2
#define LED_SCROLL_LOCK_PIN B3
#define LED_PIN_ON_STATE 0
/* Backlight configuration
*/
#define RGB_DI_PIN B7


+ 0
- 33
keyboards/evyd13/wonderland/wonderland.c View File

@ -1,34 +1 @@
#include "wonderland.h"
__attribute__ ((weak))
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
__attribute__ ((weak))
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
};
__attribute__ ((weak))
void led_init_ports(void) {
// * Set our LED pins as output
setPinOutput(B1);
setPinOutput(B2);
setPinOutput(B3);
}
bool led_update_kb(led_t led_state) {
bool runDefault = led_update_user(led_state);
if (runDefault) {
writePin(B1, !led_state.num_lock);
writePin(B2, !led_state.caps_lock);
writePin(B3, !led_state.scroll_lock);
}
return runDefault;
}

+ 3
- 0
keyboards/exclusive/e65/config.h View File

@ -39,6 +39,9 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B6
#define LED_PIN_ON_STATE 0
/* number of backlight levels */
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN


+ 0
- 21
keyboards/exclusive/e65/e65.c View File

@ -15,24 +15,3 @@
*/
#include "e65.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B6);
writePinHigh(B6);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B6, !led_state.caps_lock);
}
return true;
}

+ 2
- 0
keyboards/exclusive/e6v2/le_bmc/config.h View File

@ -44,6 +44,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 }
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/exclusive/e6v2/le_bmc/le_bmc.c View File

@ -15,19 +15,3 @@
*/
#include "le_bmc.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 2
- 0
keyboards/exclusive/e6v2/oe_bmc/config.h View File

@ -44,6 +44,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 }
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c View File

@ -15,19 +15,3 @@
*/
#include "oe_bmc.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 4
- 0
keyboards/exent/config.h View File

@ -38,6 +38,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 20
keyboards/exent/exent.c View File

@ -15,23 +15,3 @@
*/
#include "exent.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 3
- 0
keyboards/facew/config.h View File

@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 18
keyboards/facew/facew.c View File

@ -16,21 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "facew.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/foxlab/key65/hotswap/config.h View File

@ -45,6 +45,9 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_SCROLL_LOCK_PIN E6
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5


+ 0
- 17
keyboards/foxlab/key65/hotswap/hotswap.c View File

@ -15,20 +15,3 @@
*/
#include "hotswap.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(E6);
writePinHigh(E6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(E6, !led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/foxlab/key65/universal/config.h View File

@ -45,6 +45,9 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_SCROLL_LOCK_PIN E6
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5


+ 0
- 17
keyboards/foxlab/key65/universal/universal.c View File

@ -15,20 +15,3 @@
*/
#include "universal.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(E6);
writePinHigh(E6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(E6, !led_state.caps_lock);
}
return true;
}

+ 4
- 0
keyboards/freyr/config.h View File

@ -47,6 +47,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B3
#define LED_SCROLL_LOCK_PIN B7
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_BREATHING


+ 0
- 19
keyboards/freyr/freyr.c View File

@ -15,22 +15,3 @@
*/
#include "freyr.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B3);
setPinOutput(B7);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(B3, !led_state.caps_lock);
writePin(B7, !led_state.scroll_lock);
}
return true;
}

+ 3
- 0
keyboards/ft/mars80/config.h View File

@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 18
keyboards/ft/mars80/mars80.c View File

@ -15,21 +15,3 @@
*/
#include "mars80.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 4
- 0
keyboards/gray_studio/hb85/config.h View File

@ -34,5 +34,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLED_NUM 5
#define RGBLIGHT_ANIMATIONS
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3

+ 0
- 20
keyboards/gray_studio/hb85/hb85.c View File

@ -17,23 +17,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "hb85.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 3
- 0
keyboards/handwired/tritium_numpad/config.h View File

@ -36,6 +36,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { F4, F6, B1, B2 }
#define UNUSED_PINS
#define LED_NUM_LOCK_PIN D5
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
/* COL2ROW or ROW2COL */


+ 0
- 28
keyboards/handwired/tritium_numpad/tritium_numpad.c View File

@ -1,29 +1 @@
#include "tritium_numpad.h"
#include "led.h"
void keyboard_pre_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
keyboard_pre_init_user();
led_init_ports();
};
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
};
void led_init_ports(void) {
// * Set our LED pins as output
// Numlock LED
setPinOutput(D5);
}
void led_set_kb(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
writePinLow(D5);
} else {
writePinHigh(D5);
}
}

+ 4
- 0
keyboards/hid_liber/config.h View File

@ -34,6 +34,10 @@
// HID Liberation Device uses custom matrix code to accomodate a 74HC238 3 to 8 decoder on pins B1, B2 and B3.
//#define DIODE_DIRECTION
#define LED_CAPS_LOCK_PIN B5
#define LED_SCROLL_LOCK_PIN B6
#define LED_PIN_ON_STATE 0
// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 21
keyboards/hid_liber/hid_liber.c View File

@ -16,24 +16,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "hid_liber.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
led_init_ports();
matrix_init_user();
}
void led_init_ports(void) {
setPinOutput(B5);
setPinOutput(B6);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(B5, !led_state.caps_lock);
writePin(B6, !led_state.scroll_lock);
}
return res;
}

+ 4
- 0
keyboards/j80/config.h View File

@ -35,6 +35,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_PIN D4


+ 0
- 20
keyboards/j80/j80.c View File

@ -15,23 +15,3 @@
*/
#include "j80.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 2
- 0
keyboards/jc65/v32a/config.h View File

@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/jc65/v32a/v32a.c View File

@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "v32a.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 0
- 20
keyboards/kb_elmo/aek2_usb/aek2_usb.c View File

@ -15,23 +15,3 @@
*/
#include "aek2_usb.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(B0);
setPinOutput(B1);
setPinOutput(B2);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(B0, led_state.scroll_lock);
writePin(B1, led_state.caps_lock);
writePin(B2, led_state.num_lock);
}
return true;
}

+ 4
- 0
keyboards/kb_elmo/aek2_usb/config.h View File

@ -40,6 +40,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B0
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5


+ 2
- 0
keyboards/kbdfans/kbdpad/mk1/config.h View File

@ -33,6 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D0
#define BACKLIGHT_PIN D4
#define BACKLIGHT_BREATHING


+ 0
- 16
keyboards/kbdfans/kbdpad/mk1/mk1.c View File

@ -15,19 +15,3 @@
*/
#include "mk1.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
}
return true;
}

+ 6
- 1
keyboards/kinesis/kint2pp/config.h View File

@ -25,7 +25,12 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN C5
#define LED_CAPS_LOCK_PIN C1
#define LED_SCROLL_LOCK_PIN C4
#define LED_COMPOSE_PIN C3
#define LED_PIN_ON_STATE 0
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5


+ 0
- 25
keyboards/kinesis/kint2pp/kint2pp.c View File

@ -1,26 +1 @@
#include "kint2pp.h"
void matrix_init_kb(void) {
led_init_ports();
matrix_init_user();
}
void led_init_ports() {
// * Set our LED pins as output
setPinOutput(C3); // Keypad LED
setPinOutput(C4); // ScrLock LED
setPinOutput(C5); // NumLock LED
setPinOutput(C1); // CapsLock LED
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(C3, !led_state.compose);
writePin(C4, !led_state.scroll_lock);
writePin(C5, !led_state.num_lock);
writePin(C1, !led_state.caps_lock);
}
return res;
}

+ 6
- 0
keyboards/kinesis/nguyenvietyen/config.h View File

@ -25,3 +25,9 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D4
#define LED_CAPS_LOCK_PIN E6
#define LED_SCROLL_LOCK_PIN C6
#define LED_COMPOSE_PIN D7
#define LED_PIN_ON_STATE 0

+ 0
- 30
keyboards/kinesis/nguyenvietyen/nguyenvietyen.c View File

@ -1,31 +1 @@
#include "nguyenvietyen.h"
void matrix_init_kb(void) {
led_init_ports();
matrix_init_user();
}
void led_init_ports() {
// * Set our LED pins as output
setPinOutput(D7); // Keypad LED
setPinOutput(C6); // ScrLock LED
setPinOutput(D4); // NumLock LED
setPinOutput(E6); // CapsLock LED
// turn all LEDs off by default
writePinHigh(D7);
writePinHigh(C6);
writePinHigh(D4);
writePinHigh(E6);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
writePin(D7, !led_state.compose);
writePin(C6, !led_state.scroll_lock);
writePin(D4, !led_state.num_lock);
writePin(E6, !led_state.caps_lock);
}
return res;
}

+ 3
- 0
keyboards/kira80/config.h View File

@ -38,6 +38,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define BACKLIGHT_PIN D4
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3

+ 0
- 18
keyboards/kira80/kira80.c View File

@ -15,21 +15,3 @@
*/
#include "kira80.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 0
- 29
keyboards/kona_classic/kona_classic.c View File

@ -14,32 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "kona_classic.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
led_init_ports();
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_init_ports(void) {
// DDRB |= (1<<6) | (1<<7); // OUT
}
void led_set_kb(uint8_t usb_led) {
// led_set_user(usb_led);
}

+ 0
- 27
keyboards/mechlovin/adelais/adelais.c View File

@ -15,30 +15,3 @@
*/
#include "adelais.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B2);
writePinLow(B2);
setPinOutput(C15);
writePinLow(C15);
setPinOutput(B9);
writePinLow(B9);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B2, led_state.caps_lock);
writePin(B9, led_state.scroll_lock);
writePin(C15, led_state.num_lock);
}
return true;
}

+ 4
- 0
keyboards/mechlovin/adelais/config.h View File

@ -30,3 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN C15
#define LED_CAPS_LOCK_PIN B2
#define LED_SCROLL_LOCK_PIN B9

+ 3
- 1
keyboards/mechlovin/delphine/config.h View File

@ -41,4 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { F0, F1, F4, F5, F6, D3 }
#define MATRIX_COL_PINS { F7, D7, D6, D2 }
#define DIODE_DIRECTION COL2ROW
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B5

+ 0
- 18
keyboards/mechlovin/delphine/delphine.c View File

@ -15,21 +15,3 @@
*/
#include "delphine.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B5);
writePinLow(B5);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B5, led_state.num_lock);
}
return true;
}

+ 2
- 0
keyboards/mechlovin/hannah65/config.h View File

@ -41,6 +41,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B9
#define BACKLIGHT_PIN B8
#define BACKLIGHT_BREATHING
#define BACKLIGHT_PWM_DRIVER PWMD3


+ 0
- 18
keyboards/mechlovin/hannah65/hannah65.c View File

@ -15,21 +15,3 @@
*/
#include "hannah65.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B9);
writePinLow(B9);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B9, led_state.caps_lock);
}
return true;
}

+ 2
- 0
keyboards/mechlovin/infinity87/config.h View File

@ -45,6 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN A3
#define LED_CAPS_LOCK_PIN A4
#define BACKLIGHT_PIN B0
#define BACKLIGHT_BREATHING


+ 0
- 21
keyboards/mechlovin/infinity87/infinity87.c View File

@ -15,24 +15,3 @@
*/
#include "infinity87.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(A3);
writePinLow(A3);
setPinOutput(A4);
writePinLow(A4);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(A4, led_state.caps_lock);
writePin(A3, led_state.num_lock);
}
return true;
}

+ 2
- 0
keyboards/mechlovin/infinity88/config.h View File

@ -45,6 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN A3
#define LED_CAPS_LOCK_PIN A4
#define BACKLIGHT_PIN B0
#define BACKLIGHT_BREATHING


+ 0
- 22
keyboards/mechlovin/infinity88/infinity88.c View File

@ -15,25 +15,3 @@
*/
#include "infinity88.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(A3);
writePinLow(A3);
setPinOutput(A4);
writePinLow(A4);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(A4, led_state.caps_lock);
writePin(A3, led_state.num_lock);
}
return true;
}

+ 2
- 0
keyboards/mechlovin/pisces/config.h View File

@ -45,6 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B2
#define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3


+ 0
- 25
keyboards/mechlovin/pisces/pisces.c View File

@ -15,28 +15,3 @@
*/
#include "pisces.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
}
void led_init_ports(void) {
setPinOutput(B2);
writePinLow(B2);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(B2, led_state.caps_lock);
}
return true;
}

+ 4
- 0
keyboards/mehkee96/config.h View File

@ -16,6 +16,10 @@
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 18
keyboards/mehkee96/mehkee96.c View File

@ -16,21 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "mehkee96.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 4
- 0
keyboards/nightly_boards/alter/rev1/config.h View File

@ -44,6 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D7
#define LED_CAPS_LOCK_PIN D6
#define LED_SCROLL_LOCK_PIN B4
// #define BACKLIGHT_PIN F1
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3


+ 0
- 20
keyboards/nightly_boards/alter/rev1/rev1.c View File

@ -15,23 +15,3 @@
*/
#include "rev1.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D7);
setPinOutput(D6);
setPinOutput(B4);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D7, led_state.num_lock);
writePin(D6, led_state.caps_lock);
writePin(B4, led_state.scroll_lock);
}
return true;
}

+ 2
- 0
keyboards/panc60/config.h View File

@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
#define LED_CAPS_LOCK_PIN D1
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3


+ 0
- 16
keyboards/panc60/panc60.c View File

@ -15,19 +15,3 @@
*/
#include "panc60.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

+ 3
- 0
keyboards/pandora/config.h View File

@ -47,6 +47,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN E6
#define LED_PIN_ON_STATE 0
/* Encoder Function */
#define ENCODERS_PAD_A { F6 }
#define ENCODERS_PAD_B { F5 }


+ 0
- 18
keyboards/pandora/pandora.c View File

@ -15,21 +15,3 @@
*/
#include "pandora.h"
void matrix_init_kb(void) {
matrix_init_user();
led_init_ports();
};
void led_init_ports(void) {
setPinOutput(E6);
writePinHigh(E6);
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
writePin(E6, !led_state.caps_lock);
}
return res;
}

+ 4
- 0
keyboards/pearl/config.h View File

@ -25,6 +25,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MANUFACTURER Pearl Boards
#define PRODUCT Pearl
#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D6
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 12


+ 0
- 20
keyboards/pearl/pearl.c View File

@ -16,23 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pearl.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D0);
setPinOutput(D1);
setPinOutput(D6);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D0, led_state.num_lock);
writePin(D1, led_state.caps_lock);
writePin(D6, led_state.scroll_lock);
}
return true;
}

+ 0
- 16
keyboards/percent/canoe/canoe.c View File

@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "canoe.h"
void keyboard_pre_init_kb(void) {
led_init_ports();
keyboard_pre_init_user();
}
void led_init_ports(void) {
setPinOutput(D1);
}
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
writePin(D1, led_state.caps_lock);
}
return true;
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save