AceCommon
1.4.6
Arduino library for low-level common functions and features with no external dependencies
|
#include <stdint.h>
#include <Print.h>
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'. | |
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.