Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| int aprintf(char *str, ...) { | |
| int i, j, count = 0; | |
| va_list argv; | |
| va_start(argv, str); | |
| for(i = 0, j = 0; str[i] != '\0'; i++) { | |
| if (str[i] == '%') { | |
| count++; | |
| Serial.write(reinterpret_cast<const uint8_t*>(str+j), i-j); |