Lydia - Printhead
Loading...
Searching...
No Matches
debug.h File Reference

Go to the source code of this file.

Functions

void printStringAsHex (const char *str)
 

Function Documentation

◆ printStringAsHex()

void printStringAsHex ( const char * str)

Definition at line 4 of file debug.h.

5{
6 Serial.print(" :: ");
7 for (int i = 0; str[i] != '\0'; i++)
8 {
9 Serial.print("0x");
10 if (str[i] < 0x10)
11 {
12 Serial.print("0");
13 }
14 Serial.print(str[i], HEX);
15 Serial.print(" ");
16 }
17 Serial.println(" :: ");
18}
Definition xtimer.h:21