1.0.3 • Published 6 years ago

tm1637 v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

tm1637.js

npm.io experimental

Control a 4 digit led segments TM1637 driver using javascript and johnny-five.

pic

Largely inspired from raspberrypi-tm1637-4display and timwaizenegger/raspberrypi-examples.

Tested with a 4 digits, 4 decimal points tm1637 display from catalex.

Install

npm i tm1637

Usage

const five = require('johnny-five');
const Raspi = require('raspi-io');

const tm1637 = require('tm1637');

const board = new five.Board({
  io: new Raspi()
});

board.on("ready", () => {
  const display = tm1637({
    clk: "GPIO21",
    dio: "GPIO20",
    board: board
  })

  display.show("3.142");

  board.repl.inject({
    display
  });
});

Related

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago