Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Error when including CapSense and ili9341 libraries in same sketch with t4.1

  1. #1
    Junior Member
    Join Date
    Apr 2020
    Posts
    19

    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.

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,229
    @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.

  3. #3
    Junior Member
    Join Date
    Apr 2020
    Posts
    19
    Wow, it works for me also! Thatís weird... thank you for the quick solution!

  4. #4
    Senior Member
    Join Date
    Mar 2017
    Location
    Oakland, CA, USA
    Posts
    474
    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
  •