changed pressed to pressed_to_wake
This commit is contained in:
parent
69e5645700
commit
a5bf135ede
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue