IoT - Modular - Platformio.ini

From The TinkerNet Wiki
Jump to navigation Jump to search
 1 [platformio]
 2 extra_configs   = SugarBush.ini
 3 ; extra_configs   = Environmental.ini
 4 ; extra_configs   = Household.ini
 5 ; extra_configs   = Lab.ini
 6 ; extra_configs   = Tests.ini
 7 
 8 [env]
 9 platform = espressif8266    ; For now, let's stick with the 8266 family MCUs
10 board = d1_mini             ; My custom boards handle flashing in a way that Platformio recognises as a D1-mini
11 
12 framework = arduino         ; One day...  This will change...  I hope.
13 
14 upload_speed = 115200
15 monitor_speed = 115200      ; I like my serial comms fast.  (Without this line you get the default of 9600)
16 
17 extra_scripts =
18         pre:Pre-Compile.py
19         post:Post-Compile.py
20 
21 [common]
22 lib_deps =
23         PubSubClient
24         SimpleTimer
25 
26 src_filter =
27         ; -<*>
28         +<_Common_/>
29 
30 build_flags =
31         -D DEBUG        ; This is just plain handy.  Use it to turn debugging output on/off...
32         ; -D DEBUG0       ; Show WiFi Debug info
33         ; -D DEBUG1       ; Show extra WiFi Debug info
34         -D DEBUG2       ; Show Sensor Debug info
35         -D DEBUG3       ; Show extra Sensor Debug info
36         ; -D DEBUG4       ; Show MQTT Debug info
37         ; -D DEBUG5       ; Show Pixels Debug info
38         ; -D DEBUG6       ; Show Board info
39         -D WAP=3        ; Select the WiFi Access Point. (Might also select servers based on WAP choice)
40                         ; WAP 0  = TinkerToys           (Test setup / Skeeter.tinkerNet.ca)
41                         ; WAP 1  = TinkerToysB          (Victoria Drive setup / SkyNet.tinkerNet.ca)
42                         ; WAP 2  = vanneck              (SugarBush setup / 192.168.0.222)
43                         ; WAP 3  = vanneck              (SugarBush setup / 192.168.0.222)
44                         ; WAP 4  = paradise             (paradise / SkyNet.MillersParadise.ca)
45                         ; WAP 5+ = VictoriaDrive2B      ()
46 
47 [display]
48 lib_deps =
49         Adafruit GFX Library    ; For OLED
50         Adafruit SSD1306        ; For OLED
51         Adafruit BusIO          ; For OLED
52 
53 src_filter =
54         ; -<*>
55         +<Display>
56 
57 build_flags =
58         -D d_SDD1306    ; Enable the SDD1306-based OLED display