Skip to content

neolp/node-vcgencmd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-vcgencmd

Fast binding for vcgencmd.

Install

npm install vcgencmdjs

Usage

var vcgencmd = require('vcgencmdjs');
console.log(vcgencmd.codecEnabled('H264'));
console.log(vcgencmd.measureClock('core'));

API

See elinux for details.

Note that case matters.

measureClock(string clock) → number

clock can be one of arm, core, h264, isp, v3d, uart, pwm, emmc, pixel, vec, hdmi, dpi.

measureVolts(string id) → number

id can be one of core, sdram_c, sdram_i, sdram_p.

measureTemp() → number

codecEnabled(string codec) → boolean

codec can be one of H264, MPG2, WVC1, MPG4, MJPG, WMV9.

getConfig(string config) → Object|number|string

config is specific option (for example, arm_freq), int or str. if config is int or str then return map of numbers or strings respectively.

getCamera() → {boolean supported, boolean detected}

getMem(string mem) → number

mem can be arm or gpu.

getLCDInfo() → {number width, number height, number depth}

cacheFlush() → void

Changelog

v0.4.4

  • Add compatibility of native add-on.

v0.3.0

  • Add >0.12 compatibility of native add-on. Thanks to Mark Plomer.

v0.2.5

  • getLCDInfo and cacheFlush

v0.2.0

  • measureVolts
  • TS definition

v0.1.0

  • measureClock, measureTemp, codecEnabled, getConfig, getCamera and getMem

About

Native binding for vcgencmd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.3%
  • C++ 16.5%
  • Python 4.2%