Arduino Due project. I am trying to utilize the UART interrupt, which gets taken in various places in the Arduino core framework files. Thus, I have copied the framework files to my /lib/ directory and edited the necessary ones. However, when I try to include those libraries, it still includes the ones from my .platformio/packages directory.
Here is my platformio.ini:
[env:due]
platform = atmelsam
board = dueUSB
framework = arduino
lib_deps=
pololu/LSM6@^2.0.1
pololu/LIS3MDL@^2.0.0
monitor_speed = 9600
lib_extra_dirs = lib
lib_ignore = framework-arduino-sam
build_flags = -ILib/lib/custom-arduino-framework/variants/arduino_due_x,
-ILib/lib/custom-arduino-framework/cores/arduino,
-ILib/lib/custom-arduino-framework/libraries/SPI/src,
-ILib/lib/custom-arduino-framework/libraries/Wire/src,
-I lib
Here is a screenshot of my directory structure:
I have tried the following, neither of which worked.
#include "Arduino.h"
pulls from /.platformio/packages.
#include "/lib/custom-arduino-framework/Arduino.h"
cannot be found.
Interestingly, a file that I created and does not have a naming conflict with anything in the original packages directory includes just fine:
#include "custom_uart_handler.h"