0.0.15 • Published 4 years ago

imagehat v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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
0.0.14

4 years ago

0.0.15

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago