]>
Commit | Line | Data |
---|---|---|
fbc57595 SW |
1 | #ifndef CONFIG_H |
2 | #define CONFIG_H | |
3 | ||
1e0a316e SW |
4 | #include "lwip/arch.h" |
5 | ||
1d699cc3 | 6 | /* Wi-Fi credentials */ |
fbc57595 SW |
7 | extern char wifi_ssid[]; |
8 | extern char wifi_pass[]; | |
9 | ||
1d699cc3 | 10 | /* Network address of the server to contact */ |
1e0a316e | 11 | extern char tattle_server_ip_address[]; |
1d699cc3 | 12 | extern u16_t tattle_port; |
1e0a316e | 13 | |
1d699cc3 | 14 | /* For distinguishing reports from multiple tattlekey devices. */ |
1e0a316e SW |
15 | extern u16_t this_tattler_identity; |
16 | ||
d1521eda SW |
17 | /* Which GPIO pin is the button connected to? |
18 | * The button should span this pin and ground, connecting this pin to ground | |
19 | * when pressed. | |
20 | * https://projects.raspberrypi.org/en/projects/introduction-to-the-pico/10 | |
21 | * recommends pins 18, 22, or 28. */ | |
22 | extern uint button_pin; | |
23 | ||
2f7a1e89 SW |
24 | /* Don't bother reporting each separate button press when it is pressed many |
25 | * times in short succession. (We also use this to de-bounce. :) */ | |
26 | extern u32_t minimum_microseconds_between_button_presses; | |
27 | ||
ff379463 SW |
28 | /* Send each report multiple times. */ |
29 | extern uint resend_count; | |
30 | extern u32_t resend_interval_ms; | |
31 | ||
fbc57595 | 32 | #endif |