diff --git a/examples/simple-udp-server/.gitignore b/examples/simple-udp-server/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/examples/simple-udp-server/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/examples/simple-udp-server/Makefile b/examples/simple-udp-server/Makefile new file mode 100644 index 0000000..0ad6677 --- /dev/null +++ b/examples/simple-udp-server/Makefile @@ -0,0 +1,15 @@ +BOARD ?= arduino:avr:diecimila +PORT ?= /dev/ttyUSB0 + +CCFLAGS += -Icfg + +.PHONY: build flash + +build: + arduino-cli compile -v -e --libraries coppino -b $(BOARD) + +flash: + arduino-cli -b $(BOARD) -p $(PORT) -v upload + +clean: + rm -r build