Add simple led support

Also the first version of a led testing animation
This commit is contained in:
Fred Sundvik
2016-04-24 13:46:19 +03:00
parent 61f7761c03
commit c95b17b536
5 changed files with 99 additions and 2 deletions

View File

@@ -21,13 +21,14 @@
# SOFTWARE.
GFXLIB = $(VISUALIZER_DIR)/ugfx
SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c
UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
ifdef LCD_ENABLE
include $(GFXLIB)/gfx.mk
UDEFS += -DLCD_ENABLE
ULIBS += -lm
endif
SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c
UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
ifdef LCD_BACKLIGHT_ENABLE
SRC += $(VISUALIZER_DIR)/lcd_backlight.c
@@ -35,6 +36,11 @@ SRC += lcd_backlight_hal.c
UDEFS += -DLCD_BACKLIGHT_ENABLE
endif
ifdef LED_ENABLE
SRC += $(VISUALIZER_DIR)/led_test.c
UDEFS += -DLED_ENABLE
endif
ifndef VISUALIZER_USER
VISUALIZER_USER = visualizer_user.c
endif