-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.example
66 lines (50 loc) · 1.72 KB
/
config.h.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* copy this file to config.h and edit as necessary */
#define WIFI_SSID "ssid"
#define WIFI_PASS "password"
// Define the WINC1500 board connections below.
// If you're following the Adafruit WINC1500 board
// guide you don't need to modify these:
#define WINC_CS 8
#define WINC_IRQ 7
#define WINC_RST 4
#define WINC_EN 2 // or, tie EN to VCC
// The SPI pins of the WINC1500 (SCK, MOSI, MISO) should be
// connected to the hardware SPI port of the Arduino.
// On an Uno or compatible these are SCK = #13, MISO = #12, MOSI = #11.
// On an Arduino Zero use the 6-pin ICSP header, see:
// https://www.arduino.cc/en/Reference/SPI
/* influxdb settings */
#define LOG_SERVER "influx"
#define LOG_PORT 8086
#define LOG_PATH "/write?db=sump"
/* name to use for measurement */
#define LOG_PARAM "level"
/* how often to write a measurement */
#define UPDATE_INTERVAL 15 /* seconds */
#define UPDATE_MS (UPDATE_INTERVAL*1000)
#define SENSOR_PIN A0
#define SERIES_RESISTOR 560 /* ohms */
#define ADC_LOW 828 /* ADC reading at low level */
#define LOW_LEVEL 2 /* inches */
#define ADC_HIGH 640 /* ADC reading at high level */
#define HIGH_LEVEL 10 /* inches */
#define DISPLAY_SSD1306 /* set if an SSD1306 display is present */
/* SSD1306 defaults to software SPI */
/* Set the following if using hardware SPI */
/* #define DISPLAY_HWSPI */
/* set the following if using I2C */
/* #define DISPLAY_I2C */
/* Set these and modify as needed if using software SPI for the display */
/*
#define OLED_MOSI 9
#define OLED_CLK 10
#define OLED_DC 11
#define OLED_CS 12
#define OLED_RESET 13
*/
/* Set these and modify as needed if using hardware SPI for the display */
/*
#define OLED_DC 6
#define OLED_CS 7
#define OLED_RESET 8
*/