TouchGfx - Adding '%' as a Wildcard Character
Hey,
I'm trying to add '%' as a wildcard character for a value that will passed through as, for example, 50%, for a battery level in a status bar container.
I have the value set up as a single use resource that uses a topology where the wildcard range/characters are set as 0-9/% respectively, and is written via a buffer with sprintf, as follows:
Unicode::snprintf(txtBatteryBuffer, TXTBATTERY_SIZE, "%d%%", chargeLevel);
txtBattery.invalidate();
I believe the % should be appended to my chargeLevel int in the formatting of the string here. Unfortunately I only see the numbers in GUI and no '%' still.
Any advice would be much appreciated, perhaps my appending of % is wrong?
Thanks,
