Make it easier to use drivers

This commit is contained in:
Fred Sundvik
2017-07-09 20:35:33 +03:00
committed by Jack Humbert
parent 4da3b19603
commit 9d8279960d
15 changed files with 58 additions and 45 deletions
-3
View File
@@ -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 */
+1 -7
View File
@@ -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
#endif
-4
View File
@@ -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 */
+3 -1
View File
@@ -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