Lydia - Printhead
Loading...
Searching...
No Matches
utils.h File Reference
#include <Arduino.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void printHex (uint8_t *data, uint8_t length)
 

Function Documentation

◆ printHex()

void printHex ( uint8_t * data,
uint8_t length )

Definition at line 3 of file utils.cpp.

4{
5 for (int i = 0; i < length; i++)
6 {
7 if (data[i] < 0x10)
8 {
9 Serial.print("0");
10 }
11 Serial.print(data[i], HEX);
12 Serial.print(" : ");
13 }
14 Serial.println(" ");
15}
Definition xtimer.h:21