changed pressed to pressed_to_wake

This commit is contained in:
Niko Kotilainen 2022-01-27 14:32:07 +00:00 committed by Phil Howard
parent 69e5645700
commit a5bf135ede
1 changed files with 3 additions and 3 deletions

View File

@ -30,17 +30,17 @@ int main() {
badger.init();
if(badger.pressed(badger.A)) {
if(badger.pressed_to_wake(badger.A)) {
printf("> A pressed\n");
badger.image(shaun);
}
else if(badger.pressed(badger.B)) {
else if(badger.pressed_to_wake(badger.B)) {
printf("> B pressed\n");
badger.image(paul);
}
else if(badger.pressed(badger.C)) {
else if(badger.pressed_to_wake(badger.C)) {
printf("> C pressed\n");
badger.image(adam);
}