Skip to content
Espruino Visual Studio Code project template
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.esp_utils
.vscode
src
.gitignore
CHANGELOG.md
README.md
board.json
package-lock.json
package.json
tsconfig.json

README.md

Using Espruino in Visual Studio Code with TypeScript build

Espruino is JavaScript framework for microcontrollers: https://www.espruino.com/

This is attepmt to use VSC as alternative IDE for Espruino.

Prerequisites

  • npm install espruino -g

Under Windows you may need to install npm install windows-build-tools -g for espruino to build properly espruino is set as dev. dependency, if you installed it globaly run npm link espruino in project folder, else run npm install before using

Usage

  1. in src folder put all .ts files (you can have multiple)
  2. in board.json you can set your board port and speed
  3. ctrl+shift+b to build with tsc, it will generate single file Output.js
  4. open NPM SCRIPTS buttom of VSC explorer tree
  5. use upload to send upload to the board
  6. use console to open REPL

you can adjust tsconfig.json to change target to es5 if some of es6 fatures are not yet supported by Espruino

Limitations

You can’t perform that action at this time.