Tinker-io
Tinker-io is a Firmata-compatibility IO class for writing node programs that interact with Particle devices (formerly Spark). Tinker-io was built at IcedDev
Caveat
This is a very simplified IO class. It is meant to be used over the particle cloud using the default Tinker sketch that ships on the device.
For a full-featured IO class you should be using particle-io
Getting Started
In order to use the tinker-io library, you will need to use the default Tinker sketch.
The host computer (where you're running your Node.js or Web application) and the Particle do NOT have to be on the same local network.
Blink an Led
The "Hello World" of microcontroller programming:
var TinkerIO = ;var board = token: YOUR_PARTICLE_TOKEN// optional - you can use your username/password instead of token // username: YOUR_PARTICLE_USERNAME_EMAIL,// password: YOUR_PARTICLE_PASSWORD, deviceName: YOUR_DEVICE_NAME; board;
Johnny-Five IO Plugin
Tinker-IO can be used as an IO Plugin for Johnny-Five:
var five = ;var TinkerIO = ;var board = io: token: YOUR_PARTICLE_TOKEN deviceId: YOUR_PARTICLE_DEVICE_ID ; board;