Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crosspoint-reader/crosspoint-reader
/ waitForPowerRelease
Function
waitForPowerRelease
src/main.cpp:205–211 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
203
}
204
}
205
void waitForPowerRelease() {
206
gpio.update();
207
while (gpio.isPressed(HalGPIO::BTN_POWER)) {
208
delay(50);
209
gpio.update();
210
}
211
}
212
213
constexpr char SLEEP_FRAME_FILE[] =
"/.crosspoint/sleep_frame.bin"
;
214
Callers
1
setup
Function · 0.85
Calls
2
update
Method · 0.45
isPressed
Method · 0.45
Tested by
no test coverage detected