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.
Files changed (97) hide show
  1. {fastled-1.0.10 → fastled-1.0.11}/PKG-INFO +3 -1
  2. {fastled-1.0.10 → fastled-1.0.11}/README.md +1 -0
  3. fastled-1.0.11/examples/SdCard/screenmap.json.h +4 -0
  4. {fastled-1.0.10 → fastled-1.0.11}/pyproject.toml +1 -0
  5. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/__init__.py +1 -1
  6. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/app.py +58 -32
  7. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/compile_server.py +216 -251
  8. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/docker_manager.py +3 -1
  9. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/filewatcher.py +44 -17
  10. fastled-1.0.11/src/fastled/keyboard.py +89 -0
  11. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/open_browser.py +5 -1
  12. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/web_compile.py +3 -3
  13. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/PKG-INFO +3 -1
  14. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/SOURCES.txt +4 -1
  15. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/requires.txt +3 -0
  16. fastled-1.0.11/tests/test_filechanger.py +54 -0
  17. fastled-1.0.11/tests/test_ino/embedded/data/bigdata.dat +0 -0
  18. fastled-1.0.11/tests/test_ino/wasm/wasm.ino +134 -0
  19. fastled-1.0.10/src/fastled/check_cpp_syntax.py +0 -34
  20. fastled-1.0.10/tests/test_filechanger.py +0 -95
  21. {fastled-1.0.10 → fastled-1.0.11}/.aiderignore +0 -0
  22. {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/build_multi_docker_image.yml +0 -0
  23. {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/lint.yml +0 -0
  24. {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_macos.yml +0 -0
  25. {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_ubuntu.yml +0 -0
  26. {fastled-1.0.10 → fastled-1.0.11}/.github/workflows/test_win.yml +0 -0
  27. {fastled-1.0.10 → fastled-1.0.11}/.gitignore +0 -0
  28. {fastled-1.0.10 → fastled-1.0.11}/.pylintrc +0 -0
  29. {fastled-1.0.10 → fastled-1.0.11}/.vscode/launch.json +0 -0
  30. {fastled-1.0.10 → fastled-1.0.11}/.vscode/settings.json +0 -0
  31. {fastled-1.0.10 → fastled-1.0.11}/.vscode/tasks.json +0 -0
  32. {fastled-1.0.10 → fastled-1.0.11}/LICENSE +0 -0
  33. {fastled-1.0.10 → fastled-1.0.11}/MANIFEST.in +0 -0
  34. {fastled-1.0.10 → fastled-1.0.11}/clean +0 -0
  35. {fastled-1.0.10 → fastled-1.0.11}/docs/fastled.js +0 -0
  36. {fastled-1.0.10 → fastled-1.0.11}/docs/fastled.wasm +0 -0
  37. {fastled-1.0.10 → fastled-1.0.11}/docs/index.css +0 -0
  38. {fastled-1.0.10 → fastled-1.0.11}/docs/index.html +0 -0
  39. {fastled-1.0.10 → fastled-1.0.11}/docs/index.js +0 -0
  40. {fastled-1.0.10 → fastled-1.0.11}/examples/Blink/Blink.ino +0 -0
  41. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/Chromancer.ino +0 -0
  42. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/detail.h +0 -0
  43. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
  44. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
  45. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
  46. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/gen.py +0 -0
  47. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/mapping.h +0 -0
  48. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/net.h +0 -0
  49. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/output.json +0 -0
  50. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/ripple.h +0 -0
  51. {fastled-1.0.10 → fastled-1.0.11}/examples/Chromancer/screenmap.json.h +0 -0
  52. {fastled-1.0.10 → fastled-1.0.11}/examples/ColorPalette/ColorPalette.ino +0 -0
  53. {fastled-1.0.10 → fastled-1.0.11}/examples/ColorTemperature/ColorTemperature.ino +0 -0
  54. {fastled-1.0.10 → fastled-1.0.11}/examples/Cylon/Cylon.ino +0 -0
  55. {fastled-1.0.10 → fastled-1.0.11}/examples/DemoReel100/DemoReel100.ino +0 -0
  56. {fastled-1.0.10 → fastled-1.0.11}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
  57. {fastled-1.0.10 → fastled-1.0.11}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
  58. {fastled-1.0.10 → fastled-1.0.11}/examples/Fire2012/Fire2012.ino +0 -0
  59. {fastled-1.0.10 → fastled-1.0.11}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
  60. {fastled-1.0.10 → fastled-1.0.11}/examples/FirstLight/FirstLight.ino +0 -0
  61. {fastled-1.0.10 → fastled-1.0.11}/examples/FxEngine/FxEngine.ino +0 -0
  62. {fastled-1.0.10 → fastled-1.0.11}/examples/Noise/Noise.ino +0 -0
  63. {fastled-1.0.10 → fastled-1.0.11}/examples/NoisePlayground/NoisePlayground.ino +0 -0
  64. {fastled-1.0.10 → fastled-1.0.11}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
  65. {fastled-1.0.10 → fastled-1.0.11}/examples/OctoWS2811/OctoWS2811.ino +0 -0
  66. {fastled-1.0.10 → fastled-1.0.11}/examples/Pacifica/Pacifica.ino +0 -0
  67. {fastled-1.0.10 → fastled-1.0.11}/examples/Pride2015/Pride2015.ino +0 -0
  68. {fastled-1.0.10 → fastled-1.0.11}/examples/SdCard/SdCard.ino +0 -0
  69. {fastled-1.0.10 → fastled-1.0.11}/examples/TwinkleFox/TwinkleFox.ino +0 -0
  70. {fastled-1.0.10 → fastled-1.0.11}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
  71. {fastled-1.0.10 → fastled-1.0.11}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
  72. {fastled-1.0.10 → fastled-1.0.11}/examples/Water/Water.ino +0 -0
  73. {fastled-1.0.10 → fastled-1.0.11}/examples/XYMatrix/XYMatrix.ino +0 -0
  74. {fastled-1.0.10 → fastled-1.0.11}/examples/wasm/wasm.ino +0 -0
  75. {fastled-1.0.10 → fastled-1.0.11}/install +0 -0
  76. {fastled-1.0.10 → fastled-1.0.11}/lint +0 -0
  77. {fastled-1.0.10 → fastled-1.0.11}/requirements.testing.txt +0 -0
  78. {fastled-1.0.10 → fastled-1.0.11}/setup.cfg +0 -0
  79. {fastled-1.0.10 → fastled-1.0.11}/setup.py +0 -0
  80. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/assets/example.txt +0 -0
  81. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/build_mode.py +0 -0
  82. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/cli.py +0 -0
  83. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/paths.py +0 -0
  84. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/sketch.py +0 -0
  85. {fastled-1.0.10 → fastled-1.0.11}/src/fastled/util.py +0 -0
  86. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/dependency_links.txt +0 -0
  87. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/entry_points.txt +0 -0
  88. {fastled-1.0.10 → fastled-1.0.11}/src/fastled.egg-info/top_level.txt +0 -0
  89. {fastled-1.0.10 → fastled-1.0.11}/test +0 -0
  90. {fastled-1.0.10 → fastled-1.0.11}/tests/test_bad_ino.py +0 -0
  91. {fastled-1.0.10 → fastled-1.0.11}/tests/test_cli.py +0 -0
  92. {fastled-1.0.10 → fastled-1.0.11}/tests/test_compile_server.py +0 -0
  93. {fastled-1.0.10 → fastled-1.0.11}/tests/test_embedded_data.py +0 -0
  94. {fastled-1.0.10 → fastled-1.0.11}/tests/test_ino/bad/bad.ino +0 -0
  95. {fastled-1.0.10/tests/test_ino/wasm → fastled-1.0.11/tests/test_ino/embedded}/wasm.ino +0 -0
  96. {fastled-1.0.10 → fastled-1.0.11}/tests/test_webcompile.py +0 -0
  97. {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.10
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,6 +17,7 @@ dependencies = [
17
17
  "livereload",
18
18
  "download",
19
19
  "filelock",
20
+ "windows-curses;platform_system=='Windows'",
20
21
  ]
21
22
 
22
23
  dynamic = ["version"]
@@ -1,3 +1,3 @@
1
1
  """FastLED Wasm Compiler package."""
2
2
 
3
- __version__ = "1.0.10"
3
+ __version__ = "1.0.11"
@@ -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 create_file_watcher_process
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
- # watcher = FileChangedNotifier(args.directory, excluded_patterns=["fastled_js"])
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
- try:
310
- size = queue.qsize()
311
- changed_files = []
312
- for i in range(size):
313
- changed_files.append(queue.get())
314
- except KeyboardInterrupt:
315
- print("\nExiting from watcher...")
316
- raise
317
- except Exception as e:
318
- print(f"Error getting changes: {e}")
319
- changed_files = []
320
- if changed_files:
321
- print(f"\nChanges detected in {changed_files}")
322
- last_hash_value = last_compiled_result.hash_value
323
- result = compile_function(last_hash_value=last_hash_value)
324
- if not result.success:
325
- print("\nRecompilation failed.")
326
- else:
327
- print("\nRecompilation successful.")
328
- time.sleep(0.3)
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
- proc.terminate()
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...")