mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-10-28 14:47:23 -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);
|
||
|
}
|