printf
Debug function for text output
Syntax: printf(const format[], Fixed, _:...)
constformat[] array with formatting text...variable arguments used to feed into formatting text
Notes: This function works similar as standard printf function, only there is just a subset of format specifiers:
%sinserts a string that can be either packed or unpacked%dsigned integer number%xhexadecimal number%Xhexadecimal number%ccharacter
Example:
printf("%s\r\n",data)printf("%s\r\n",data)printf("this is %d, this is text %s\r\n",number, data)printf("0x%08x\r\n",hexnumber)
See also: snprintf
Last updated