diff options
author | Andrew Kannan <andrew.kannan@klaviyo.com> | 2019-01-30 05:04:20 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-01-30 05:04:20 +0100 |
commit | 7186d1581abbd97d7c76626ae83fc866e85d217c (patch) | |
tree | 1a6cf65f38f00f48e1539a8c01418cf770119a37 /keyboards/handwired/ortho60/led.c | |
parent | 74fcfd533508d5743a20a7cd7faba404f8fc7cd3 (diff) | |
download | qmk_firmware-7186d1581abbd97d7c76626ae83fc866e85d217c.tar.gz qmk_firmware-7186d1581abbd97d7c76626ae83fc866e85d217c.tar.xz |
Moving cannonkeys boards to one place, eeprom fix (#4999)
* Move boards to cannonkeys and share resources
* Share common files between cannonkey boards
* Fix ortho60 keymap
* update LED numbers
* Add RGB keys to Ortho60 and Ortho48
* Add Backlight control to default layout Ortho60 and 48
* Remove unnecessary ws2812.c SRC from rules.mk
Diffstat (limited to 'keyboards/handwired/ortho60/led.c')
-rw-r--r-- | keyboards/handwired/ortho60/led.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/keyboards/handwired/ortho60/led.c b/keyboards/handwired/ortho60/led.c deleted file mode 100644 index f15baed16..000000000 --- a/keyboards/handwired/ortho60/led.c +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2012 Jun Wako <wakojun@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include "hal.h" -#include "backlight.h" -#include "led.h" -#include "printf.h" - -void backlight_init_ports(void) { - printf("backlight_init_ports()\n"); - #ifdef BACKLIGHT_ENABLE - palSetPadMode(GPIOA, 8, PAL_MODE_OUTPUT_PUSHPULL); - palSetPad(GPIOA, 8); - #endif -} - -void backlight_set(uint8_t level) { - printf("backlight_set(%d)\n", level); - #ifdef BACKLIGHT_ENABLE - if (level == 0) { - // Turn backlight off - palSetPad(GPIOA, 8); - } else { - // Turn backlight on - palClearPad(GPIOA, 8); - } - #endif -} - -void led_set(uint8_t usb_led) -{ - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - palClearPad(GPIOC, 13); - } else { - palSetPad(GPIOC, 13); - } -} |