IoT - Modular - Platformio.ini

From The TinkerNet Wiki
Revision as of 15:18, 30 April 2021 by Tinker (talk | contribs) (Created page with "<syntaxhighlight lang="ini" line="1"> [platformio] extra_configs = SugarBush.ini ; extra_configs = Environmental.ini ; extra_configs = Household.ini ; extra_configs =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
10 ; For now, let's stick with the 8266 family MCUs
11 board = d1_mini
12 
13 framework = arduino
14 
15 upload_speed = 115200
16 monitor_speed = 115200
17 ; I like my serial comms fast.  (Without this line you get the default of 9600)
18 extra_scripts =
19         pre:Pre-Compile.py
20         post:Post-Compile.py
21 
22 [common]
23 lib_deps =
24         PubSubClient
25         SimpleTimer
26 
27 src_filter =
28         ; -<*>
29         +<_Common_/>
30 
31 build_flags =
32         -D DEBUG        ; This is just plain handy.  Use it to turn debugging output on/off...
33         ; -D DEBUG0       ; Show WiFi Debug info
34         ; -D DEBUG1       ; Show extra WiFi Debug info
35         -D DEBUG2       ; Show Sensor Debug info
36         -D DEBUG3       ; Show extra Sensor Debug info
37         ; -D DEBUG4       ; Show MQTT Debug info
38         ; -D DEBUG5       ; Show Pixels Debug info
39         ; -D DEBUG6       ; Show Board info
40         -D WAP=3        ; Select the WiFi Access Point. (Might also select servers based on WAP choice)
41                         ; WAP 0  = TinkerToys           (Test setup / Skeeter.tinkerNet.ca)
42                         ; WAP 1  = TinkerToysB          (Victoria Drive setup / SkyNet.tinkerNet.ca)
43                         ; WAP 2  = vanneck              (SugarBush setup / 192.168.0.222)
44                         ; WAP 3  = vanneck              (SugarBush setup / 192.168.0.222)
45                         ; WAP 4  = paradise             (paradise / SkyNet.MillersParadise.ca)
46                         ; WAP 5+ = VictoriaDrive2B      ()
47 
48 [display]
49 lib_deps =
50         Adafruit GFX Library    ; For OLED
51         Adafruit SSD1306        ; For OLED
52         Adafruit BusIO          ; For OLED
53 
54 src_filter =
55         ; -<*>
56         +<Display>
57 
58 build_flags =
59         -D d_SDD1306    ; Enable the SDD1306-based OLED display