0.4.4 • Published 3 years ago

vcgencmdjs v0.4.4

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

node-vcgencmd

Fast binding for vcgencmd.

Install

npm install vcgencmdjs

Usage

var vcgencmd = require('vcgencmd');
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
0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

4 years ago

0.4.0

4 years ago