PokittoLib with changes to lcd refresh etc.
Fork of Pokitto by
This is a fork by user @Spinal, and is used in Pokittris for testing. Do not import this to your own program.
Diff: POKITTO_HW/HWButtons.cpp
- Revision:
- 7:fee7bc74477f
- Parent:
- 3:689c3cbbef13
diff -r a65d553f2157 -r fee7bc74477f POKITTO_HW/HWButtons.cpp --- a/POKITTO_HW/HWButtons.cpp Sat Oct 07 21:34:27 2017 +0000 +++ b/POKITTO_HW/HWButtons.cpp Sun Oct 08 18:51:34 2017 +0000 @@ -62,13 +62,7 @@ void AReleased() { Pokitto::heldStates[BTN_A] = 0; } void BPressed() { Pokitto::heldStates[BTN_B] = 1; } void BReleased() { Pokitto::heldStates[BTN_B] = 0; } -void CPressed() { - _bd.enableDirectPrinting(true); - _bd.directcolor=COLOR_MAGENTA; - _bd.setCursor(1,1); - _bd.print("C pressed"); - Pokitto::heldStates[BTN_C] = 1; - } +void CPressed() { Pokitto::heldStates[BTN_C] = 1;} void CReleased() { Pokitto::heldStates[BTN_C] = 0; } void UPressed() { Pokitto::heldStates[BTN_UP] = 1; } void UReleased() { Pokitto::heldStates[BTN_UP] = 0; }