Skip to content
Basic Example for JavaScript on mbed
JavaScript
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.
.gitignore
Gulpfile.js
README.md
blink_leds.js
main.js
package.json

README.md

mbed-js-example

Blinky for JavaScript on mbed.

Dependencies

Install:

  • A recent version of node.js.

  • A global version of Gulp, via:

    $ npm install -g gulp
    
  • Mbed CLI and its dependencies.

On Windows you'll also need:

Make sure that make, arm-none-eabi-gcc and all other tools are in your PATH.

Build

  1. Run npm install.
  2. Run gulp --target=YOUR_TARGET_NAME.
    • To find your target name, look at the platforms page for your development board.
  3. Copy the mbedos5.hex or mbedos5.bin file from build/out/YOUR_TARGET_NAME onto your development board.
  4. Blinky will run!
You can’t perform that action at this time.