fastled 1.1.29__tar.gz → 1.1.30__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 (103) hide show
  1. {fastled-1.1.29 → fastled-1.1.30}/.gitignore +2 -1
  2. {fastled-1.1.29 → fastled-1.1.30}/PKG-INFO +2 -1
  3. {fastled-1.1.29 → fastled-1.1.30}/README.md +1 -0
  4. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/Chromancer.ino +1 -1
  5. {fastled-1.1.29 → fastled-1.1.30}/examples/FxEngine/FxEngine.ino +1 -1
  6. {fastled-1.1.29 → fastled-1.1.30}/examples/NoisePlusPalette/NoisePlusPalette.ino +1 -1
  7. {fastled-1.1.29 → fastled-1.1.30}/examples/SdCard/SdCard.ino +1 -1
  8. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/__init__.py +1 -1
  9. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/app.py +11 -0
  10. fastled-1.1.30/src/fastled/project_init.py +37 -0
  11. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/PKG-INFO +2 -1
  12. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/SOURCES.txt +1 -0
  13. {fastled-1.1.29 → fastled-1.1.30}/.aiderignore +0 -0
  14. {fastled-1.1.29 → fastled-1.1.30}/.github/workflows/build_multi_docker_image.yml +0 -0
  15. {fastled-1.1.29 → fastled-1.1.30}/.github/workflows/lint.yml +0 -0
  16. {fastled-1.1.29 → fastled-1.1.30}/.github/workflows/test_macos.yml +0 -0
  17. {fastled-1.1.29 → fastled-1.1.30}/.github/workflows/test_ubuntu.yml +0 -0
  18. {fastled-1.1.29 → fastled-1.1.30}/.github/workflows/test_win.yml +0 -0
  19. {fastled-1.1.29 → fastled-1.1.30}/.pylintrc +0 -0
  20. {fastled-1.1.29 → fastled-1.1.30}/.vscode/launch.json +0 -0
  21. {fastled-1.1.29 → fastled-1.1.30}/.vscode/settings.json +0 -0
  22. {fastled-1.1.29 → fastled-1.1.30}/.vscode/tasks.json +0 -0
  23. {fastled-1.1.29 → fastled-1.1.30}/LICENSE +0 -0
  24. {fastled-1.1.29 → fastled-1.1.30}/MANIFEST.in +0 -0
  25. {fastled-1.1.29 → fastled-1.1.30}/clean +0 -0
  26. {fastled-1.1.29 → fastled-1.1.30}/docs/fastled.js +0 -0
  27. {fastled-1.1.29 → fastled-1.1.30}/docs/fastled.wasm +0 -0
  28. {fastled-1.1.29 → fastled-1.1.30}/docs/index.css +0 -0
  29. {fastled-1.1.29 → fastled-1.1.30}/docs/index.html +0 -0
  30. {fastled-1.1.29 → fastled-1.1.30}/docs/index.js +0 -0
  31. {fastled-1.1.29 → fastled-1.1.30}/examples/Blink/Blink.ino +0 -0
  32. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/detail.h +0 -0
  33. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
  34. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
  35. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
  36. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/gen.py +0 -0
  37. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/mapping.h +0 -0
  38. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/net.h +0 -0
  39. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/output.json +0 -0
  40. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/ripple.h +0 -0
  41. {fastled-1.1.29 → fastled-1.1.30}/examples/Chromancer/screenmap.json.h +0 -0
  42. {fastled-1.1.29 → fastled-1.1.30}/examples/ColorPalette/ColorPalette.ino +0 -0
  43. {fastled-1.1.29 → fastled-1.1.30}/examples/ColorTemperature/ColorTemperature.ino +0 -0
  44. {fastled-1.1.29 → fastled-1.1.30}/examples/Cylon/Cylon.ino +0 -0
  45. {fastled-1.1.29 → fastled-1.1.30}/examples/DemoReel100/DemoReel100.ino +0 -0
  46. {fastled-1.1.29 → fastled-1.1.30}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
  47. {fastled-1.1.29 → fastled-1.1.30}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
  48. {fastled-1.1.29 → fastled-1.1.30}/examples/Fire2012/Fire2012.ino +0 -0
  49. {fastled-1.1.29 → fastled-1.1.30}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
  50. {fastled-1.1.29 → fastled-1.1.30}/examples/FirstLight/FirstLight.ino +0 -0
  51. {fastled-1.1.29 → fastled-1.1.30}/examples/Noise/Noise.ino +0 -0
  52. {fastled-1.1.29 → fastled-1.1.30}/examples/NoisePlayground/NoisePlayground.ino +0 -0
  53. {fastled-1.1.29 → fastled-1.1.30}/examples/OctoWS2811/OctoWS2811.ino +0 -0
  54. {fastled-1.1.29 → fastled-1.1.30}/examples/Pacifica/Pacifica.ino +0 -0
  55. {fastled-1.1.29 → fastled-1.1.30}/examples/Pride2015/Pride2015.ino +0 -0
  56. {fastled-1.1.29 → fastled-1.1.30}/examples/SdCard/screenmap.json.h +0 -0
  57. {fastled-1.1.29 → fastled-1.1.30}/examples/TwinkleFox/TwinkleFox.ino +0 -0
  58. {fastled-1.1.29 → fastled-1.1.30}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
  59. {fastled-1.1.29 → fastled-1.1.30}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
  60. {fastled-1.1.29 → fastled-1.1.30}/examples/Water/Water.ino +0 -0
  61. {fastled-1.1.29 → fastled-1.1.30}/examples/XYMatrix/XYMatrix.ino +0 -0
  62. {fastled-1.1.29 → fastled-1.1.30}/examples/wasm/wasm.ino +0 -0
  63. {fastled-1.1.29 → fastled-1.1.30}/install +0 -0
  64. {fastled-1.1.29 → fastled-1.1.30}/lint +0 -0
  65. {fastled-1.1.29 → fastled-1.1.30}/pyproject.toml +0 -0
  66. {fastled-1.1.29 → fastled-1.1.30}/requirements.testing.txt +0 -0
  67. {fastled-1.1.29 → fastled-1.1.30}/setup.cfg +0 -0
  68. {fastled-1.1.29 → fastled-1.1.30}/setup.py +0 -0
  69. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/assets/example.txt +0 -0
  70. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/build_mode.py +0 -0
  71. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/cli.py +0 -0
  72. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/client_server.py +0 -0
  73. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/compile_server.py +0 -0
  74. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/docker_manager.py +0 -0
  75. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/env.py +0 -0
  76. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/filewatcher.py +0 -0
  77. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/keyboard.py +0 -0
  78. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/open_browser.py +0 -0
  79. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/paths.py +0 -0
  80. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/select_sketch_directory.py +0 -0
  81. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/sketch.py +0 -0
  82. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/spinner.py +0 -0
  83. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/string_diff.py +0 -0
  84. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/types.py +0 -0
  85. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/util.py +0 -0
  86. {fastled-1.1.29 → fastled-1.1.30}/src/fastled/web_compile.py +0 -0
  87. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/dependency_links.txt +0 -0
  88. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/entry_points.txt +0 -0
  89. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/requires.txt +0 -0
  90. {fastled-1.1.29 → fastled-1.1.30}/src/fastled.egg-info/top_level.txt +0 -0
  91. {fastled-1.1.29 → fastled-1.1.30}/test +0 -0
  92. {fastled-1.1.29 → fastled-1.1.30}/tests/test_bad_ino.py +0 -0
  93. {fastled-1.1.29 → fastled-1.1.30}/tests/test_cli.py +0 -0
  94. {fastled-1.1.29 → fastled-1.1.30}/tests/test_compile_server.py +0 -0
  95. {fastled-1.1.29 → fastled-1.1.30}/tests/test_embedded_data.py +0 -0
  96. {fastled-1.1.29 → fastled-1.1.30}/tests/test_filechanger.py +0 -0
  97. {fastled-1.1.29 → fastled-1.1.30}/tests/test_ino/bad/bad.ino +0 -0
  98. {fastled-1.1.29 → fastled-1.1.30}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  99. {fastled-1.1.29 → fastled-1.1.30}/tests/test_ino/embedded/wasm.ino +0 -0
  100. {fastled-1.1.29 → fastled-1.1.30}/tests/test_ino/wasm/wasm.ino +0 -0
  101. {fastled-1.1.29 → fastled-1.1.30}/tests/test_server_and_client_seperatly.py +0 -0
  102. {fastled-1.1.29 → fastled-1.1.30}/tests/test_webcompile.py +0 -0
  103. {fastled-1.1.29 → fastled-1.1.30}/upload_package.sh +0 -0
@@ -148,4 +148,5 @@ run.sh
148
148
  !.aiderignore
149
149
  tmp/
150
150
  cache/
151
- dist/
151
+ dist/
152
+ ./fastled
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.1.29
3
+ Version: 1.1.30
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.30 - Added `--init` to initialize a demo project.
168
169
  * 1.1.29 - Remove annoying dbg messages i left in.
169
170
  * 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
170
171
  * 1.1.27 - Fixed `--interactive` so that it now works correctly.
@@ -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.30 - Added `--init` to initialize a demo project.
145
146
  * 1.1.29 - Remove annoying dbg messages i left in.
146
147
  * 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
147
148
  * 1.1.27 - Fixed `--interactive` so that it now works correctly.
@@ -18,7 +18,7 @@
18
18
  #include "screenmap.h"
19
19
  #include "math_macros.h"
20
20
  #include "json.h"
21
- #include "ui.h"
21
+ #include "fl/ui.h"
22
22
  #include "fixed_map.h"
23
23
 
24
24
  #include "screenmap.json.h"
@@ -9,7 +9,7 @@
9
9
  #include "fx/2d/animartrix.hpp"
10
10
  #include "fx/fx_engine.h"
11
11
  #include "fx/storage/sd.h"
12
- #include "ui.h"
12
+ #include "fl/ui.h"
13
13
 
14
14
  #define LED_PIN 2
15
15
  #define BRIGHTNESS 96
@@ -16,7 +16,7 @@
16
16
 
17
17
  #include <FastLED.h>
18
18
  #include "fx/2d/noisepalette.hpp"
19
- #include "ui.h"
19
+ #include "fl/ui.h"
20
20
 
21
21
  #define LED_PIN 3
22
22
  #define BRIGHTNESS 96
@@ -20,7 +20,7 @@ void loop() {
20
20
  #include "fx/fx_engine.h"
21
21
  #include "fx/video.h"
22
22
  #include "file_system.h"
23
- #include "ui.h"
23
+ #include "fl/ui.h"
24
24
  #include "screenmap.h"
25
25
  #include "file_system.h"
26
26
 
@@ -1,3 +1,3 @@
1
1
  """FastLED Wasm Compiler package."""
2
2
 
3
- __version__ = "1.1.29"
3
+ __version__ = "1.1.30"
@@ -12,6 +12,7 @@ from fastled import __version__
12
12
  from fastled.client_server import run_client_server
13
13
  from fastled.compile_server import CompileServer
14
14
  from fastled.env import DEFAULT_URL
15
+ from fastled.project_init import project_init
15
16
  from fastled.select_sketch_directory import select_sketch_directory
16
17
  from fastled.sketch import (
17
18
  find_sketch_directories,
@@ -33,6 +34,11 @@ def parse_args() -> argparse.Namespace:
33
34
  default=None,
34
35
  help="Directory containing the FastLED sketch to compile",
35
36
  )
37
+ parser.add_argument(
38
+ "--init",
39
+ action="store_true",
40
+ help="Initialize the FastLED sketch in the current directory",
41
+ )
36
42
  parser.add_argument(
37
43
  "--just-compile",
38
44
  action="store_true",
@@ -87,6 +93,7 @@ def parse_args() -> argparse.Namespace:
87
93
  action="store_true",
88
94
  help="Run the server in the current directory, volume mapping fastled if we are in the repo",
89
95
  )
96
+
90
97
  build_mode = parser.add_mutually_exclusive_group()
91
98
  build_mode.add_argument("--debug", action="store_true", help="Build in debug mode")
92
99
  build_mode.add_argument(
@@ -102,6 +109,10 @@ def parse_args() -> argparse.Namespace:
102
109
  cwd_is_fastled = looks_like_fastled_repo(Path(os.getcwd()))
103
110
 
104
111
  args = parser.parse_args()
112
+
113
+ if args.init:
114
+ args.directory = project_init()
115
+
105
116
  if not args.update:
106
117
  if args.no_auto_updates:
107
118
  args.auto_update = False
@@ -0,0 +1,37 @@
1
+ import zipfile
2
+ from pathlib import Path
3
+
4
+ import httpx
5
+
6
+ from fastled.env import DEFAULT_URL
7
+
8
+ ENDPOINT = f"{DEFAULT_URL}/project/init"
9
+
10
+
11
+ def project_init() -> Path:
12
+ """
13
+ Initialize a new FastLED project.
14
+ """
15
+ response = httpx.get(ENDPOINT, timeout=20)
16
+ response.raise_for_status()
17
+ content = response.content
18
+ output = Path("fastled.zip")
19
+ output.write_bytes(content)
20
+ # unzip the content
21
+ outdir = Path("fastled")
22
+ if outdir.exists():
23
+ print("Project already initialized.")
24
+ return Path("fastled").iterdir().__next__()
25
+ with zipfile.ZipFile(output, "r") as zip_ref:
26
+ zip_ref.extractall(outdir)
27
+ print(f"Project initialized successfully at {outdir}")
28
+ output.unlink()
29
+ return Path("fastled").iterdir().__next__()
30
+
31
+
32
+ def unit_test() -> None:
33
+ project_init()
34
+
35
+
36
+ if __name__ == "__main__":
37
+ unit_test()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.1.29
3
+ Version: 1.1.30
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.30 - Added `--init` to initialize a demo project.
168
169
  * 1.1.29 - Remove annoying dbg messages i left in.
169
170
  * 1.1.28 - Adds cache control headers to the live server to disable all caching in the live browser.
170
171
  * 1.1.27 - Fixed `--interactive` so that it now works correctly.
@@ -73,6 +73,7 @@ src/fastled/filewatcher.py
73
73
  src/fastled/keyboard.py
74
74
  src/fastled/open_browser.py
75
75
  src/fastled/paths.py
76
+ src/fastled/project_init.py
76
77
  src/fastled/select_sketch_directory.py
77
78
  src/fastled/sketch.py
78
79
  src/fastled/spinner.py
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