|
Hi Thomas and all. |
Answered by
rokath
Feb 9, 2026
Replies: 1 comment
|
Please see here, Rafi:
Trice was designed mainly for speed. An universal If you need several char* n = "Ann";
char* f = "Fox";
uint8_t dd = 22;
uint8_t mm = 11;
uint16_t yyyy = 1988;
// ...
print( "Name: %12s, Family: %s, Birthday %2u-%02u-%4u\n", n, f, dd, mm, yyyy );you can do: // ...
triceS( "Name: %12s, ", n );
triceS( "Family: %s, ", f );
trice( "Birthday %2u-%02u-%4u\n", dd, mm, yyyy );or also // ...
triceS( "Name: %12s, ", n ); triceS( "Family: %s, ", f ); trice( "Birthday %2u-%02u-%4u\n", dd, mm, yyyy ); |
0 replies
Answer selected by
rokath
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see here, Rafi:
https://github.com/rokath/trice/blob/main/docs/TriceUserManual.md#346-runtime-generated-0-terminated-strings-transfer-with-trices
Trice was designed mainly for speed. An universal
tricelikeprintfwould cost too much runtime and destroy this main Trice advantage.If you need several
%s, like inyou can do:
or also