2022-11-09 11:28 PM
hi,i have a 3 data in a array like uint_8 pda[3] ={1,2,3);
i want to print each on next line
so how i can put next line character in textarea
2022-11-10 12:48 AM
Hello MA.2,
I think something like this should work :
uint8_t pda[3] = {1,2,3};
for (int i = 0 ; i<3 ; i++)
{
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%s%d\n", textArea1Buffer, pda[i]);
textArea1.invalidate();
}
The idea is to rewrite in the same buffer each time you enter the loop, adding a new value of your array and a backspace. Don't forget to check "Use wildcard buffer" for your textArea and set the wildcard range :)
/Osman
2022-11-10 08:00 AM
thanks i undestand
2022-11-14 01:11 AM
You're welcome :)
Can you select the best answer and close this thread? That would help other people looking for a solution to a same problem.
/Osman
2022-11-14 01:12 AM
how i do i dont see any icon