Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use preprocessor conditional on backlight initialization #29

Merged
merged 1 commit into from
Sep 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion keyboard/planck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

ifdef MIDI_ENABLE
SRC += keymap_midi.c
Expand Down
2 changes: 2 additions & 0 deletions keyboard/planck/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down