fastled 1.1.30__tar.gz → 1.1.32__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.1.30 → fastled-1.1.32}/.gitignore +1 -1
- {fastled-1.1.30 → fastled-1.1.32}/PKG-INFO +3 -3
- {fastled-1.1.30 → fastled-1.1.32}/README.md +2 -2
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/__init__.py +1 -1
- fastled-1.1.32/src/fastled/app.py +64 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/docker_manager.py +590 -582
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/open_browser.py +6 -5
- fastled-1.1.30/src/fastled/app.py → fastled-1.1.32/src/fastled/parse_args.py +164 -217
- fastled-1.1.32/src/fastled/project_init.py +68 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/PKG-INFO +3 -3
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/SOURCES.txt +2 -2
- fastled-1.1.32/tests/test_project_init.py +33 -0
- fastled-1.1.30/examples/SdCard/SdCard.ino +0 -87
- fastled-1.1.30/examples/SdCard/screenmap.json.h +0 -4
- fastled-1.1.30/src/fastled/project_init.py +0 -37
- {fastled-1.1.30 → fastled-1.1.32}/.aiderignore +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.github/workflows/build_multi_docker_image.yml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.github/workflows/lint.yml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.github/workflows/test_macos.yml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.github/workflows/test_ubuntu.yml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.github/workflows/test_win.yml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.pylintrc +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.vscode/launch.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.vscode/settings.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/.vscode/tasks.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/LICENSE +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/MANIFEST.in +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/clean +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/docs/fastled.js +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/docs/fastled.wasm +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/docs/index.css +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/docs/index.html +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/docs/index.js +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Blink/Blink.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/Chromancer.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/detail.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/gen.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/mapping.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/net.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/output.json +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/ripple.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Chromancer/screenmap.json.h +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/ColorPalette/ColorPalette.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/ColorTemperature/ColorTemperature.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Cylon/Cylon.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/DemoReel100/DemoReel100.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Fire2012/Fire2012.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/FirstLight/FirstLight.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/FxEngine/FxEngine.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Noise/Noise.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/NoisePlayground/NoisePlayground.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/OctoWS2811/OctoWS2811.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Pacifica/Pacifica.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Pride2015/Pride2015.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/TwinkleFox/TwinkleFox.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/Water/Water.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/XYMatrix/XYMatrix.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/examples/wasm/wasm.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/install +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/lint +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/pyproject.toml +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/requirements.testing.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/setup.cfg +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/setup.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/assets/example.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/build_mode.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/cli.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/client_server.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/compile_server.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/env.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/filewatcher.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/keyboard.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/paths.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/select_sketch_directory.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/sketch.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/spinner.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/string_diff.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/types.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/util.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled/web_compile.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/dependency_links.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/entry_points.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/requires.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/src/fastled.egg-info/top_level.txt +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/test +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_bad_ino.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_cli.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_compile_server.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_embedded_data.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_filechanger.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_ino/bad/bad.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_ino/embedded/data/bigdata.dat +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_ino/embedded/wasm.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_ino/wasm/wasm.ino +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_server_and_client_seperatly.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/tests/test_webcompile.py +0 -0
- {fastled-1.1.30 → fastled-1.1.32}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.32
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -161,10 +161,10 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
|
|
161
161
|
Q: How can I get the compiled size of my FastLED sketch smaller?
|
162
162
|
A: A big chunk of space is being used by unnecessary javascript `emscripten` is bundling. This can be tweeked by the wasm_compiler_settings.py file in the FastLED repo.
|
163
163
|
|
164
|
-
|
165
|
-
|
166
164
|
# Revisions
|
167
165
|
|
166
|
+
* 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
|
167
|
+
* 1.1.31 - `--local` is auto-enabled if docker is installed, use `--web` to force web compiler. Updating is much more pretty.
|
168
168
|
* 1.1.30 - Added `--init` to initialize a demo project.
|
169
169
|
* 1.1.29 - Remove annoying dbg messages i left in.
|
170
170
|
* 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
|
@@ -138,10 +138,10 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
|
|
138
138
|
Q: How can I get the compiled size of my FastLED sketch smaller?
|
139
139
|
A: A big chunk of space is being used by unnecessary javascript `emscripten` is bundling. This can be tweeked by the wasm_compiler_settings.py file in the FastLED repo.
|
140
140
|
|
141
|
-
|
142
|
-
|
143
141
|
# Revisions
|
144
142
|
|
143
|
+
* 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
|
144
|
+
* 1.1.31 - `--local` is auto-enabled if docker is installed, use `--web` to force web compiler. Updating is much more pretty.
|
145
145
|
* 1.1.30 - Added `--init` to initialize a demo project.
|
146
146
|
* 1.1.29 - Remove annoying dbg messages i left in.
|
147
147
|
* 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"""
|
2
|
+
Uses the latest wasm compiler image to compile the FastLED sketch.
|
3
|
+
"""
|
4
|
+
|
5
|
+
import argparse
|
6
|
+
import sys
|
7
|
+
import time
|
8
|
+
from pathlib import Path
|
9
|
+
|
10
|
+
from fastled.client_server import run_client_server
|
11
|
+
from fastled.compile_server import CompileServer
|
12
|
+
from fastled.parse_args import parse_args
|
13
|
+
|
14
|
+
|
15
|
+
def run_server(args: argparse.Namespace) -> int:
|
16
|
+
interactive = args.interactive
|
17
|
+
auto_update = args.auto_update
|
18
|
+
mapped_dir = Path(args.directory).absolute() if args.directory else None
|
19
|
+
compile_server = CompileServer(
|
20
|
+
interactive=interactive, auto_updates=auto_update, mapped_dir=mapped_dir
|
21
|
+
)
|
22
|
+
if not interactive:
|
23
|
+
print(f"Server started at {compile_server.url()}")
|
24
|
+
compile_server.wait_for_startup()
|
25
|
+
try:
|
26
|
+
while True:
|
27
|
+
if not compile_server.proceess_running():
|
28
|
+
print("Server process is not running. Exiting...")
|
29
|
+
return 1
|
30
|
+
time.sleep(0.1)
|
31
|
+
except KeyboardInterrupt:
|
32
|
+
print("\nExiting from server...")
|
33
|
+
return 1
|
34
|
+
finally:
|
35
|
+
compile_server.stop()
|
36
|
+
return 0
|
37
|
+
|
38
|
+
|
39
|
+
def main() -> int:
|
40
|
+
args = parse_args()
|
41
|
+
if args.update:
|
42
|
+
# Force auto_update to ensure update check happens
|
43
|
+
compile_server = CompileServer(interactive=False, auto_updates=True)
|
44
|
+
compile_server.stop()
|
45
|
+
print("Finished updating.")
|
46
|
+
return 0
|
47
|
+
|
48
|
+
if args.server:
|
49
|
+
print("Running in server only mode.")
|
50
|
+
return run_server(args)
|
51
|
+
else:
|
52
|
+
print("Running in client/server mode.")
|
53
|
+
return run_client_server(args)
|
54
|
+
|
55
|
+
|
56
|
+
if __name__ == "__main__":
|
57
|
+
try:
|
58
|
+
sys.exit(main())
|
59
|
+
except KeyboardInterrupt:
|
60
|
+
print("\nExiting from main...")
|
61
|
+
sys.exit(1)
|
62
|
+
except Exception as e:
|
63
|
+
print(f"Error: {e}")
|
64
|
+
sys.exit(1)
|