mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Merge pull request #3048 from cesanta/move
move Arduino examples -> tutorials
This commit is contained in:
42 files changed
+62
-58
No files matched your search
@@ -300,11 +300,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with: { fetch-depth: 2 }
|
with: { fetch-depth: 2 }
|
||||||
- run: echo # nothing specific to install or do
|
- run: echo # nothing specific to install or do
|
||||||
- run: make -C examples/arduino arduino-xiao
|
- run: make -C test/arduino
|
||||||
# TODO(): - run: make -C examples/arduino arduino-esp32
|
- run: make -C test/arduino cleanall
|
||||||
# TODO(): - run: make -C examples/arduino arduino-teensy41
|
|
||||||
# - run: make -C examples/arduino arduino-nano
|
|
||||||
- run: make -C examples/arduino clean
|
|
||||||
|
|
||||||
|
|
||||||
# wizard_examples:
|
# wizard_examples:
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
|
|
||||||
all:
|
|
||||||
example:
|
|
||||||
true
|
|
||||||
|
|
||||||
arduino: ENV = -v $(CWD):/root
|
|
||||||
arduino:
|
|
||||||
curl -sL http://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz | unxz | tar -xf -
|
|
||||||
mv arduino-* $@
|
|
||||||
|
|
||||||
arduino-xiao-board:
|
|
||||||
./arduino/arduino --pref "boardsmanager.additional.urls=https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json" --save-prefs
|
|
||||||
./arduino/arduino --pref "compiler.warning_level=all" --save-prefs
|
|
||||||
./arduino/arduino --install-boards Seeeduino:samd
|
|
||||||
|
|
||||||
arduino-xiao: arduino arduino-xiao-board
|
|
||||||
cd sim800-mqtt && ../arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 sim800-mqtt.ino
|
|
||||||
cd w5500-http && ../arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 w5500-http.ino
|
|
||||||
cd w5500-mqtt && ../arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 w5500-mqtt.ino
|
|
||||||
|
|
||||||
arduino-nano: arduino
|
|
||||||
cd w5500-http && ../arduino/arduino --pref compiler.cpp.extra_flags=-DMG_ENABLE_LOG=0 --verbose --verify --board arduino:avr:nano w5500-http.ino
|
|
||||||
cd w5500-mqtt && ../arduino/arduino --pref compiler.cpp.extra_flags=-DMG_ENABLE_LOG=0 --verbose --verify --board arduino:avr:nano w5500-mqtt.ino
|
|
||||||
|
|
||||||
arduino-esp32: arduino
|
|
||||||
# cd esp32-http && ../arduino/arduino --verbose --verify --board esp32-http.ino
|
|
||||||
# esp32-mqtt
|
|
||||||
|
|
||||||
arduino-teensy41: arduino
|
|
||||||
# cd teensy41-http && ../arduino/arduino --verbose --verify --board teensy41-http.ino
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf arduino
|
|
||||||
|
|
||||||
cleanall: clean #otherwise some parts of xiao-board installation will fail as already installed
|
|
||||||
rm -rf ~/.arduino15 ~/.oracle_jre_usage
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
PROJECTS ?= arduino-xiao arduino-nano #arduino-esp32 arduino-teensy41
|
||||||
|
ROOT ?= $(realpath $(CURDIR)/../..)
|
||||||
|
ARD ?= $(realpath $(CURDIR))
|
||||||
|
|
||||||
|
all: $(PROJECTS)
|
||||||
|
echo
|
||||||
|
|
||||||
|
arduino: ENV = -v $(CWD):/root
|
||||||
|
arduino:
|
||||||
|
curl -sL http://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz | unxz | tar -xf -
|
||||||
|
mv arduino-* $@
|
||||||
|
./arduino/arduino --pref "compiler.warning_level=all" --save-prefs
|
||||||
|
|
||||||
|
arduino-xiao-board:
|
||||||
|
./arduino/arduino --pref "boardsmanager.additional.urls=https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json" --save-prefs
|
||||||
|
./arduino/arduino --install-boards Seeeduino:samd
|
||||||
|
|
||||||
|
#esp32-board:
|
||||||
|
# ./arduino/arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" --save-prefs
|
||||||
|
# ./arduino/arduino --install-boards esp32:esp32
|
||||||
|
#
|
||||||
|
#teensy-board:
|
||||||
|
# ./arduino/arduino --pref "boardsmanager.additional.urls=https://www.pjrc.com/teensy/package_teensy_index.json" --save-prefs
|
||||||
|
# ./arduino/arduino --install-boards teensy:avr
|
||||||
|
|
||||||
|
arduino-xiao: arduino arduino-xiao-board
|
||||||
|
cd $(ROOT)/tutorials/mqtt/mqtt-client/arduino/sim800 && $(ARD)/arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 sim800-mqtt.ino
|
||||||
|
cd $(ROOT)/tutorials/http/http-server/arduino/w5500 && $(ARD)/arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 w5500-http.ino
|
||||||
|
cd $(ROOT)/tutorials/mqtt/mqtt-client/arduino/w5500 && $(ARD)/arduino/arduino --verbose --verify --board Seeeduino:samd:seeed_XIAO_m0 w5500-mqtt.ino
|
||||||
|
|
||||||
|
arduino-nano: arduino
|
||||||
|
cd $(ROOT)/tutorials/http/http-server/arduino/w5500 && $(ARD)/arduino/arduino --pref compiler.cpp.extra_flags=-DMG_ENABLE_LOG=0 --verbose --verify --board arduino:avr:nano w5500-http.ino
|
||||||
|
cd $(ROOT)/tutorials/mqtt/mqtt-client/arduino/w5500 && $(ARD)/arduino/arduino --pref compiler.cpp.extra_flags=-DMG_ENABLE_LOG=0 --verbose --verify --board arduino:avr:nano w5500-mqtt.ino
|
||||||
|
|
||||||
|
#arduino-esp32: arduino esp32-board
|
||||||
|
# cd $(ROOT)/tutorials/http/http-server/arduino/esp32 && $(ARD)/arduino/arduino --verbose --verify --board esp32-http.ino
|
||||||
|
# cd $(ROOT)/tutorials/mqtt/mqtt-client/arduino/esp32 && $(ARD)/arduino/arduino --verbose --verify --board esp32-mqtt.ino
|
||||||
|
#
|
||||||
|
#arduino-teensy41: arduino teensy-board
|
||||||
|
# cd $(ROOT)/tutorials/http/http-server/arduino/teensy41 && $(ARD)/arduino/arduino --verbose --verify --board teensy41-http.ino
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf arduino
|
||||||
|
|
||||||
|
cleanall: clean #otherwise some parts of xiao-board installation will fail as already installed
|
||||||
|
rm -rf ~/.arduino* ~/.oracle_jre_usage
|
||||||
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.c
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../../mongoose.h
|
||||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user