Skip to content

Commit

Permalink
Library configuration for examples fixed.
Browse files Browse the repository at this point in the history
Projects compile.
Library changes automatically included.
  • Loading branch information
overtone1000 committed Sep 19, 2019
1 parent 7ab7407 commit ad56d11
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Components/Device/examples/uDAQC_Configure/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
default_envs = nodemcu

[env:nodemcu]
lib_extra_dirs = /home/tyler/Dropbox/My Programs/Git Repositories/uDAQC/Components/Device/src, /home/tyler/Dropbox/My Programs/PlatformIO/Libraries/Third Party/
lib_deps =
uDAQC
; to work with development library, just put a symlinc to the library folder in pio global storage and run "pio lib install" for this project; changes will be available to linker and compiler immediately without update
; command for this is: ln -s "/home/tyler/Dropbox/My Programs/Git Repositories/uDAQC/Components/Device/" uDAQC
; a library update will pull the uDAQC library from the server if there's a version discrepancy
platform = espressif8266
;platform = https://github.com/platformio/platform-espressif8266.git ;this is the upstream version
board = nodemcuv2
Expand All @@ -56,6 +60,8 @@ build_flags =
;-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
;-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-D DEBUG_UDAQC ; comment out to get rid of debug output
-D ROUND_WORKAROUND ; workaround for Arduino.h problem, see https://github.com/esp8266/Arduino/issues/5787
-DNDEBUG
upload_speed = 921600 ;can be 115200, 921600

Expand Down
6 changes: 4 additions & 2 deletions Components/Device/examples/uDAQC_Template/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ default_envs = nodemcu

[env:nodemcu]
lib_deps =
uDAQC ; to work with development library, just put a symlinc to the library folder in pio global storage and run "pio lib install" for this project; changes will be available to linker and compiler immediately without update
uDAQC
; to work with development library, just put a symlinc to the library folder in pio global storage and run "pio lib install" for this project; changes will be available to linker and compiler immediately without update
; command for this is: ln -s "/home/tyler/Dropbox/My Programs/Git Repositories/uDAQC/Components/Device/" uDAQC
; a library update will pull the uDAQC library from the server if there's a version discrepancy
platform = espressif8266
;platform = https://github.com/platformio/platform-espressif8266.git ;this is the upstream version
board = nodemcuv2
Expand All @@ -60,7 +63,6 @@ build_flags =
-D DEBUG_UDAQC ; comment out to get rid of debug output
-D ROUND_WORKAROUND ; workaround for Arduino.h problem, see https://github.com/esp8266/Arduino/issues/5787
-DNDEBUG
echo pio lib update ; for development, update the uDAQC library every update
upload_speed = 921600 ;can be 115200, 921600

[env:thing]
Expand Down
10 changes: 9 additions & 1 deletion Components/Device/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
"export": {
"include": "uDAQC"
},
"version": "0.2.4",
"build":
{
"srcFilter":
[
"+<uDAQC.cpp>",
"+<uDAQC.h>"
]
},
"version": "0.3.0",
"frameworks": "arduino",
"platforms": "esp8266"
}
1 change: 1 addition & 0 deletions Components/Device/src/IO/Devices/Bases/IO_Node.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define IO_Node_h

#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <vector>
#include <algorithm>

Expand Down

0 comments on commit ad56d11

Please sign in to comment.