AceCommon  1.5.2
Arduino library for low-level common functions and features with no external dependencies
Functions
printPadTo.h File Reference

Various function that prints a uint16_t integer using N decimal places, padded with a space or 0 character. More...

#include <stdint.h>
#include <Print.h>
Include dependency graph for printPadTo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ace_common::printPad2To (Print &printer, uint16_t value, char padChar=' ')
 Print an unsigned 2-digit integer to 'printer'.
 
void ace_common::printPad3To (Print &printer, uint16_t val, char padChar=' ')
 Print an unsigned 3-digit integer to 'printer'.
 
void ace_common::printPad4To (Print &printer, uint16_t val, char padChar=' ')
 Print an unsigned 4-digit integer to 'printer'.
 
void ace_common::printPad5To (Print &printer, uint16_t val, char padChar=' ')
 Print an unsigned 5-digit integer to 'printer'.
 

Detailed Description

Various function that prints a uint16_t integer using N decimal places, padded with a space or 0 character.

For example, ‘printPad3To(Serial, 7, '0’)` will print "007" on the Serial monitor.

Definition in file printPadTo.h.