LowPower.idle(SLEEP_8S, ADC_OFF, TIMER2_OFF, TIMER1_OFF, TIMER0_OFF,
SPI_OFF, USART0_OFF, TWI_OFF);
Arduino: 1.6.7 (Linux), Board: "Arduino Leonardo"
...
/home/paul/repo/arduino/hack-the-hive/hack-the-hive.ino: In function 'void wait_5_minutes()':
hack-the-hive:146: error: no matching function for call to 'LowPowerClass::idle(period_t, adc_t, timer2_t, timer1_t, timer0_t, spi_t, usart0_t, twi_t)'
SPI_OFF, USART0_OFF, TWI_OFF);
^
/home/paul/repo/arduino/hack-the-hive/hack-the-hive.ino:146:45: note: candidate is:
In file included from /home/paul/repo/arduino/hack-the-hive/hack-the-hive.ino:21:0:
/home/paul/repo/arduino/libraries/Low-Power-master/LowPower.h:134:10: note: void LowPowerClass::idle(period_t, adc_t, timer4_t, timer3_t, timer1_t, timer0_t, spi_t, usart1_t, twi_t, usb_t)
void idle(period_t period, adc_t adc, timer4_t timer4,
^
/home/paul/repo/arduino/libraries/Low-Power-master/LowPower.h:134:10: note: candidate expects 10 arguments, 8 provided
exit status 1
no matching function for call to 'LowPowerClass::idle(period_t, adc_t, timer2_t, timer1_t, timer0_t, spi_t, usart0_t, twi_t)'
#if defined (__AVR_ATmega328P__) || defined (__AVR_ATmega168__)
... etc...
How do I know which function signature I should be using? It would be super helpful if the README could give a hint on this.