fastled 1.1.27__tar.gz → 1.1.28__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.27 → fastled-1.1.28}/PKG-INFO +2 -1
- {fastled-1.1.27 → fastled-1.1.28}/README.md +1 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/__init__.py +1 -1
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/client_server.py +4 -4
- fastled-1.1.28/src/fastled/open_browser.py +58 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/PKG-INFO +2 -1
- fastled-1.1.27/src/fastled/open_browser.py +0 -52
- {fastled-1.1.27 → fastled-1.1.28}/.aiderignore +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.github/workflows/build_multi_docker_image.yml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.github/workflows/lint.yml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.github/workflows/test_macos.yml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.github/workflows/test_ubuntu.yml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.github/workflows/test_win.yml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.gitignore +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.pylintrc +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.vscode/launch.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.vscode/settings.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/.vscode/tasks.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/LICENSE +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/MANIFEST.in +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/clean +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/docs/fastled.js +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/docs/fastled.wasm +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/docs/index.css +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/docs/index.html +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/docs/index.js +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Blink/Blink.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/Chromancer.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/detail.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/gen.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/mapping.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/net.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/output.json +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/ripple.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/screenmap.json.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/ColorPalette/ColorPalette.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/ColorTemperature/ColorTemperature.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Cylon/Cylon.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/DemoReel100/DemoReel100.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Fire2012/Fire2012.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/FirstLight/FirstLight.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/FxEngine/FxEngine.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Noise/Noise.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/NoisePlayground/NoisePlayground.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/OctoWS2811/OctoWS2811.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Pacifica/Pacifica.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Pride2015/Pride2015.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/SdCard/SdCard.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/SdCard/screenmap.json.h +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/TwinkleFox/TwinkleFox.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/Water/Water.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/XYMatrix/XYMatrix.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/examples/wasm/wasm.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/install +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/lint +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/pyproject.toml +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/requirements.testing.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/setup.cfg +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/setup.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/app.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/assets/example.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/build_mode.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/cli.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/compile_server.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/docker_manager.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/env.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/filewatcher.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/keyboard.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/paths.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/select_sketch_directory.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/sketch.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/spinner.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/string_diff.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/types.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/util.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled/web_compile.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/SOURCES.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/dependency_links.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/entry_points.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/requires.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/src/fastled.egg-info/top_level.txt +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/test +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_bad_ino.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_cli.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_compile_server.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_embedded_data.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_filechanger.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_ino/bad/bad.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_ino/embedded/data/bigdata.dat +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_ino/embedded/wasm.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_ino/wasm/wasm.ino +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_server_and_client_seperatly.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/tests/test_webcompile.py +0 -0
- {fastled-1.1.27 → fastled-1.1.28}/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.28
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -165,6 +165,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
|
|
165
165
|
|
166
166
|
# Revisions
|
167
167
|
|
168
|
+
* 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
|
168
169
|
* 1.1.27 - Fixed `--interactive` so that it now works correctly.
|
169
170
|
* 1.1.25 - Improved detecting which sketch directory the user means by fuzzy matching.
|
170
171
|
* 1.1.24 - Adds progress spinning bar for pulling images, which take a long time.
|
@@ -142,6 +142,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
|
|
142
142
|
|
143
143
|
# Revisions
|
144
144
|
|
145
|
+
* 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
|
145
146
|
* 1.1.27 - Fixed `--interactive` so that it now works correctly.
|
146
147
|
* 1.1.25 - Improved detecting which sketch directory the user means by fuzzy matching.
|
147
148
|
* 1.1.24 - Adds progress spinning bar for pulling images, which take a long time.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import argparse
|
2
2
|
import shutil
|
3
|
-
import subprocess
|
4
3
|
import tempfile
|
5
4
|
import time
|
5
|
+
from multiprocessing import Process
|
6
6
|
from pathlib import Path
|
7
7
|
|
8
8
|
from fastled.build_mode import BuildMode, get_build_mode
|
@@ -11,7 +11,7 @@ from fastled.docker_manager import DockerManager
|
|
11
11
|
from fastled.env import DEFAULT_URL
|
12
12
|
from fastled.filewatcher import FileWatcherProcess
|
13
13
|
from fastled.keyboard import SpaceBarWatcher
|
14
|
-
from fastled.open_browser import
|
14
|
+
from fastled.open_browser import open_browser_process
|
15
15
|
from fastled.sketch import looks_like_sketch_directory
|
16
16
|
|
17
17
|
# CompiledResult
|
@@ -181,9 +181,9 @@ def run_client_server(args: argparse.Namespace) -> int:
|
|
181
181
|
if not result.success:
|
182
182
|
print("\nCompilation failed.")
|
183
183
|
|
184
|
-
browser_proc:
|
184
|
+
browser_proc: Process | None = None
|
185
185
|
if open_web_browser:
|
186
|
-
browser_proc =
|
186
|
+
browser_proc = open_browser_process(Path(args.directory) / "fastled_js")
|
187
187
|
else:
|
188
188
|
print("\nCompilation successful.")
|
189
189
|
if compile_server:
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import os
|
2
|
+
import socket
|
3
|
+
import sys
|
4
|
+
from multiprocessing import Process
|
5
|
+
from pathlib import Path
|
6
|
+
|
7
|
+
from livereload import Server
|
8
|
+
|
9
|
+
DEFAULT_PORT = 8081
|
10
|
+
|
11
|
+
|
12
|
+
def _open_browser_python(fastled_js: Path, port: int) -> Server:
|
13
|
+
"""Start livereload server in the fastled_js directory using API"""
|
14
|
+
print(f"\nStarting livereload server in {fastled_js} on port {port}")
|
15
|
+
|
16
|
+
server = Server()
|
17
|
+
server.watch(str(fastled_js / "index.html"), delay=0.1)
|
18
|
+
server.setHeader("Cache-Control", "no-cache")
|
19
|
+
server.serve(root=str(fastled_js), port=port, open_url_delay=0.5)
|
20
|
+
return server
|
21
|
+
|
22
|
+
|
23
|
+
def _find_open_port(start_port: int) -> int:
|
24
|
+
"""Find an open port starting from start_port."""
|
25
|
+
port = start_port
|
26
|
+
while True:
|
27
|
+
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
28
|
+
if sock.connect_ex(("localhost", port)) != 0:
|
29
|
+
return port
|
30
|
+
port += 1
|
31
|
+
|
32
|
+
|
33
|
+
def _run_server(fastled_js: Path, port: int) -> None:
|
34
|
+
"""Function to run in separate process that starts the livereload server"""
|
35
|
+
sys.stderr = open(os.devnull, "w") # Suppress stderr output
|
36
|
+
_open_browser_python(fastled_js, port)
|
37
|
+
try:
|
38
|
+
# Keep the process running
|
39
|
+
while True:
|
40
|
+
pass
|
41
|
+
except KeyboardInterrupt:
|
42
|
+
print("\nShutting down livereload server...")
|
43
|
+
|
44
|
+
|
45
|
+
def open_browser_process(fastled_js: Path, port: int | None = None) -> Process:
|
46
|
+
"""Start livereload server in the fastled_js directory and return the process"""
|
47
|
+
if port is None:
|
48
|
+
port = DEFAULT_PORT
|
49
|
+
|
50
|
+
port = _find_open_port(port)
|
51
|
+
|
52
|
+
process = Process(
|
53
|
+
target=_run_server,
|
54
|
+
args=(fastled_js, port),
|
55
|
+
daemon=True,
|
56
|
+
)
|
57
|
+
process.start()
|
58
|
+
return process
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.28
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -165,6 +165,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
|
|
165
165
|
|
166
166
|
# Revisions
|
167
167
|
|
168
|
+
* 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
|
168
169
|
* 1.1.27 - Fixed `--interactive` so that it now works correctly.
|
169
170
|
* 1.1.25 - Improved detecting which sketch directory the user means by fuzzy matching.
|
170
171
|
* 1.1.24 - Adds progress spinning bar for pulling images, which take a long time.
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import socket
|
2
|
-
import subprocess
|
3
|
-
from pathlib import Path
|
4
|
-
|
5
|
-
DEFAULT_PORT = 8081
|
6
|
-
|
7
|
-
|
8
|
-
def _open_browser_python(fastled_js: Path, port: int) -> subprocess.Popen:
|
9
|
-
"""Start livereload server in the fastled_js directory using CLI"""
|
10
|
-
print(f"\nStarting livereload server in {fastled_js} on port {port}")
|
11
|
-
|
12
|
-
# Construct command for livereload CLI
|
13
|
-
cmd = [
|
14
|
-
"livereload",
|
15
|
-
str(fastled_js), # directory to serve
|
16
|
-
"--port",
|
17
|
-
str(port),
|
18
|
-
"-t",
|
19
|
-
str(fastled_js / "index.html"), # file to watch
|
20
|
-
"-w",
|
21
|
-
"0.1", # delay
|
22
|
-
"-o",
|
23
|
-
"0.5", # open browser delay
|
24
|
-
]
|
25
|
-
|
26
|
-
# Start the process
|
27
|
-
process = subprocess.Popen(
|
28
|
-
cmd,
|
29
|
-
# stdout=subprocess.DEVNULL,
|
30
|
-
stderr=subprocess.DEVNULL,
|
31
|
-
)
|
32
|
-
return process
|
33
|
-
|
34
|
-
|
35
|
-
def _find_open_port(start_port: int) -> int:
|
36
|
-
"""Find an open port starting from start_port."""
|
37
|
-
port = start_port
|
38
|
-
while True:
|
39
|
-
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
40
|
-
if sock.connect_ex(("localhost", port)) != 0:
|
41
|
-
return port
|
42
|
-
port += 1
|
43
|
-
|
44
|
-
|
45
|
-
def open_browser_thread(fastled_js: Path, port: int | None = None) -> subprocess.Popen:
|
46
|
-
"""Start livereload server in the fastled_js directory and return the started thread"""
|
47
|
-
if port is None:
|
48
|
-
port = DEFAULT_PORT
|
49
|
-
|
50
|
-
port = _find_open_port(port)
|
51
|
-
|
52
|
-
return _open_browser_python(fastled_js, port)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{fastled-1.1.27 → fastled-1.1.28}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|