Use correct actions for buttons.
This commit is contained in:
parent
2d1357d277
commit
cd4251df86
@ -134,13 +134,13 @@ void Controller::_check_buttons() {
|
||||
Serial.printf("Buttons: %d %d %d %d\n", _mcp->digitalRead(1), _mcp->digitalRead(2), _mcp->digitalRead(3), _mcp->digitalRead(4));
|
||||
}*/
|
||||
if (_check_button(0)) {
|
||||
_player->play_album("23f5762e");
|
||||
_player->track_prev();
|
||||
} else if (_check_button(1)) {
|
||||
_player->vol_up();
|
||||
} else if (_check_button(2)) {
|
||||
_player->vol_down();
|
||||
} else if (_check_button(3)) {
|
||||
_player->track_prev();
|
||||
_player->track_next();
|
||||
}
|
||||
SPI.endTransaction();
|
||||
SPIMaster::disable();
|
||||
|
Loading…
Reference in New Issue
Block a user