Files
voltage/Makefile

22 lines
504 B
Makefile

help:
# plot - Plot the latest measurement
# mon - Monitor onto esp if connected to /dev/ttyUSB0
# push - Build and monitor onto esp if connected to /dev/ttyUSB0
# env - Start the esp environment on nix
# server - Start the go server
push:
idf.py -p /dev/ttyUSB0 flash monitor
mon:
idf.py -p /dev/ttyUSB0 monitor
env:
nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp32-idf
plot:
nix-shell --pure --run "python plot.py"
server:
go run main.go