This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
qmk_firmware
mirror of
https://github.com/qmk/qmk_firmware/
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1.6k
Wiki
Activity
Browse Source
Merge pull request
#29
from kaymmm/nobacklight
use preprocessor conditional on backlight initialization
pull/30/head
Jack Humbert
8 years ago
parent
5bb7ef0012
6a4ee574bc
commit
b9e42a8753
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
keyboard/planck/Makefile
+2
-0
keyboard/planck/matrix.c
+ 0
- 1
keyboard/planck/Makefile
View File
@ -126,7 +126,6 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
# NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
BACKLIGHT_ENABLE
=
yes
# Enable keyboard backlight functionality
MIDI_ENABLE
=
YES
# MIDI controls
BACKLIGHT_ENABLE
=
yes
i
f
d
e
f
M
I
D
I
_
E
N
A
B
L
E
SRC
+=
keymap_midi.c
+ 2
- 0
keyboard/planck/matrix.c
View File
@ -65,7 +65,9 @@ void matrix_init(void)
MCUCR
|
=
(
1
<
<
JTD
)
;
MCUCR
|
=
(
1
<
<
JTD
)
;
#
if BACKLIGHT_ENABLE == 'yes'
backlight_init_ports
(
)
;
#
endif
/
/
Turn
status
LED
on
DDRE
|
=
(
1
<
<
6
)
;
Write
Preview
Loading…
Cancel
Save