Fast binding for vcgencmd.
npm install vcgencmdjs
var vcgencmd = require('vcgencmdjs');
console.log(vcgencmd.codecEnabled('H264'));
console.log(vcgencmd.measureClock('core'));
Note that case matters.
clock
can be one of arm, core, h264, isp, v3d, uart, pwm, emmc, pixel, vec, hdmi, dpi.
id
can be one of core, sdram_c, sdram_i, sdram_p.
codec
can be one of H264, MPG2, WVC1, MPG4, MJPG, WMV9.
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.
mem
can be arm or gpu.
- Add compatibility of native add-on.
- Add >0.12 compatibility of native add-on. Thanks to Mark Plomer.
getLCDInfo
andcacheFlush
measureVolts
- TS definition
measureClock
,measureTemp
,codecEnabled
,getConfig
,getCamera
andgetMem