Skip to content

Commit

Permalink
Remove stub backlight functions from clueboard/66/rev4 (#8303)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Mar 6, 2020
1 parent 3c0ef04 commit 116c0e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
33 changes: 0 additions & 33 deletions keyboards/clueboard/66/rev4/rev4.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,6 @@ void matrix_init_kb(void) {
led_init_ports();
}

void matrix_scan_kb(void) {
matrix_scan_user();
}

void backlight_init_ports(void) {
print("init_backlight_pin()\n");
// Set our LED pins as output
//DDRD |= (1<<6); // Esc
//DDRB |= (1<<7); // Page Up
//DDRD |= (1<<4); // Arrows

// Set our LED pins low
//PORTD &= ~(1<<6); // Esc
//PORTB &= ~(1<<7); // Page Up
//PORTD &= ~(1<<4); // Arrows
}

void backlight_set(uint8_t level) {
/*
if ( level == 0 ) {
// Turn off light
PORTD |= (1<<6); // Esc
PORTB |= (1<<7); // Page Up
PORTD |= (1<<4); // Arrows
} else {
// Turn on light
PORTD &= ~(1<<6); // Esc
PORTB &= ~(1<<7); // Page Up
PORTD &= ~(1<<4); // Arrows
}
*/
}

void led_init_ports() {
// Set our LED pins as output
palSetPadMode(GPIOB, 13, PAL_MODE_OUTPUT_PUSHPULL); // LED1
Expand Down
4 changes: 2 additions & 2 deletions keyboards/clueboard/66/rev4/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ MCU = STM32F303
# Build Options
# comment out to disable the options.
#
BACKLIGHT_ENABLE = yes
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
AUDIO_ENABLE = no
RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI controls
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
Expand Down

0 comments on commit 116c0e4

Please sign in to comment.