# Function arduboy_rust::prelude::serial::print

source ·

    pub fn print(x: impl Serialprintable)

Expand description

The Arduino Serial Print class is available for writing text to the screen buffer.

In the same manner as the Arduino arduboy.print(), etc., functions.

Example

    use arduboy_rust::prelude::*;
    let value: i16 = 42;

    serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
                                           // text cursor to the start of the next line
    serial::print(f!(b"Hello World\n")); // Prints "Hello World" but does not use the 2kb ram
    serial::print(value); // Prints "42"
    serial::print("\n\0"); // Sets the text cursor to the start of the next line
    serial::print("hello world") // Prints normal [&str]