Jackson zhang
Hello, everyone. I am a student. I plan to do a camera switcher using 3G SDI Blackmagic shield. But I have some problems with code. Does anyone can help me check what's wrong?
The problem is :BMD_SDICameraControl_I2C{aka class BMD::I2Cphysical<BMD::SDICameraControl>}has no member named:writeCommandint8"
Below is my code. I need to use 3G SDI to make the videos transfer between the main screen. But the code has a problem and the problem only exist in last command.
/*
sdiCameraControl.writeFixed16 (
Camera number,
Group,
Parameter being controlled,
Operation,
Value
);
*/
#include <BMDSDIControl.h> // need to include the library
// NOTE: Must match address set in the setup utility software
const int shieldAddress = 0x6E;
BMD_SDICameraControl_I2C sdiCameraControl(shieldAddress);
//BMD_SDITallyControl_I2C sdiTallyControl(shieldAddress);
void setup() {
// Must be called before the objects can be used
sdiCameraControl.begin();
// sdiTallyControl.begin();
// Turn on camera control overrides in the shield
sdiCameraControl.setOverride(true);
// Turn on tally overrides in the shield
// sdiTallyControl.setOverride(true);
}
// loop is like while(1)
void loop() {
/* sdiCameraControl.writeCommandFixed16(
1,
8,
0,
0,
liftAdjust
);*/
sdiCameraControl.writeCommandint8 enum(
1,
6,
0,
Source
);
delay(1000);
sdiCameraControl.writeCommandint8 enum(
2,
6,
0,
Source
);
delay(1000);
sdiCameraControl.writeCommandint8 enum(
3,
6,
0,
2,
Source
);
delay(1000);
}
The problem is :BMD_SDICameraControl_I2C{aka class BMD::I2Cphysical<BMD::SDICameraControl>}has no member named:writeCommandint8"
Below is my code. I need to use 3G SDI to make the videos transfer between the main screen. But the code has a problem and the problem only exist in last command.
/*
sdiCameraControl.writeFixed16 (
Camera number,
Group,
Parameter being controlled,
Operation,
Value
);
*/
#include <BMDSDIControl.h> // need to include the library
// NOTE: Must match address set in the setup utility software
const int shieldAddress = 0x6E;
BMD_SDICameraControl_I2C sdiCameraControl(shieldAddress);
//BMD_SDITallyControl_I2C sdiTallyControl(shieldAddress);
void setup() {
// Must be called before the objects can be used
sdiCameraControl.begin();
// sdiTallyControl.begin();
// Turn on camera control overrides in the shield
sdiCameraControl.setOverride(true);
// Turn on tally overrides in the shield
// sdiTallyControl.setOverride(true);
}
// loop is like while(1)
void loop() {
/* sdiCameraControl.writeCommandFixed16(
1,
8,
0,
0,
liftAdjust
);*/
sdiCameraControl.writeCommandint8 enum(
1,
6,
0,
Source
);
delay(1000);
sdiCameraControl.writeCommandint8 enum(
2,
6,
0,
Source
);
delay(1000);
sdiCameraControl.writeCommandint8 enum(
3,
6,
0,
2,
Source
);
delay(1000);
}