summaryrefslogtreecommitdiff
path: root/drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-09 20:35:33 +0300
committerJack Humbert <jack.humb@gmail.com>2017-07-10 09:01:59 -0400
commit9d8279960d8784d5602025f6845b0af92db12848 (patch)
treea69982fe08b9c2b01cd958aeba645cd649e10c86 /drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c
parent4da3b19603255115f71812964383ee7b518637be (diff)
downloadqmk_firmware-9d8279960d8784d5602025f6845b0af92db12848.tar.gz
qmk_firmware-9d8279960d8784d5602025f6845b0af92db12848.zip
Make it easier to use drivers
Diffstat (limited to 'drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c')
-rw-r--r--drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c b/drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c
index 0691dbfbf3..3faddcda8b 100644
--- a/drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c
+++ b/drivers/ugfx/gdisp/is31fl3731c/gdisp_is31fl3731c.c
@@ -19,7 +19,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if GFX_USE_GDISP
-#define GDISP_DRIVER_VMT GDISPVMT_IS31FL3731C_QMK
+#define GDISP_DRIVER_VMT GDISPVMT_IS31FL3731C_QMK
+#define GDISP_SCREEN_HEIGHT LED_HEIGHT
+#define GDISP_SCREEN_WIDTH LED_WIDTH
+
#include "gdisp_lld_config.h"
#include "src/gdisp/gdisp_driver.h"
@@ -33,12 +36,6 @@ extern const uint8_t CIE1931_CURVE[];
/* Driver local definitions. */
/*===========================================================================*/
-#ifndef GDISP_SCREEN_HEIGHT
- #define GDISP_SCREEN_HEIGHT 9
-#endif
-#ifndef GDISP_SCREEN_WIDTH
- #define GDISP_SCREEN_WIDTH 16
-#endif
#ifndef GDISP_INITIAL_CONTRAST
#define GDISP_INITIAL_CONTRAST 0
#endif
@@ -100,7 +97,6 @@ extern const uint8_t CIE1931_CURVE[];
#define IS31_PWM_SIZE 0x90
#define IS31_LED_MASK_SIZE 0x12
-#define IS31_SCREEN_WIDTH 16
#define IS31