TouchGFX: snprintf Buffer & Size Undeclared
Hello,
I am running a TouchGFX compiled code and am attempting to display a value from my code onto the LCD screen. I used the Tutorial 2 format for using the Unicode:snprintf function, but I am getting an error.
"TEXTLED_STATUS_SIZE" was not declared in this scope.
"textLED_StatusBuffer" was not declared in this scope.
I have included a screenshot of my TouchGFX Designer properties, showing that the name textLED_Status is correct.
Additionally, I have included the snippet of my code:
void Screen1View::UpdateLED(uint32_t value){
Unicode::snprintf(textLED_StatusBuffer, TEXTLED_STATUS_SIZE, "%d", value);
// Invalidate text area, which will result in it being redrawn in next tick.
textLED_Status.invalidate();
}I ran Tutorial 2 separately and this issue did not occur.
What would cause this?
