Added Timeout; Ability to turn off LED and Sound; Added doublespeed mode. (#1)

* Check that color is valid

Instead of merely checking that COLOR is set, check that it is one of
RED, BLUE or GREEN

* Added ability to turn off sound and timer with modes

* Added enum for mode

---------

Co-authored-by: Wesley Ellis <tahnok@gmail.com>
This commit is contained in:
voloved
2024-07-07 19:23:31 -04:00
committed by GitHub
parent 9794f86430
commit 3eaf807590
3 changed files with 119 additions and 11 deletions

View File

@@ -213,6 +213,12 @@ ifndef COLOR
$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.)
endif
COLOR_VALID := $(filter $(COLOR),RED BLUE GREEN)
ifeq ($(COLOR_VALID),)
$(error COLOR must be RED, BLUE, or GREEN)
endif
ifeq ($(COLOR), BLUE)
CFLAGS += -DWATCH_IS_BLUE_BOARD
endif