Skip to content

chikoboo/node-pantilt-hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pantilt-hat

Build Status

Pan-Tilt HAT for Node.js

Install

npm install node-pantilt-hat

Usage

import { NodePanTilt } from 'node-pantilt-hat';

const pantilt = new NodePanTilt();

pantilt.setPan(10); // -90 to 90
pantilt.setTilt(20); // -90 to 90

pantilt.getPan(); // 10
pantilt.getTilt(); // 20