Skip to content

A simple wrapper around Tessels GPIO to pull digital pins up and down in a blinky manner.

Notifications You must be signed in to change notification settings

yetzt/tessel-blink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Make yout Tessel Blink

A simple wrapper around Tessels GPIO to pull digital pins up and down in a blinky manner.

Usage

var tessel = require("tessel");
var blink = require("tessel-blink");

var led = blink(tessel.port["GPIO"].pin["G3"]);

// make it blink really fast!
led.blink(50);

Methods

blink(freq)

Make it blink in a certain milliseconds frequency.

pulse(on_freq, off_freq)

Make it go on and off with different frequencies.

on()

Stop blinking and turn the led on.

off()

Stop blinking and turn the led off.

How to connect your LED

Put the longer leg of yout LED into GND and the other in one of the G3 to G6 holes. If it doesn't work, put it in the other way.

About

A simple wrapper around Tessels GPIO to pull digital pins up and down in a blinky manner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published