Tessel-IO is compatible with Tessel 2
IMPORTANT VERSION COMPATIBILTY INFORMATION
|Tessel 2 Firmware Version||Tessel-IO Version|
|>= 0.1.0||>= 1.0.0|
|<= 0.0.16||<= 0.11.0|
Install & Setup
If you have prior experience with Johnny-Five, this is all you need:
npm install t2-cli tessel-io johnny-five
If you have limited prior experience with Johnny-Five, or are generally new to NodeBots, or just want to read more about how this all works together, you'll want to read Say 'Hello World' with Johnny-Five on Tessel 2
"use strict";const five = ;const Tessel = ;const board =io:;board;
Deploying Your Program To Tessel 2
For testing and development, run in RAM:
t2 run <program file name>
When your program is ready for deployment, push to flash:
t2 push <program file name>
Pin Naming Guide
There are two primary ports on the Tessel2: Port "A" and Port "B". There is also a bank of onboard LEDs which are controllable from a port we are calling "L". Note that "L0" and "L1" should be reserved for system functions (ERR and WLAN) so you should avoid using them. Instead, consider using "L2" and "L3" which are intended to be more informational in nature.
|Port||Number||Johnny-Five Compatible Name|
See examples for basic, non-Johnny-Five examples.
Pin Capabilities Guide
|Port||Pin||Digital I/O||SCL||SDA||TX||RX||Analog In||Analog Out||Interrupt||PWM|
- Whenever possible, avoid using pins AO, A1, B0 and B1 for digital or analog input.
There are several examples of how to use this library in its raw form. Make sure you have installed the Tessel 2 CLI and provisioned the board first. After that is complete, you can run any of the examples:
t2 run eg/onboard-led.js