diff options
| author | fauxpark <fauxpark@gmail.com> | 2020-01-19 18:00:32 +1100 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-01-18 23:00:32 -0800 |
| commit | f5209aa4e941c7f3a942ef4a7e256ab432ec98ce (patch) | |
| tree | 29c2a0d197050ff2accb920731ddb1d022cb2a90 /keyboards/jc65 | |
| parent | eb5d267e637db4c2c639932b8c8176bf47dff78f (diff) | |
| download | qmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.tar.gz qmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.zip | |
Remove custom backlight code for PS2AVRGB boards (#7775)
* Remove custom backlight code for PS2AVRGB boards
* Remove custom driver setting
* BACKLIGHT_BREATHING goes in config.h, not here
* Don't need to include backlight.c again here either
* Turn on backlight for Canoe
* Disable console on a few boards due to oversize
Diffstat (limited to 'keyboards/jc65')
| -rw-r--r-- | keyboards/jc65/v32a/config.h | 4 | ||||
| -rw-r--r-- | keyboards/jc65/v32a/v32a.c | 37 |
2 files changed, 15 insertions, 26 deletions
diff --git a/keyboards/jc65/v32a/config.h b/keyboards/jc65/v32a/config.h index 5439dbe39..392aebc2a 100644 --- a/keyboards/jc65/v32a/config.h +++ b/keyboards/jc65/v32a/config.h | |||
| @@ -32,7 +32,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 32 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 } | 32 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 } |
| 33 | #define DIODE_DIRECTION COL2ROW | 33 | #define DIODE_DIRECTION COL2ROW |
| 34 | 34 | ||
| 35 | #define BACKLIGHT_LEVELS 1 | 35 | #define BACKLIGHT_PIN D4 |
| 36 | #define BACKLIGHT_LEVELS 3 | ||
| 37 | |||
| 36 | #define RGBLED_NUM 16 | 38 | #define RGBLED_NUM 16 |
| 37 | #define RGBLIGHT_ANIMATIONS | 39 | #define RGBLIGHT_ANIMATIONS |
| 38 | #define RGBLIGHT_HUE_STEP 8 | 40 | #define RGBLIGHT_HUE_STEP 8 |
diff --git a/keyboards/jc65/v32a/v32a.c b/keyboards/jc65/v32a/v32a.c index 2a289872f..627661a57 100644 --- a/keyboards/jc65/v32a/v32a.c +++ b/keyboards/jc65/v32a/v32a.c | |||
| @@ -17,32 +17,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #include "v32a.h" | 18 | #include "v32a.h" |
| 19 | 19 | ||
| 20 | #ifdef BACKLIGHT_ENABLE | 20 | void keyboard_pre_init_kb(void) { |
| 21 | void backlight_init_ports(void) { | 21 | led_init_ports(); |
| 22 | setPinOutput(D0); | 22 | keyboard_pre_init_user(); |
| 23 | setPinOutput(D1); | 23 | } |
| 24 | setPinOutput(D4); | ||
| 25 | setPinOutput(D6); | ||
| 26 | 24 | ||
| 27 | writePinLow(D0); | 25 | void led_init_ports(void) { |
| 28 | writePinLow(D1); | 26 | setPinOutput(D1); |
| 29 | writePinLow(D4); | 27 | writePinHigh(D1); |
| 30 | writePinLow(D6); | ||
| 31 | } | 28 | } |
| 32 | 29 | ||
| 33 | void backlight_set(uint8_t level) { | 30 | bool led_update_kb(led_t led_state) { |
| 34 | if (level == 0) { | 31 | if (led_update_user(led_state)) { |
| 35 | // Turn out the lights | 32 | writePin(D1, !led_state.caps_lock); |
| 36 | writePinLow(D0); | 33 | } |
| 37 | writePinLow(D1); | 34 | return true; |
| 38 | writePinLow(D4); | ||
| 39 | writePinLow(D6); | ||
| 40 | } else { | ||
| 41 | // Turn on the lights | ||
| 42 | writePinHigh(D0); | ||
| 43 | writePinHigh(D1); | ||
| 44 | writePinHigh(D4); | ||
| 45 | writePinHigh(D6); | ||
| 46 | } | ||
| 47 | } | 35 | } |
| 48 | #endif | ||
