rads 1 Posted March 14, 2017 Share Posted March 14, 2017 I am working on the Tiva C Launchpad with Energia. The BoosterPack I am using is the Kentec graphic display with SPI (BOOSTXL-K350VG-S1).As discussed earlier in the forum, I have removed resistor R10 on the Launchpad. My Energia version is 1.6.10E18. With the inbuilt library for Kentec, the graphics and text functions are working fine. But the Touch function, getTouch fails to compile, throwing up the error 'No matching function for call to 'Screen_K35_SPI::getTouch(uint16_t*,uint16_t*,uint16_t*). Can any one help out? Quote Link to post Share on other sites
Rei Vilo 695 Posted March 14, 2017 Share Posted March 14, 2017 Best way is to open the related header file and search for getTouch(). Which example are you trying to compile? Does the main sketch include #include <LCD_screen.h> #include <LCD_screen_font.h> #include <LCD_utilities.h> #include <Terminal12e.h> #include <Terminal6e.h> #include <Terminal8e.h> This is an unpleasant requirement from Arduino / Energia: all the libraries need to be listed on the main sketch. Fmilburn and bluehash 2 Quote Link to post Share on other sites
rads 1 Posted March 15, 2017 Author Share Posted March 15, 2017 Solved. I have included all the libraries. The problem was in calling the getTouch function. I declared x,y,z as variables of type unsigned short and called the getTouch with x,y,z as parameters. The compilation was successful and the getTouch returns true on touching the screen and fills in the x,y,z values. bluehash 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted March 15, 2017 Share Posted March 15, 2017 The library comes with a Reference Manual, with documentation for all functions. Have you had a look at it? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.