示例#1
0
PIRFlashLED::PIRFlashLED()
  : fileDescriptor(-1),
    minFlash(12),
    maxFlash(19),
    maxTime(10000)
{
  openFlashDevice();
}
示例#2
0
TorFlashLED::TorFlashLED()
  : fileDescriptor(-1),
    minTorch(0),
    maxTorch(1),
    torchOn(false),
    minFlash(12),
    maxFlash(19),
    chosenFlash(12),
    minTime(3000),
    maxTime(10000),
    chosenTime(0),
    minIndicator(0),
    maxIndicator(7),
    chosenIndicator(7),
    indicatorOn(false)
{
  openFlashDevice();
}