Skip to content

letssteam/micropython-editor-experimental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 Let's STEAM - MicroPython Editor (experimental) 🚧

This is a simple experimentation to use MicroPython on the STM32L475 board (and STM32WB55 later ?).

Link to test : https://letssteam.github.io/micropython-editor-experimental/

How to use

Requirements

  • Node.JS (>= 12.x)
  • NPM (>= 7.5.2)

Options

  • --watch: recompile after editing a file (static file or Typescript file)
  • --release: Minify files for production

Developping / Deploying / Testing :

  1. Clone this repository git clone https://github.com/letssteam/micropython-experiments.git
  2. Run npm install
  3. Run gulp to compile and produce the static website in dist folder
    Pro tip Use gulp --watch to recompile after editing a file !
  4. Run a simple HTTP server on dist folder (exemple: python3 -m http.server)

Flash with .hex file 🆚 Flash with the editor (WebUSB)

Only if MicroPython is already flash on the target

When you flash the target with the generated hex file, ALL the data in the target can (will) be erased. When you use the editor to flash your python program, only the python files will be overwritten.

⚠️ About WebUSB

This editor use WebUSB to flash or send programme directly from your browser to the target. BUT this is ONLY available on chrome based browser (Chrome, Chromium, Brave, Edge, etc)

On any other browser, neither the first two buttons (connect and flash) nor the serial output (on the right of the screen) appear.

🚦 About the npm audit vulnerabilities

All the vulnerabilities found by npm audit are for dev dependencies, only. I let you read this excellent article (https://overreacted.io/npm-audit-broken-by-design/), that explain why npm audit is not...ideal.

One last thing

THIS IS EXPERIMENTAL, please be kind ❤️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published