Menu

FDprintPGM

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

These functions will print a string directly from the flash memory. This can be done and should be done when printing a constant string and memory is low. A string may be placed into the flash space by using this function PSTR(string) for instance: printPGM(PSTR("Hello World"))

This function has two separate forms, one that is locationally aware and one that is not both of which are covered in the Use section.

Use

printPGM(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.
      printPGM(x,y,string)
  • Arguments:
    • const char * string:
    • The string to be printed.

Related

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

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.