move MicroPython and dashboards -> tutorials

This commit is contained in:
Sergio R. Caprile
2025-02-26 11:31:01 -03:00
parent 1078ba0a92
commit b3f5d11275
97 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ jobs:
example:
- path: esp32/uart-bridge
- path: esp32/micropython
- path: esp8266/http-client-server
#- path: esp8266/http-client-server
name: ${{ matrix.example.path }}
env:
GO: 0
+1 -1
View File
@@ -246,7 +246,7 @@ jobs:
matrix:
example:
- path: esp32/uart-bridge
- path: esp8266/http-client-server
#- path: esp8266/http-client-server
name: ${{ matrix.example.path }}
env:
GO: 0
+1
View File
@@ -0,0 +1 @@
../tutorials/http/device-dashboard
-1
View File
@@ -1 +0,0 @@
../../mongoose.c
-1
View File
@@ -1 +0,0 @@
../../mongoose.h
@@ -1 +0,0 @@
../../../micropython/mongoose/micropython.cmake
@@ -1 +0,0 @@
../../../micropython/mongoose/micropython.mk
@@ -1 +0,0 @@
../../../micropython/mongoose/module.c
-1
View File
@@ -1 +0,0 @@
../device-dashboard/certs
-1
View File
@@ -1 +0,0 @@
../../mongoose.c
-1
View File
@@ -1 +0,0 @@
../../mongoose.h
@@ -1 +0,0 @@
../../mongoose.c
@@ -1 +0,0 @@
../../mongoose.h
@@ -1 +0,0 @@
../../device-dashboard/web_root/bundle.js
+1
View File
@@ -0,0 +1 @@
http/device-dashboard
@@ -38,7 +38,7 @@ web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
# Generate packed filesystem for serving Web UI
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
$(GZIP) web_root/*
$(CC) ../../test/pack.c -o $(PACK)
$(CC) ../../../test/pack.c -o $(PACK)
$(PACK) web_root/* certs/* > $@
$(GZIP) -d web_root/*
@@ -28,7 +28,7 @@ web_root/main.css: web_root/index.html web_root/main.js
npx tailwindcss -o $@ --minify
packed_fs.c: $(wildcard web_root/*) Makefile web_root/main.css web_root/bundle.js
$(CC) ../../test/pack.c -o $(PACK)
$(CC) ../../../test/pack.c -o $(PACK)
$(PACK) $(wildcard web_root/*) > $@
$(PROG): $(SOURCES) # Build program from sources
@@ -4,6 +4,8 @@ The most basic usage is in `main.py`.
You'll have to configure Mongoose for your desired platform, this example runs on the `unix` port and Mongoose detects it as a known architecture and hence configures itself to use sockets and time base. For other platforms, you'll have to do your homework (there's plenty of Mongoose examples for several platforms); also check respective MicroPython build instructions.
For more information, check this third-party article: [part 1](https://www.embeddedrelated.com/showarticle/1649.php), [part 2](https://www.embeddedrelated.com/showarticle/1670.php)
Check [_thread](https://docs.micropython.org/en/latest/library/_thread.html) support for more advanced usage
https://docs.micropython.org/en/latest/develop/cmodules.html
@@ -18,6 +18,4 @@ while True:
```
Check [_thread](https://docs.micropython.org/en/latest/library/_thread.html) support for more advanced usage
https://docs.micropython.org/en/latest/develop/cmodules.html
[Please check the Linux example for more information and useful links](../README.md)
@@ -0,0 +1 @@
../../mongoose/micropython.cmake
+1
View File
@@ -0,0 +1 @@
../../mongoose/micropython.mk
+1
View File
@@ -0,0 +1 @@
../../mongoose/module.c
+1
View File
@@ -0,0 +1 @@
../../../mongoose.c
+1
View File
@@ -0,0 +1 @@
../../../mongoose.h
@@ -1,5 +1,5 @@
all:
make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)"
make -C ../../../http/http-server ARGS="-d $(CURDIR)"
# Bundle JS libraries (preact, preact-router, ...) into a single file
bundle.js:
+1
View File
@@ -0,0 +1 @@
../../../http/device-dashboard/web_root/bundle.js
+1
View File
@@ -0,0 +1 @@
../../../../mongoose.c
+1
View File
@@ -0,0 +1 @@
../../../../mongoose.h
@@ -37,7 +37,7 @@ web_root/main.css: web_root/index.html $(wildcard web_root/*.js)
# Generate packed filesystem for serving Web UI
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js
$(GZIP) web_root/*
$(CC) ../../test/pack.c -o $(PACK)
$(CC) ../../../test/pack.c -o $(PACK)
$(PACK) web_root/* certs/* > $@
$(GZIP) -d web_root/*
+1
View File
@@ -0,0 +1 @@
../../http/device-dashboard/certs
+1
View File
@@ -0,0 +1 @@
../../../mongoose.c
+1
View File
@@ -0,0 +1 @@
../../../mongoose.h