mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-08-23 11:04:17 -04:00
11 lines
235 B
C++
11 lines
235 B
C++
#include <Arduino.h>
|
|
#include "pin_definitions.h"
|
|
#include "push_button.h"
|
|
|
|
bool IsButtonPressed()
|
|
{
|
|
//Button has a pullup, so it reads high normally,
|
|
//and reads low when pressed down
|
|
return !digitalRead(PIN_ENC_PUSH_BUTTON);
|
|
}
|