Created
January 9, 2019 13:33
-
-
Save banks/7173310bf70822a30516edd15a1667b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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