-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini.dist
More file actions
68 lines (65 loc) · 2.16 KB
/
platformio.ini.dist
File metadata and controls
68 lines (65 loc) · 2.16 KB
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
67
68
; PlatformIO Project Configuration File
; -------------------------------------------------------------------------
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
; Configuration Instructions
; -------------------------------------------------------------------------
;
; All #define statements are included using the build flags below.
; Please rename each <YOUR_XXXX> with your name, then rename
; this file to platform.ini before building with PlatformIO.
; Build Flag Descriptions
; -------------------------------------------------------------------------
;
; DEVICE_NAME
; The hostname of your device for OTA updates.
;
; FRIENDLY_NAME
; Device friendly name for Home Assistant discovery.
;
; COMMON_ANODE
; Indicates whether LED has a common anode (1) or cathode (0).
;
; PWM_RANGE
; The PWM range of the pins as an integer. 256 for Arudino, 1024 for ESP8266.
;
; WIFI_SSID, WIFI_PASS
; The SSID and password required to connect the ESP8266 to your WiFi network.
;
; OTA_PASS
; The password required for OTA authentication when uploading firmware.
;
; MQTT_SERVER, MQTT PORT, MQTT_USER, MQTT_PASS
; MQTT server name and port with login information.
;
; MQTT_TOPIC
; The topic to which the lights will be subscribed for updates.
; e.g. 'lights/fairy_lights'
[env:d1_mini_lite]
platform = espressif8266
board = d1_mini_lite
framework = arduino
upload_port = <YOUR_DEVICE_IP_ADDRESS>
upload_flags = --auth=<YOUR_OTA_PASS>
build_flags =
'-D DEVICE="<YOUR_DEVICE_NAME>"'
'-D FRIENDLY_NAME="<YOUR_FRIENDLY_NAME>"'
'-D COMMON_ANODE=1'
'-D WIFI_SSID="<YOUR_WIFI_SSID>"'
'-D WIFI_PASS="<YOUR_WIFI_PASS>"'
'-D OTA_PASS="<YOUR_OTA_PASS>"'
'-D MQTT_SERVER="<YOUR_MQTT_SERVER>"'
'-D MQTT_PORT=<YOUR_MQTT_PORT>'
'-D MQTT_USER="<YOUR_MQTT_USER>"'
'-D MQTT_PASS="<YOUR_MQTT_PASS>"'
'-D MQTT_TOPIC="<YOUR_MQTT_TOPIC>"'
lib_deps =
bblanchon/ArduinoJson@^7
crankyoldgit/IRremoteESP8266@^2.7.20
knolleary/PubSubClient@^2.8