本文整理汇总了C++中IR::shutterNow方法的典型用法代码示例。如果您正苦于以下问题:C++ IR::shutterNow方法的具体用法?C++ IR::shutterNow怎么用?C++ IR::shutterNow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IR
的用法示例。
在下文中一共展示了IR::shutterNow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IRremote
volatile char IRremote(char key, char first)
{
if(first)
{
lcd.cls();
menu.setTitle(TEXT("IR Remote"));
menu.setBar(TEXT("Delayed"), TEXT("Trigger"));
lcd.update();
}
switch(key)
{
case FL_KEY:
ir.shutterDelayed();
break;
case FR_KEY:
ir.shutterNow();
break;
case LEFT_KEY:
return FN_CANCEL;
}
return FN_CONTINUE;
}
示例2: capture
void shutter::capture(void)
{
if(cable_connected == 0)
{
ir.shutterNow();
// ir.shutterDelayed();
}
full();
_delay_ms(75);
off();
ir_shutter_state = 0;
shutter_state = 0;
}
示例3: bulbEnd
void shutter::bulbEnd(void)
{
if(cable_connected == 0 && ir_shutter_state == 1)
{
ir_shutter_state = 0;
ir.shutterNow();
// ir.shutterDelayed();
}
if(conf.bulbMode == 0)
{
off();
}
else if(conf.bulbMode == 1 && shutter_state == 1)
{
full();
shutter_state = 0;
_delay_ms(75);
off();
}
}
示例4: bulbStart
void shutter::bulbStart(void)
{
if(cable_connected == 0 && ir_shutter_state != 1)
{
ir_shutter_state = 1;
ir.shutterNow();
// ir.shutterDelayed();
}
if(conf.bulbMode == 0)
{
full();
}
else if(conf.bulbMode == 1 && shutter_state != 1)
{
full();
shutter_state = 1;
_delay_ms(75);
half();
}
}