feat(src): supported set iic address for s2100
This commit is contained in:
parent
9a13909de2
commit
05dc3e99ef
|
@ -28,15 +28,15 @@ int main(int argc, char *argv[]) {
|
|||
api->ConfigStreamRequest(request);
|
||||
|
||||
Model model = api->GetModel();
|
||||
if (model == Model::STANDARD210A) {
|
||||
if (model == Model::STANDARD210A || model == Model::STANDARD2) {
|
||||
api->SetOptionValue(Option::IIC_ADDRESS_SETTING, 0x31);
|
||||
LOG(INFO) << "Set iic address to " << std::hex << "0x"
|
||||
<< api->GetOptionValue(Option::IIC_ADDRESS_SETTING);
|
||||
}
|
||||
|
||||
// MYNTEYE-S1030/S2100 don't support this option
|
||||
if (model == Model::STANDARD2 || model == Model::STANDARD) {
|
||||
LOG(INFO) << "Sorry,MYNTEYE-S1030/S2100 don't support iic address setting";
|
||||
// MYNTEYE-S1030 don't support this option
|
||||
if (model == Model::STANDARD) {
|
||||
LOG(INFO) << "Sorry,MYNTEYE-S1030 don't support iic address setting";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,8 @@ const std::map<Model, OptionSupports> option_supports_map = {
|
|||
Option::IR_CONTROL, Option::MIN_EXPOSURE_TIME,
|
||||
Option::DESIRED_BRIGHTNESS, Option::ACCELEROMETER_RANGE,
|
||||
Option::GYROSCOPE_RANGE, Option::ACCELEROMETER_LOW_PASS_FILTER,
|
||||
Option::GYROSCOPE_LOW_PASS_FILTER, Option::ERASE_CHIP}
|
||||
Option::GYROSCOPE_LOW_PASS_FILTER, Option::IIC_ADDRESS_SETTING,
|
||||
Option::ERASE_CHIP}
|
||||
},
|
||||
{Model::STANDARD210A, {
|
||||
Option::BRIGHTNESS,
|
||||
|
|
Loading…
Reference in New Issue
Block a user