1.2.0 • Published 8 years ago

rpi-hdmi v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Version License

rpi-hdmi

Enable and disable the HDMI signal of the Raspberry PI

Installation

npm install --save rpi-hdmi

API

Get hdmi state

const hdmi = require('rpi-hdmi');

hdmi.isConnected((err, hdmiState) => {
  if(hdmiState)
    console.log('HDMI is On')
  else 
    console.log('HDMI is off')
});

Power on HDMI

const hdmi = require('rpi-hdmi');

hdmi.on((err) => {
  if(!err)
    console.log('HDMI is off')
});

Power off HDMI

const hdmi = require('rpi-hdmi');

hdmi.off((err) => {
  if(!err)
    console.log('HDMI is On')
});
1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago