Crowpanel 7" - examples projects won't compile

I've been struggling to get anything useful going on my Crowpanel... as soon as I try anything do do with touch or having graphics. I've tried various examples with different errors, but lets take the example from this page https://www.elecrow.com/wiki/CrowPanel_ESP32_Terminal_RGB_with_Arduino_IDE.html?srsltid=AfmBOoo-YkCFT0QWGa6RqqLdJwG-VCta26r2sTdbfbqdhYuCtWEg5wP4#example-1-switch-color-screen
I've downloaded the project, opened it in Arduino IDE 2.3.6, installed the library package, and downgraded my esp32 package in the boards manager to 2.0.14... I can't remember if it tells me to do that in this example of others. It's hard to tell as I'm losing track of the amount of examples I've tried along with the will to live ;)

So in that particular example we're hit by the error

In file included from /Users/wayneandrews/Downloads/squareline_example/squareline_example.ino:106:
/Users/wayneandrews/Downloads/squareline_example/touch.h: In function 'void touch_init()':
/Users/wayneandrews/Downloads/squareline_example/touch.h:117:12: error: no matching function for call to 'TAMC_GT911::begin()'
   ts.begin();
            ^
In file included from /Users/wayneandrews/Downloads/squareline_example/touch.h:54,
                 from /Users/wayneandrews/Downloads/squareline_example/squareline_example.ino:106:
/Users/wayneandrews/Documents/Arduino/libraries/gt911-arduino-main/TAMC_GT911.h:155:10: note: candidate: 'void TAMC_GT911::begin(uint8_t)'
     void begin(uint8_t _addr);
          ^~~~~

it feels like I must be doing something fundamentally wrong to not be able to get this compiled, but I can't tell what!

Comments

  • Dear CurryKitten,
    I hope you are doing well. Thank you for reaching out. Sorry for the inconvinience caused.

    Our technical support team is currently looking into the issue in your message. Please be patient, and we will get back to you as soon as possible.

    Thanks! Have a nice day!

  • Dear CurryKitten,
    The link of the wiki you are looking at does not match the product you are using, so an error will be reported. Please read the Wiki tutorial of your product and use the corresponding code.
    You can select the product on the left side of the wiki website:

  • edited June 5

    Hello there,
    Apologies if I was in the wrong code, I thnk I ended up there after trying everything else! Ok so I went to this page https://www.elecrow.com/wiki/ESP32_Display_7.0-inch_HMI_Arduino_Tutorial.html and downloaded the example code from this link https://www.elecrow.com/download/product/CrowPanel/ESP32-HMI/7.0-DIS08070H/Arduino_Tutorial/example_code.zip I downloaded the libraries from here https://www.elecrow.com/download/product/CrowPanel/ESP32-HMI/7.0-DIS08070H/Arduino_Tutorial/libraries.zip and unzipped and placed them into my Arduino/libraries folder. I pretty much get the same error:

    In file included from /Users/wayneandrews/Downloads/example_code 2/crowpanel-esp32-7.0/crowpanel-esp32-7.0.ino:95:
    /Users/wayneandrews/Downloads/example_code 2/crowpanel-esp32-7.0/touch.h: In function 'void touch_init()':
    /Users/wayneandrews/Downloads/example_code 2/crowpanel-esp32-7.0/touch.h:117:11: error: no matching function for call to 'TAMC_GT911::begin()'
      117 |   ts.begin();
          |   ~~~~~~~~^~
    In file included from /Users/wayneandrews/Downloads/example_code 2/crowpanel-esp32-7.0/touch.h:54:
    /Users/wayneandrews/Documents/Arduino/libraries/gt911-arduino-main/TAMC_GT911.h:155:10: note: candidate: 'void TAMC_GT911::begin(uint8_t)'
      155 |     void begin(uint8_t _addr);
          |          ^~~~~
    /Users/wayneandrews/Documents/Arduino/libraries/gt911-arduino-main/TAMC_GT911.h:155:10: note:   candidate expects 1 argument, 0 provided
    

    I can see GT911 in the library files I downloaded in the folder gt911-arduino-main and in the TAMC_GT911.cppm the begin method does indeed want a parameter:

    void TAMC_GT911::begin(uint8_t _addr) {
      addr = _addr;
      Wire.begin(pinSda, pinScl);
      reset();
    }
    
  • Dear CurryKitten,
    I hope you are doing well. Thank you for reaching out. Sorry for the inconvinience caused.

    Our technical support team is currently looking into the issue in your message. Please be patient, and we will get back to you as soon as possible.

    Thanks! Have a nice day!

  • edited June 11

    Dear CurryKitten,

    Which esp32 version did you install? Please makesure to install esp32 version 2.0.14/2.0.15. Installing other versions will cause errors. Please refer to this link for installation instructions:
    https://www.elecrow.com/wiki/Get_Started_with_Arduino_IDE.html#add-development-board

Sign In or Register to comment.