node-vcgencmd
Fast binding for vcgencmd.
Install
npm install vcgencmd
Usage
var vcgencmd = require('vcgencmd');
console.log(vcgencmd.codecEnabled('H264'));
console.log(vcgencmd.measureClock('core'));
API
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.3.0
- Add >0.12 compatibility of native add-on. Thanks to Mark Plomer.
v0.2.5
-
getLCDInfo
andcacheFlush
v0.2.0
measureVolts
- TS definition
v0.1.0
-
measureClock
,measureTemp
,codecEnabled
,getConfig
,getCamera
andgetMem