Skip to main content

FastLED Wasm Compiler

Project description

FastLED wasm compiler

Compiles an Arduino/Platformio sketch into a wasm binary that can be run directly in the web browser.

Linting MacOS_Tests Ubuntu_Tests Win_Tests

About

This python app will compile your FastLED style sketches into html/js/wasm output that runs directly in the browser.

Compile times are unreal - faster than any other physical platform.

I've seen compiles as fast as 5 seconds, though they typically take around 10.

This works on Windows/Linux/Mac(arm/x64).

Docker is required.

https://github.com/user-attachments/assets/bde26ddd-d24d-4a78-90b6-ac05359677fa

Install

pip install fastled-wasm

Use

Change to the directory where the sketch lives and run

fastled-wasm --open

The compiler should download, compile the target and then launch a web-browser.

About the compilation.

Pre-processing is done to your source files. A fake Arduino.h will be inserted into your source files that will provide shims for most of the common api points.

Revisions

1.0.2 - Small bug with new installs. 1.0.1 - Re-use is no longer the default, due to problems. 1.0.0 - Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastled_wasm-1.0.2.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

fastled_wasm-1.0.2-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fastled_wasm-1.0.2.tar.gz.

File metadata

  • Download URL: fastled_wasm-1.0.2.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fastled_wasm-1.0.2.tar.gz
Algorithm Hash digest
SHA256 04d2653dcac9723f57caf15d2e5ed722aa850bfe654b6c62a788221a2c2e4235
MD5 8a17b1746b6058b07f772e0deaab93d6
BLAKE2b-256 cc5a530245c03798ef75644e164faf77db60fc4c478a41e9a6201cf0e566f46a

See more details on using hashes here.

File details

Details for the file fastled_wasm-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fastled_wasm-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f81ee025172703f5a7234493dbbe9e35390824ea32e274fb2a8b8a7d24281498
MD5 6a77299bd610d992e172f260ccb9865f
BLAKE2b-256 934637e2fddc66dbb9f1f28fe3e99336b4016d45c157106f93365d2977d6aaf1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page