Skip to content

Instantly share code, notes, and snippets.

@banks
Created January 9, 2019 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banks/7173310bf70822a30516edd15a1667b1 to your computer and use it in GitHub Desktop.
Save banks/7173310bf70822a30516edd15a1667b1 to your computer and use it in GitHub Desktop.
var UVCControl = require('uvc-control');
var camera = new UVCControl(0x046d, 0x082d);
camera.get('autoFocus', function (error, value) {
console.log('Before AutoFocus setting:', value);
});
camera.set('autoFocus', 0, function (error) {
if (error != undefined) {
console.log('AutoFocus set error:', error);
}
});
camera.get('autoFocus', function (error, value) {
console.log('After AutoFocus setting:', value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment