Restructure LightbarServer; implement LightbarController

This commit is contained in:
Lexi / Zoe 2024-01-26 19:24:02 +01:00
parent 144e7d556f
commit 722abc3056
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
8 changed files with 76 additions and 39 deletions

View file

@ -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