Print::printf

Description

void Print::printf( const char[] text , ... )

Print::printf prints a formatted string to the screen / display / whatever. You can find information on how printf is working over here.

Parameters

  • const char[] text: text to format
  • ...

Returns

none

Example

#include <Gamebuino-Meta.h>

void setup() {
  gb.begin();
}

void loop() {
  if (gb.update()) {
    gb.display.clear();

    // print formatted text
    gb.display.printf("I have %d apples.", 42);
  }
}