rads

Energia - TivaC - Kenetc Display (SPI)

4 posts in this topic

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?

 

Share this post


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.

Fmilburn and bluehash like this

Share this post


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.

bluehash likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now