This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name EXTERNAL_THINGSBOARD_DOMAIN.com; | |
if ($scheme != "https") { | |
return 301 https://$host$request_uri; | |
} # managed by Certbot | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEBOUNCE 10 // how many ms to debounce, 5+ ms is usually plenty | |
//define the buttons that we'll use. | |
byte buttons[] = {4, 5, 6, 7, 8, 9}; | |
//determine how big the array up above is, by checking the size | |
#define NUMBUTTONS sizeof(buttons) | |
//track if a button is just pressed, just released, or 'currently pressed' | |
byte pressed[NUMBUTTONS], justpressed[NUMBUTTONS], justreleased[NUMBUTTONS]; |