diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-07-09 19:35:33 +0200 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-10 15:01:59 +0200 |
commit | 9d8279960d8784d5602025f6845b0af92db12848 (patch) | |
tree | a69982fe08b9c2b01cd958aeba645cd649e10c86 /keyboards/whitefox | |
parent | 4da3b19603255115f71812964383ee7b518637be (diff) | |
download | qmk_firmware-9d8279960d8784d5602025f6845b0af92db12848.tar.gz qmk_firmware-9d8279960d8784d5602025f6845b0af92db12848.tar.xz |
Make it easier to use drivers
Diffstat (limited to 'keyboards/whitefox')
-rw-r--r-- | keyboards/whitefox/board_IS31FL3731C.h | 3 | ||||
-rw-r--r-- | keyboards/whitefox/config.h | 8 | ||||
-rw-r--r-- | keyboards/whitefox/gfxconf.h | 4 | ||||
-rw-r--r-- | keyboards/whitefox/rules.mk | 4 |
4 files changed, 4 insertions, 15 deletions
diff --git a/keyboards/whitefox/board_IS31FL3731C.h b/keyboards/whitefox/board_IS31FL3731C.h index 3dc5327a5..dea643f10 100644 --- a/keyboards/whitefox/board_IS31FL3731C.h +++ b/keyboards/whitefox/board_IS31FL3731C.h @@ -22,9 +22,6 @@ static const I2CConfig i2ccfg = { 400000 // clock speed (Hz); 400kHz max for IS31 }; -#define GDISP_SCREEN_WIDTH 16 -#define GDISP_SCREEN_HEIGHT 5 - static const uint8_t led_mask[] = { 0xFF, 0x00, /* C1-1 -> C1-16 */ 0xFF, 0x00, /* C2-1 -> C2-16 */ diff --git a/keyboards/whitefox/config.h b/keyboards/whitefox/config.h index 76040bd74..dc33a7ce5 100644 --- a/keyboards/whitefox/config.h +++ b/keyboards/whitefox/config.h @@ -81,10 +81,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION -#endif - -// The visualizer needs gfx thread priorities -#define LED_DISPLAY_NUMBER 0 - -#define LED_NUM_ROWS 5 -#define LED_NUM_COLS 16
\ No newline at end of file +#endif
\ No newline at end of file diff --git a/keyboards/whitefox/gfxconf.h b/keyboards/whitefox/gfxconf.h index eb93f92eb..ca338399d 100644 --- a/keyboards/whitefox/gfxconf.h +++ b/keyboards/whitefox/gfxconf.h @@ -22,10 +22,6 @@ #ifndef _GFXCONF_H #define _GFXCONF_H -#ifndef EMULATOR -#define GDISP_DRIVER_LIST GDISPVMT_IS31FL3731C_QMK -#endif - #include "common_gfxconf.h" #endif /* _GFXCONF_H */ diff --git a/keyboards/whitefox/rules.mk b/keyboards/whitefox/rules.mk index 391148071..32273e08a 100644 --- a/keyboards/whitefox/rules.mk +++ b/keyboards/whitefox/rules.mk @@ -69,4 +69,6 @@ CUSTOM_MATRIX = yes # Custom matrix file BACKLIGHT_ENABLE = yes VISUALIZER_ENABLE = yes -include $(TOP_DIR)/drivers/ugfx/gdisp/is31fl3731c/driver.mk +LED_DRIVER = is31fl3731c +LED_WIDTH = 16 +LED_HEIGHT = 5
\ No newline at end of file |