Restructure LightbarServer; implement LightbarController
This commit is contained in:
parent
144e7d556f
commit
722abc3056
8 changed files with 76 additions and 39 deletions
4
Makefile
4
Makefile
|
|
@ -13,7 +13,7 @@ REPL_TTY_PATH = /dev/ttyUSB0
|
|||
UPLOAD_CACHE_DIR := .upload_cache
|
||||
|
||||
# Auto-detect all .py files that should be uploaded
|
||||
SRC_UPLOAD_TARGETS := $(patsubst %.py,$(UPLOAD_CACHE_DIR)/%.py.timestamp,$(wildcard src/*.py src/**/*.py))
|
||||
SRC_UPLOAD_TARGETS := $(patsubst %.py,$(UPLOAD_CACHE_DIR)/%.py.timestamp,$(wildcard src/*.py src/**/*.py src/**/**/*.py))
|
||||
LIB_UPLOAD_TARGETS := $(patsubst %.py,$(UPLOAD_CACHE_DIR)/%.py.timestamp,$(wildcard lib/*.py))
|
||||
|
||||
# Default target
|
||||
|
|
@ -55,7 +55,7 @@ $(UPLOAD_CACHE_DIR)/%.py.timestamp :: %.py
|
|||
repl-create-directories:
|
||||
@echo "(Note: If the directory already exists, rshell will print \"Unable to create [DIR]\")"
|
||||
@echo
|
||||
rshell -p $(REPL_TTY_PATH) mkdir /pyboard/lib /pyboard/lightbar
|
||||
rshell -p $(REPL_TTY_PATH) mkdir /pyboard/lib /pyboard/lightbar /pyboard/lightbar/endpoints
|
||||
|
||||
# Clear the .upload_cache directory that contains the last upload timestamps
|
||||
.PHONY: clear-upload-cache clear-upload-cache-src
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue