-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport_env.example.py
30 lines (29 loc) · 1.36 KB
/
import_env.example.py
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
Import("env")
env.Append(CPPDEFINES=[
("WIFI_SSID", "ssid"),
("WIFI_PASSWORD", "pass"),
("TFT_MISO", "19"), # shared with VS1053, touch controller & TFT controller
("TFT_MOSI", "23"), # shared with VS1053, touch controller & TFT controller
("TFT_SCLK", "18"), # shared with VS1053, touch controller & TFT controller
("TFT_CS", "17"),
("TFT_RST", "-1"), # tied to enable
("TFT_DC", "16"),
("TFT_BL", "21"), # backlight pin
("TFT_TOUCH_IRQ_PIN", "32"),
("VS_CS_PIN", "5"), # VS1053 chip select pin
("VS_DCS_PIN", "22"), # VS1053 DCS pin
("VS_DREQ_PIN", "4"), # VS1053 DREQ pin
("IR_PIN", "25"),
("TOUCH_CS", "33"), # enable touch support, chip select
("USER_SETUP_LOADED", "1"), # to make sure the above variables are not marked duplicate
("ILI9341_DRIVER", "1"),
("SMOOTH_FONT", "1"), # to make sure we can load fonts
("SPI_FREQUENCY", "40000000"), # to make sure fonts are not pixelated
("SPI_READ_FREQUENCY", "20000000"),
("SPI_TOUCH_FREQUENCY", "2500000"),
("MQTT_ENABLED"), # enable/disable mqtt
("MQTT_HOST", "iotfreezer.com"), # mqtt hostname
("MQTT_PORT", "1883"), # mqtt port
("MQTT_UPSTREAM_TOPIC", "radios/upstream/5ab8d5a9-37f9-420f-b1d3-663ca3a41e68"), # mqtt upstream topic name
("MQTT_DOWNSTREAM_TOPIC", "radios/downstream/5ab8d5a9-37f9-420f-b1d3-663ca3a41e68"), # mqtt downstream topic name
])