fastled 1.0.8__tar.gz → 1.0.10__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.8 → fastled-1.0.10}/.gitignore +1 -0
- {fastled-1.0.8 → fastled-1.0.10}/PKG-INFO +4 -1
- {fastled-1.0.8 → fastled-1.0.10}/README.md +3 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/SdCard/SdCard.ino +17 -24
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/__init__.py +1 -1
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/app.py +383 -376
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/filewatcher.py +169 -146
- fastled-1.0.10/src/fastled/util.py +10 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/web_compile.py +277 -227
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/PKG-INFO +4 -1
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/SOURCES.txt +2 -0
- fastled-1.0.10/tests/test_embedded_data.py +65 -0
- fastled-1.0.10/tests/test_filechanger.py +95 -0
- fastled-1.0.8/tests/test_filechanger.py +0 -51
- {fastled-1.0.8 → fastled-1.0.10}/.aiderignore +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.github/workflows/build_multi_docker_image.yml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.github/workflows/lint.yml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.github/workflows/test_macos.yml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.github/workflows/test_ubuntu.yml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.github/workflows/test_win.yml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.pylintrc +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.vscode/launch.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.vscode/settings.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/.vscode/tasks.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/LICENSE +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/MANIFEST.in +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/clean +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/docs/fastled.js +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/docs/fastled.wasm +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/docs/index.css +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/docs/index.html +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/docs/index.js +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Blink/Blink.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/Chromancer.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/detail.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/gen.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/mapping.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/net.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/output.json +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/ripple.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Chromancer/screenmap.json.h +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/ColorPalette/ColorPalette.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/ColorTemperature/ColorTemperature.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Cylon/Cylon.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/DemoReel100/DemoReel100.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Fire2012/Fire2012.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/FirstLight/FirstLight.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/FxEngine/FxEngine.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Noise/Noise.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/NoisePlayground/NoisePlayground.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/OctoWS2811/OctoWS2811.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Pacifica/Pacifica.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Pride2015/Pride2015.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/TwinkleFox/TwinkleFox.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/Water/Water.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/XYMatrix/XYMatrix.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/examples/wasm/wasm.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/install +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/lint +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/pyproject.toml +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/requirements.testing.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/setup.cfg +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/setup.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/assets/example.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/build_mode.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/check_cpp_syntax.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/cli.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/compile_server.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/docker_manager.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/open_browser.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/paths.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled/sketch.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/dependency_links.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/entry_points.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/requires.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/src/fastled.egg-info/top_level.txt +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/test +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_bad_ino.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_cli.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_compile_server.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_ino/bad/bad.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_ino/wasm/wasm.ino +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/tests/test_webcompile.py +0 -0
- {fastled-1.0.8 → fastled-1.0.10}/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.10
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -21,6 +21,7 @@ Requires-Dist: filelock
|
|
21
21
|
|
22
22
|
Compiles an Arduino/Platformio sketch into a wasm binary that can be run directly in the web browser.
|
23
23
|
|
24
|
+
|
24
25
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/lint.yml)
|
25
26
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_multi_docker_image.yml)
|
26
27
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_macos.yml)
|
@@ -92,6 +93,8 @@ provide shims for most of the common api points.
|
|
92
93
|
|
93
94
|
# Revisions
|
94
95
|
|
96
|
+
* 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
|
+
* 1.1.9 - Remove auto server and instead tell the user corrective action to take.
|
95
98
|
* 1.1.8 - Program now knows it's own version which will be displayed with help file. Use `--version` to get it directly.
|
96
99
|
* 1.1.7 - Sketch cache re-enabled, but selectively invalidated on cpp/h updates. Cleaned up deprecated args. Fixed double thread running for containers that was causing slowdown.
|
97
100
|
* 1.1.6 - Use the fast src volume map allow quick updates to fastled when developing on the source code.
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
Compiles an Arduino/Platformio sketch into a wasm binary that can be run directly in the web browser.
|
4
4
|
|
5
|
+
|
5
6
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/lint.yml)
|
6
7
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_multi_docker_image.yml)
|
7
8
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_macos.yml)
|
@@ -73,6 +74,8 @@ provide shims for most of the common api points.
|
|
73
74
|
|
74
75
|
# Revisions
|
75
76
|
|
77
|
+
* 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
|
+
* 1.1.9 - Remove auto server and instead tell the user corrective action to take.
|
76
79
|
* 1.1.8 - Program now knows it's own version which will be displayed with help file. Use `--version` to get it directly.
|
77
80
|
* 1.1.7 - Sketch cache re-enabled, but selectively invalidated on cpp/h updates. Cleaned up deprecated args. Fixed double thread running for containers that was causing slowdown.
|
78
81
|
* 1.1.6 - Use the fast src volume map allow quick updates to fastled when developing on the source code.
|
@@ -21,9 +21,13 @@ void loop() {
|
|
21
21
|
#include "fx/video.h"
|
22
22
|
#include "file_system.h"
|
23
23
|
#include "ui.h"
|
24
|
-
|
24
|
+
#include "screenmap.h"
|
25
25
|
#include "file_system.h"
|
26
26
|
|
27
|
+
|
28
|
+
#include "screenmap.json.h" // const char JSON_SCREEN_MAP[] = { ... }
|
29
|
+
|
30
|
+
|
27
31
|
#define LED_PIN 2
|
28
32
|
#define LED_TYPE WS2811
|
29
33
|
#define COLOR_ORDER GRB
|
@@ -38,8 +42,13 @@ void loop() {
|
|
38
42
|
#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
|
39
43
|
#define IS_SERPINTINE true
|
40
44
|
|
45
|
+
|
46
|
+
Title title("SDCard Demo - Mapped Video");
|
47
|
+
Description description("Video data is streamed off of a SD card and displayed on a LED strip. The video data is mapped to the LED strip using a ScreenMap.");
|
48
|
+
|
49
|
+
|
41
50
|
CRGB leds[NUM_LEDS];
|
42
|
-
|
51
|
+
ScreenMap screenMap;
|
43
52
|
|
44
53
|
FileSystem filesystem;
|
45
54
|
Video video;
|
@@ -51,9 +60,14 @@ void setup() {
|
|
51
60
|
if (!filesystem.beginSd(CHIP_SELECT_PIN)) {
|
52
61
|
Serial.println("Failed to initialize file system.");
|
53
62
|
}
|
63
|
+
// JSON_SCREEN_MAP
|
64
|
+
FixedMap<Str, ScreenMap, 16> screenMaps;
|
65
|
+
ScreenMap::ParseJson(JSON_SCREEN_MAP, &screenMaps);
|
66
|
+
ScreenMap screenMap = screenMaps["strip1"];
|
67
|
+
|
54
68
|
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS)
|
55
69
|
.setCorrection(TypicalLEDStrip)
|
56
|
-
.setScreenMap(
|
70
|
+
.setScreenMap(screenMap);
|
57
71
|
FastLED.setBrightness(96);
|
58
72
|
//fxEngine.addFx(animartrix);
|
59
73
|
video = filesystem.openVideo("data/video.dat", NUM_LEDS, FPS);
|
@@ -64,28 +78,7 @@ void setup() {
|
|
64
78
|
|
65
79
|
void loop() {
|
66
80
|
uint32_t now = millis();
|
67
|
-
|
68
|
-
// fxEngine.draw(millis(), leds);
|
69
81
|
video.draw(now, leds);
|
70
|
-
|
71
|
-
EVERY_N_SECONDS(1){
|
72
|
-
Serial.println("Drawing");
|
73
|
-
for (int i = 0; i < NUM_LEDS;) {
|
74
|
-
int nleft = MIN(8, NUM_LEDS - i);
|
75
|
-
for (int j = 0; j < nleft; j++) {
|
76
|
-
CRGB c = leds[i + j];
|
77
|
-
Serial.print("(");
|
78
|
-
Serial.print(c.r);
|
79
|
-
Serial.print(", ");
|
80
|
-
Serial.print(c.g);
|
81
|
-
Serial.print(", ");
|
82
|
-
Serial.print(c.b);
|
83
|
-
Serial.print(") ");
|
84
|
-
}
|
85
|
-
Serial.println();
|
86
|
-
i += nleft;
|
87
|
-
}
|
88
|
-
}
|
89
82
|
FastLED.show();
|
90
83
|
}
|
91
84
|
|