Serial.printf

From Pinguino-Wiki
Jump to: navigation, search


Contents

Name

Serial.printf

Description

Serial.printf sends a formatted string to the current serial port.

It uses printf.c, a new implementation of the stdlib library (stdlib.c).

This new library provides simple and small printf functionality for use in embedded systems.

The formats supported by this implementation are: 'd' 'u' 'b' 'o' 'c' 's' 'x' 'X' and 'f'.

Zero padding and field width are also supported.

Since
Beta 9.5

Formats

See Printf.

Example

See Printf.

Bugs

See Printf.

See also

Printf for all supported formats.
Sprintf

Serial.getString     Serial.print     Serial.printf
Serial.println       Serial.read      Serial.write

CDC.getString        CDC.print        CDC.printf
CDC.println          CDC.read         CDC.write
CDC.getKey

lcd.print

Comments

Personal tools