Forum Rule: Always post complete source code & details to reproduce any issue!
-
Error when including CapSense and ili9341 libraries in same sketch with t4.1
Hello, I think I’ve found a weird bug: if you include both capacitiveSensor.h and ILI9341_t3.h libraries to a code fora teensy 4.1 it won’t compile. It seems that both libraries use the same variables or so. To get the error message just include both libraries to a blank sketch. Problem is, that I want to use a cap sense and a ili9341 display. Any other capacitive sensing solutions? I’ve downloaded FastTouch.h but can’t find any instructions on how to wire things up with this librarie...
Greetings from Germany!
Phil.
-
Senior Member+
@Phil Sznyck
Gave it a try. I get the errors if I include CapcitiveSensor.h before ILI9341_t3.h. However, if I reverse it to:
Code:
#include <ILI9341_t3.h>
#include <CapacitiveSensor.h>
sketch will compile without errors. Might give that a try before getting more complicated solution.
-
Wow, it works for me also! That’s weird... thank you for the quick solution!
-
It looks like there are conflicting defines.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules