]> git.scottworley.com Git - tattlekey/blobdiff - client/config.h
client: Respond to button press
[tattlekey] / client / config.h
index 97e2f8cfb3be723b1a86808dc26f553f9d83e9d7..95c5651b27ec5881b3d5ebaedd2e0181359f6fb6 100644 (file)
@@ -14,4 +14,11 @@ extern u16_t tattle_port;
 /* For distinguishing reports from multiple tattlekey devices. */
 extern u16_t this_tattler_identity;
 
+/* Which GPIO pin is the button connected to?
+ * The button should span this pin and ground, connecting this pin to ground
+ * when pressed.
+ * https://projects.raspberrypi.org/en/projects/introduction-to-the-pico/10
+ * recommends pins 18, 22, or 28. */
+extern uint button_pin;
+
 #endif