Menu

FDprint

Anonymous

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

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

print(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.
      print(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
        print(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
        print(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)
      print(string)
  • Arguments:
    • const char * string:
    • The string to be printed.
      print(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
        print(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
        print(double,precision)
  • Arguments:
    • double double:
    • The data to be printed.
    • int precision:
    • The number of digits to print past the decimal place (default = 2)

Related

Wiki: FDText
Wiki: FDcomplete
Wiki: FDselectfont
Wiki: Fonts
Wiki: TableOfContents
Wiki: Update

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.