Jump to content

Energia - TivaC - Kenetc Display (SPI)

Recommended Posts

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?


Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...