Using the Johnny-Five stater kit and Tessel 2 to create IoT using JS. He speaks to the npm ecosystem making things nice for Nodebots. It uses Tessel for the kit.
I2C is for more complicated components. The I2C protocol involves using two lines to send and receive data: a serial clock pin (SCL) that the board pulses at a regular interval, and a serial data pin (SDA) over which data is sent between the two devices. As the clock line changes from low to high (known as the rising edge of the clock pulse), a single bit of information - that will form in sequence the address of a specific device and a a command or data - is transferred from the board to the I2C device over the SDA line. When this information is sent - bit after bit -, the called upon device executes the request and transmits it's data back - if required - to the board over the same line using the clock signal still generated by the Master on SCL as timing.
'use strict'; const tessel = require('tessel'); setInterval(() => { tessel.led[2].toggle(); tessel.led[3].toggle(); }, 100); console.log("I'm blinking! Press ctrl + c to stop.");