imagehat

0.0.15 • Public • Published

NPM - License Node - Node Version NPM - Version NPM - Downloads

Image HAT

Image-HAT 3D

Installation

Install using npm

$ npm install imagehat

Listing attributes and methods

#!/usr/bin/env node
var ImageHat = require('imagehat').ImageHat

var hat = new ImageHat(0x20) // 0x20 is the I2C bus address

hat.host                     // get selected host
hat.host = 0                 // unplug USB device
hat.host = 1                 // assign USB device to host 1
hat.host = 2                 // assign USB device to host 2

hat.host2Power               // get power state of host 2

hat.extIn                    // get state of external input

hat.extOut                   // get state of external output
hat.extOut = 0               // turn off external output
hat.extOut = 1               // turn on external output

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.151latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.151
0.0.141
0.0.121
0.0.111
0.0.91
0.0.81
0.0.71
0.0.62
0.0.51
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i imagehat

Weekly Downloads

14

Version

0.0.15

License

MIT

Unpacked Size

8.36 kB

Total Files

5

Last publish

Collaborators

  • waschhauser