thingjs-blink

0.0.5 • Public • Published

Thing.js Blink

A Thing.js extension blinks an LED.

Install Extension

Add "thingjs-blink" extension in "extensions", and setup "modules" and "interval" parameters in the board.json file. The "modules" parameter is an LED object listed in modules, and the "interval" parameter is the blinking interval(ms).

{
  "modules": {
    "led" : { "module": "Led", "pins": 44 }
  },
  "extensions": {
    "thingjs-blink": { "modules": "led", "interval": 500 }
  }
}

Run

Go to the directory stored the board.json file, and run the below command.

path/to/thingjs board.json

Package Sidebar

Install

npm i thingjs-blink

Weekly Downloads

9

Version

0.0.5

License

none

Last publish

Collaborators

  • evanxd