2019-01-11 17:44:06 -08:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# make gergo:germ:dfu
|
|
|
|
# Make sure you have dfu-programmer installed!
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Firmware options
|
2019-04-29 17:29:00 -07:00
|
|
|
BALLER = no # Enable to ball out
|
2019-01-11 17:44:06 -08:00
|
|
|
BALLSTEP = 20 # Multiple in px to move, multiplied by layer number
|
|
|
|
SCROLLSTEP = 1 # Lines to scroll with ball
|
2020-01-30 10:47:48 -08:00
|
|
|
MOUSEKEY_ENABLE = yes # Mouse keys, needed for baller
|
2019-01-11 17:44:06 -08:00
|
|
|
|
|
|
|
#Debug options
|
|
|
|
VERBOSE = yes
|
|
|
|
DEBUG_MATRIX_SCAN_RATE = no
|
|
|
|
DEBUG_BALLER = no
|
2019-04-14 11:01:52 -07:00
|
|
|
DEBUG_MATRIX = yes
|
2019-01-11 17:44:06 -08:00
|
|
|
|
|
|
|
# A bunch of stuff that you shouldn't touch unless you
|
|
|
|
# know what you're doing.
|
|
|
|
#
|
|
|
|
# No touchy, capiche?
|
|
|
|
SRC += matrix.c i2c_master.c
|
|
|
|
ifneq ($(strip $(BALLSTEP)),)
|
|
|
|
OPT_DEFS += -DTRKSTEP=$(strip $(BALLSTEP))
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(SCROLLSTEP)),)
|
|
|
|
OPT_DEFS += -DSCROLLSTEP=$(strip $(SCROLLSTEP))
|
|
|
|
endif
|
|
|
|
ifeq ($(strip $(BALLER)), yes)
|
2019-04-29 17:29:00 -07:00
|
|
|
POINTING_DEVICE_ENABLE = yes
|
2022-02-05 06:29:15 -08:00
|
|
|
POINTING_DEVICE_DRIVER = custom
|
2019-01-11 17:44:06 -08:00
|
|
|
OPT_DEFS += -DBALLER
|
|
|
|
endif
|
|
|
|
ifeq ($(strip $(DEBUG_BALLER)), yes)
|
|
|
|
OPT_DEFS += -DDEBUG_BALLER
|
|
|
|
endif
|
|
|
|
ifeq ($(strip $(DEBUG_MATRIX)), yes)
|
|
|
|
OPT_DEFS += -DDEBUG_MATRIX
|
|
|
|
endif
|