-
|
Hi Thomas and all. |
Beta Was this translation helpful? Give feedback.
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 ); |
Beta Was this translation helpful? Give feedback.
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