Skip to content
/ rpi-hdmi Public

Enable and disable the HDMI signal of the Raspberry PI

License

Notifications You must be signed in to change notification settings

idjem/rpi-hdmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')
});

About

Enable and disable the HDMI signal of the Raspberry PI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published