Espruino is JavaScript framework for microcontrollers: https://www.espruino.com/
This is attepmt to use VSC as alternative IDE for Espruino.
npm install espruino -g
Under Windows you may need to install
npm install windows-build-tools -g
forespruino
to build properlyespruino
is set as dev. dependency, if you installed it globaly runnpm link espruino
in project folder, else runnpm install
before using
- in
src
folder put all.ts
files (you can have multiple) - in
board.json
you can set your board port and speed ctrl+shift+b
to build withtsc
, it will generate single fileOutput.js
- open
NPM SCRIPTS
buttom of VSC explorer tree - use
upload
to send upload to the board - use
console
to open REPL - if
upload
task fail due to port busy, please closeconsole
task
you can adjust
tsconfig.json
to changetarget
toes5
if some ofes6
fatures are not yet supported by Espruino
- lot, this is very first attempt of marying it all togheter - so don't expect much:)
- it uses Espruino types definition https://www.npmjs.com/package/@types/espruino done by https://github.com/stasberkov, then changed manually by me to allow non-modular compilation
- not tested under linux, tested only with ESP boards over serial connection (no BLE)