int main(void) { double cpuTemp = getCpuTemp(); printf("cpu temp: %.2f\n", cpuTemp); if (initGpio() == -1) { exit(1); } setLedFlash(0, 3); while (1) { int light = hasLight(7); int sound = hasSound(1); printf("has light: %d, has sound: %d\n", light, sound); delay(100); } return 0; }
void Line6Fbv::setLedFlash(byte inLed, int inDelayTime) { setLedFlash(inLed, inDelayTime, LINE6FBV_FLASH_TIME); }