Skip to content

Commit 334b9cb

Browse files
committed
Revert "Add demo for Keypad::isKeyPressed();"
This reverts commit f1f69bc3551794a81ed9b7a14a04337edffa4fa9.
1 parent 08dbad4 commit 334b9cb

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/main.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,14 @@ void loop()
3030
{
3131
static Menu singleMenu(board::getDisplay());
3232
static Presenter presenter(singleMenu, board::getStatusIndicators());
33-
static auto &keypad = board::getKeypad();
34-
static ProcessHmiInputs processHmiInputs(presenter, keypad);
33+
static ProcessHmiInputs processHmiInputs(presenter, board::getKeypad());
3534

3635
for (auto task : device::tasks)
3736
{
3837
serial_port::cout << task.second.getLabel() << " : " << std::boolalpha << task.second.isRunning()
3938
<< std::noboolalpha << " with " << task.second.getRecordedDuration().count() << " s" << std::endl;
4039
}
4140
serial_port::cout << "_\r" << std::endl;
42-
serial_port::cout << "Buttons: \t";
43-
for (std::size_t i = static_cast<std::size_t>(KeyId::LEFT); i <= static_cast<std::size_t>(KeyId::TASK4); i++)
44-
{
45-
serial_port::cout << std::boolalpha << keypad.isKeyPressed(static_cast<KeyId>(i)) << std::noboolalpha << " \t|";
46-
}
47-
serial_port::cout << std::endl;
4841

4942
std::this_thread::yield();
5043
using namespace std::chrono_literals;

0 commit comments

Comments
 (0)