mirror of
https://github.com/arduino-libraries/ArduinoLowPower.git
synced 2025-04-19 11:42:14 +03:00
Proposed lowercase name for companion callback in sketch
This commit is contained in:
parent
10471dd7f3
commit
fcbf16f6a3
@ -17,14 +17,14 @@
|
||||
|
||||
#define MIPS_PIN 32
|
||||
|
||||
void MIPS_PM(bool sleep) {
|
||||
void MipsPM(bool sleep) {
|
||||
pinMode(MIPS_PIN, OUTPUT);
|
||||
digitalWrite(MIPS_PIN, sleep ? LOW: HIGH);
|
||||
}
|
||||
|
||||
void setup() {
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
LowPower.companionLowPowerCallback(MIPS_PM);
|
||||
LowPower.companionLowPowerCallback(MipsPM);
|
||||
// Uncomment this function if you wish to attach function dummy when RTC wakes up the chip
|
||||
LowPower.attachInterruptWakeup(RTC_ALARM_WAKEUP, onWakeup, CHANGE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user