fastled 1.0.10__tar.gz → 1.0.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastled-1.0.10 → fastled-1.0.11}/PKG-INFO +3 -1
- {fastled-1.0.10 → fastled-1.0.11}/README.md +1 -0
- fastled-1.0.11/examples/SdCard/screenmap.json.h +4 -0
- {fastled-1.0.10 → fastled-1.0.11}/pyproject.toml +1 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/__init__.py +1 -1
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/app.py +58 -32
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/compile_server.py +216 -251
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/docker_manager.py +3 -1
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/filewatcher.py +44 -17
- fastled-1.0.11/src/fastled/keyboard.py +89 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/open_browser.py +5 -1
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/web_compile.py +3 -3
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/PKG-INFO +3 -1
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/SOURCES.txt +4 -1
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/requires.txt +3 -0
- fastled-1.0.11/tests/test_filechanger.py +54 -0
- fastled-1.0.11/tests/test_ino/embedded/data/bigdata.dat +0 -0
- fastled-1.0.11/tests/test_ino/wasm/wasm.ino +134 -0
- fastled-1.0.10/src/fastled/check_cpp_syntax.py +0 -34
- fastled-1.0.10/tests/test_filechanger.py +0 -95
- {fastled-1.0.10 → fastled-1.0.11}/.aiderignore +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/build_multi_docker_image.yml +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/lint.yml +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_macos.yml +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_ubuntu.yml +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_win.yml +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.gitignore +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.pylintrc +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.vscode/launch.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.vscode/settings.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/.vscode/tasks.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/LICENSE +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/MANIFEST.in +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/clean +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/docs/fastled.js +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/docs/fastled.wasm +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/docs/index.css +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/docs/index.html +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/docs/index.js +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Blink/Blink.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/Chromancer.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/detail.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gen.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/mapping.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/net.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/output.json +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/ripple.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/screenmap.json.h +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/ColorPalette/ColorPalette.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/ColorTemperature/ColorTemperature.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Cylon/Cylon.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/DemoReel100/DemoReel100.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Fire2012/Fire2012.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/FirstLight/FirstLight.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/FxEngine/FxEngine.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Noise/Noise.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/NoisePlayground/NoisePlayground.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/OctoWS2811/OctoWS2811.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Pacifica/Pacifica.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Pride2015/Pride2015.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/SdCard/SdCard.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/TwinkleFox/TwinkleFox.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/Water/Water.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/XYMatrix/XYMatrix.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/examples/wasm/wasm.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/install +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/lint +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/requirements.testing.txt +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/setup.cfg +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/setup.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/assets/example.txt +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/build_mode.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/cli.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/paths.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/sketch.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled/util.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/dependency_links.txt +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/entry_points.txt +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/top_level.txt +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/test +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_bad_ino.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_cli.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_compile_server.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_embedded_data.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_ino/bad/bad.ino +0 -0
- {fastled-1.0.10/tests/test_ino/wasm → fastled-1.0.11/tests/test_ino/embedded}/wasm.ino +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/tests/test_webcompile.py +0 -0
- {fastled-1.0.10 → fastled-1.0.11}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.11
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -16,6 +16,7 @@ Requires-Dist: watchdog
|
|
16
16
|
Requires-Dist: livereload
|
17
17
|
Requires-Dist: download
|
18
18
|
Requires-Dist: filelock
|
19
|
+
Requires-Dist: windows-curses; platform_system == "Windows"
|
19
20
|
|
20
21
|
# FastLED wasm compiler
|
21
22
|
|
@@ -93,6 +94,7 @@ provide shims for most of the common api points.
|
|
93
94
|
|
94
95
|
# Revisions
|
95
96
|
|
97
|
+
* 1.1.11 - Dev improvement: FastLED src code volume mapped into docker will just in time update without having to manually trigger it.
|
96
98
|
* 1.1.10 - Swap large assets with embedded placeholders. This helps video sketches upload and compile instantly. Assets are re-added on after compile artifacts are returned.
|
97
99
|
* 1.1.9 - Remove auto server and instead tell the user corrective action to take.
|
98
100
|
* 1.1.8 - Program now knows it's own version which will be displayed with help file. Use `--version` to get it directly.
|
@@ -74,6 +74,7 @@ provide shims for most of the common api points.
|
|
74
74
|
|
75
75
|
# Revisions
|
76
76
|
|
77
|
+
* 1.1.11 - Dev improvement: FastLED src code volume mapped into docker will just in time update without having to manually trigger it.
|
77
78
|
* 1.1.10 - Swap large assets with embedded placeholders. This helps video sketches upload and compile instantly. Assets are re-added on after compile artifacts are returned.
|
78
79
|
* 1.1.9 - Remove auto server and instead tell the user corrective action to take.
|
79
80
|
* 1.1.8 - Program now knows it's own version which will be displayed with help file. Use `--version` to get it directly.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
|
2
|
+
const char JSON_SCREEN_MAP[] = R"(
|
3
|
+
{"map": {"strip1": {"x": [-0.5, -1.21, -1.91, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -3.33, -2.62, -1.91, -1.21, -1.91, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -3.33, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -19.59, -20.3, -19.59, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -19.59, -20.3, -21.01, -21.71, -21.01, -20.3, -19.59, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 10.61, 9.9, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -10.61, 0.5, 1.21, 1.91, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 3.33, 2.62, 1.91, 1.21, 1.91, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 3.33, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 19.59, 20.3, 19.59, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 19.59, 20.3, 21.01, 21.71, 21.01, 20.3, 19.59, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -10.61, -9.9, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 10.61], "y": [0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -10.61, -9.9, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 10.61, -0.5, -1.21, -1.91, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -3.33, -2.62, -1.91, -1.21, -1.91, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -3.33, -2.62, -3.33, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -4.74, -4.04, -4.74, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -6.16, -5.45, -6.16, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -7.57, -6.86, -7.57, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -8.98, -8.28, -8.98, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -19.59, -20.3, -19.59, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, -10.4, -9.69, -10.4, -11.11, -11.81, -12.52, -13.23, -13.94, -14.64, -15.35, -16.06, -16.76, -17.47, -18.18, -18.89, -19.59, -20.3, -21.01, -21.71, -21.01, -20.3, -19.59, -18.89, -18.18, -17.47, -16.76, -16.06, -15.35, -14.64, -13.94, -13.23, -12.52, -11.81, -11.11, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 9.9, 10.61, 9.9, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 8.48, 9.19, 8.48, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 7.07, 7.78, 7.07, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 5.66, 6.36, 5.66, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 4.24, 4.95, 4.24, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 2.83, 3.54, 2.83, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 1.41, 2.12, 1.41, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -9.19, -8.48, -7.78, -7.07, -6.36, -5.66, -4.95, -4.24, -3.54, -2.83, -2.12, -1.41, -0.71, 0.0, 0.71, 0.0, -0.71, -1.41, -2.12, -2.83, -3.54, -4.24, -4.95, -5.66, -6.36, -7.07, -7.78, -8.48, -9.19, -9.9, -10.61, 0.5, 1.21, 1.91, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 3.33, 2.62, 1.91, 1.21, 1.91, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 3.33, 2.62, 3.33, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 4.74, 4.04, 4.74, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 6.16, 5.45, 6.16, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 7.57, 6.86, 7.57, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 8.98, 8.28, 8.98, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 19.59, 20.3, 19.59, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11, 10.4, 9.69, 10.4, 11.11, 11.81, 12.52, 13.23, 13.94, 14.64, 15.35, 16.06, 16.76, 17.47, 18.18, 18.89, 19.59, 20.3, 21.01, 21.71, 21.01, 20.3, 19.59, 18.89, 18.18, 17.47, 16.76, 16.06, 15.35, 14.64, 13.94, 13.23, 12.52, 11.81, 11.11], "diameter": 0.25}}}
|
4
|
+
)";
|
@@ -17,7 +17,8 @@ from fastled import __version__
|
|
17
17
|
from fastled.build_mode import BuildMode, get_build_mode
|
18
18
|
from fastled.compile_server import CompileServer
|
19
19
|
from fastled.docker_manager import DockerManager
|
20
|
-
from fastled.filewatcher import
|
20
|
+
from fastled.filewatcher import FileWatcherProcess
|
21
|
+
from fastled.keyboard import SpaceBarWatcher
|
21
22
|
from fastled.open_browser import open_browser_thread
|
22
23
|
from fastled.sketch import looks_like_sketch_directory
|
23
24
|
from fastled.web_compile import web_compile
|
@@ -291,41 +292,66 @@ def run_client(args: argparse.Namespace) -> int:
|
|
291
292
|
compile_server.stop()
|
292
293
|
return 1
|
293
294
|
|
294
|
-
# Watch mode
|
295
295
|
print("\nWatching for changes. Press Ctrl+C to stop...")
|
296
|
-
|
297
|
-
# watcher.start()
|
298
|
-
|
299
|
-
from multiprocessing import Process, Queue
|
300
|
-
|
301
|
-
proc: Process
|
302
|
-
queue: Queue
|
303
|
-
proc, queue = create_file_watcher_process(
|
296
|
+
sketch_filewatcher = FileWatcherProcess(
|
304
297
|
args.directory, excluded_patterns=["fastled_js"]
|
305
298
|
)
|
306
299
|
|
300
|
+
source_code_watcher: FileWatcherProcess | None = None
|
301
|
+
if compile_server and compile_server.using_fastled_src_dir_volume():
|
302
|
+
assert compile_server.fastled_src_dir is not None
|
303
|
+
source_code_watcher = FileWatcherProcess(
|
304
|
+
compile_server.fastled_src_dir, excluded_patterns=[]
|
305
|
+
)
|
306
|
+
|
307
|
+
def trigger_rebuild_if_sketch_changed(
|
308
|
+
last_compiled_result: CompiledResult,
|
309
|
+
) -> CompiledResult:
|
310
|
+
changed_files = sketch_filewatcher.get_all_changes()
|
311
|
+
if changed_files:
|
312
|
+
print(f"\nChanges detected in {changed_files}")
|
313
|
+
last_hash_value = last_compiled_result.hash_value
|
314
|
+
out = compile_function(last_hash_value=last_hash_value)
|
315
|
+
if not out.success:
|
316
|
+
print("\nRecompilation failed.")
|
317
|
+
else:
|
318
|
+
print("\nRecompilation successful.")
|
319
|
+
return out
|
320
|
+
return last_compiled_result
|
321
|
+
|
307
322
|
try:
|
308
323
|
while True:
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
324
|
+
last_compiled_result = trigger_rebuild_if_sketch_changed(
|
325
|
+
last_compiled_result
|
326
|
+
)
|
327
|
+
if compile_server and not compile_server.proceess_running():
|
328
|
+
print("Server process is not running. Exiting...")
|
329
|
+
return 1
|
330
|
+
if source_code_watcher is not None:
|
331
|
+
changed_files = source_code_watcher.get_all_changes()
|
332
|
+
if changed_files:
|
333
|
+
print(f"\nChanges detected in FastLED source code: {changed_files}")
|
334
|
+
print("Press space bar to trigger compile.")
|
335
|
+
|
336
|
+
space_key_watcher = SpaceBarWatcher()
|
337
|
+
try:
|
338
|
+
while True:
|
339
|
+
if space_key_watcher.space_bar_pressed():
|
340
|
+
print("Space bar pressed, triggering recompile...")
|
341
|
+
last_compiled_result = compile_function(
|
342
|
+
last_hash_value=None
|
343
|
+
)
|
344
|
+
print("Finished recompile.")
|
345
|
+
break
|
346
|
+
elif len(sketch_filewatcher.get_all_changes()) > 0:
|
347
|
+
last_compiled_result = compile_function(
|
348
|
+
last_hash_value=None
|
349
|
+
)
|
350
|
+
break
|
351
|
+
time.sleep(0.1)
|
352
|
+
finally:
|
353
|
+
space_key_watcher.stop()
|
354
|
+
|
329
355
|
except KeyboardInterrupt:
|
330
356
|
print("\nStopping watch mode...")
|
331
357
|
return 0
|
@@ -333,7 +359,7 @@ def run_client(args: argparse.Namespace) -> int:
|
|
333
359
|
print(f"Error: {e}")
|
334
360
|
return 1
|
335
361
|
finally:
|
336
|
-
|
362
|
+
sketch_filewatcher.stop()
|
337
363
|
if compile_server:
|
338
364
|
compile_server.stop()
|
339
365
|
if browser_proc:
|
@@ -372,8 +398,8 @@ def main() -> int:
|
|
372
398
|
|
373
399
|
if __name__ == "__main__":
|
374
400
|
try:
|
401
|
+
os.chdir("../fastled")
|
375
402
|
sys.argv.append("examples/SdCard")
|
376
|
-
sys.argv.append("--local")
|
377
403
|
sys.exit(main())
|
378
404
|
except KeyboardInterrupt:
|
379
405
|
print("\nExiting from main...")
|