This commit is contained in:
2024-03-15 12:54:32 +01:00
parent 14f6018f5a
commit 007548efbb
2 changed files with 81 additions and 16 deletions

View File

@ -15,7 +15,7 @@ uint16_t counter;
static uint8_t buttonsMoveLeftPressed() {
// -----------------------
// TEST CODE
//if (counter == 25) {
//if (counter == 95) {
// ledGreenToggle();
// return 1;
//}
@ -24,13 +24,9 @@ static uint8_t buttonsMoveLeftPressed() {
}
static uint8_t buttonsMoveRightPressed() {
return 0;
}
static uint8_t buttonsRotateLeftPressed() {
// -----------------------
// TEST CODE
if (counter == 35) {
if (counter == 95) {
ledGreenToggle();
return 1;
}
@ -38,7 +34,25 @@ static uint8_t buttonsRotateLeftPressed() {
return 0;
}
static uint8_t buttonsRotateLeftPressed() {
return 0;
}
static uint8_t buttonsRotateRightPressed() {
// -----------------------
// TEST CODE
if (counter == 35) {
ledGreenToggle();
return 1;
}
// -----------------------
// -----------------------
// TEST CODE
if (counter == 45) {
ledGreenToggle();
return 1;
}
// -----------------------
return 0;
}