Thanks, that’s good news. I’ve already been using the setup with _RK versions of the library, and the examples worked well.
I’ve been working on this this morning, and have had some good success, only seems to be one problem remaining… if I comment out the lines 179-189, it compiles fine and draws the meter graphic correctly, but I don’t know what to do to get the text value to display, looks like a function is missing from the _RK library that would allow the value to print:
tft.drawCentreString(buf, x - 5, y - 20, 6)
I tried to paste in the code from the _AS library for this function and renaming it _RK, but as the errors multiply I get lost!
The project without commenting out the problem lines:
https://go.particle.io/shared_apps/5c61c05512cdf50020e22c68
The missing function in question:
int Adafruit_GFX_AS::drawCentreString(char *string, int dX, int poY, int size)
{
int sumX = 0;
int len = 0;
char *pointer = string;
char ascii;
while(*pointer)
{
ascii = *pointer;
#ifdef LOAD_GLCD
if (size==1)len += 6;
#endif
#ifdef LOAD_FONT2
if (size==2)len += 1+pgm_read_byte(widtbl_f16+ascii-32);
#endif
//if (size==3)len += 1+pgm_read_byte(widtbl_f48+ascii-32)/2;
#ifdef LOAD_FONT4
if (size==4)len += pgm_read_byte(widtbl_f32+ascii-32)-3;
#endif
//if (size==5) len += pgm_read_byte(widtbl_f48+ascii-32)-3;
#ifdef LOAD_FONT6
if (size==6) len += pgm_read_byte(widtbl_f64+ascii-32)-3;
#endif
#ifdef LOAD_FONT7
if (size==7) len += pgm_read_byte(widtbl_f7s+ascii-32)+2;
#endif
#ifdef LOAD_FONT8
if (size==8) len += pgm_read_byte(widtbl_f72+ascii-32)+2;
#endif
*pointer++;
}
len = len*textsize;
int poX = dX - len/2;
if (poX < 0) poX = 0;
while(*string)
{
int xPlus = drawChar(*string, poX, poY, size);
sumX += xPlus;
*string++;
poX += xPlus; /* Move cursor right */
}
return sumX;
}
It feels like I’m close, but I’m also lost!