Required Setup
To use any of the printing functions select_font(font) must be called with one of the following included fonts or a custom user font set.
- font4x6
- font6x8
- font8x8
- font8x8ext
To create a custom font see the Fonts for instructions on how to create fonts.
Details
These functions will all print out the specified data or string then go to the next viable text line with an x position of 0.
This function has several different forms all covered in the use section. There is also a locationally aware version and a automatic version.
When using these functions the base and precision do not have to be specified.
Use
println(x,y,string)
- Arguments:
- uint8_t x:
- The x location to print at.
- uint8_t y:
- The y location to print at.
- const char
*
string:
- The string to be printed.
println(x,y,char,base)
- Arguments:
- uint8_t x:
- The x location to print at.
- uint8_t y:
- The y location to print at.
- char or unsigned char char:
- The data to print.
- int base:
- The base to print in:
- BYTE = 0 (default)
- DEC = 10
- HEX = 16
println(x,y,int,base)
- Arguments:
- uint8_t x:
- The x location to print at.
- uint8_t y:
- The y location to print at.
- int or unsigned int or long or unsigned long int:
- The data to print.
- int base:
- The base to print in:
- BYTE = 0
- DEC = 10 (default)
- HEX = 16
println(x,y,double,precision)
- Arguments:
- uint8_t x:
- The x location to print at.
- uint8_t y:
- The y location to print at.
- double double:
- The data to be printed.
- int precision:
- The number of digits to print past the decimal place (default = 2)
println(string)
- Arguments:
- const char
*
string:
- The string to be printed.
println(char,base)
- Arguments:
- char or unsigned char char:
- The data to print.
- int base:
- The base to print in:
- BYTE = 0 (default)
- DEC = 10
- HEX = 16
println(int,base)
- Arguments:
- int or unsigned int or long or unsigned long int:
- The data to print.
- int base:
- The base to print in:
- BYTE = 0
- DEC = 10 (default)
- HEX = 16
println(double,precision)
- Arguments:
- double double:
- The data to be printed.
- int precision:
- The number of digits to print past the decimal place (default = 2)