We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cefc960 commit 85d0ed7Copy full SHA for 85d0ed7
button_input.h
@@ -0,0 +1,10 @@
1
+#ifndef BUTTONINPUT_H_
2
+#define BUTTONINPUT_H_
3
+
4
+#include "nrf_gpio.h"
5
+#define PIN_BUTTON 10
6
+#define PIN_BUTTON2 9
7
+#define isButtonPressed !nrf_gpio_pin_read(PIN_BUTTON)
8
+#define isButton2Pressed !nrf_gpio_pin_read(PIN_BUTTON2)
9
10
+#endif
0 commit comments