Microchip® Advanced Software Framework

example_sysfont.c File Reference

Example application for GFX Monochrome System Font (sysfont)

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Macros

#define LINES   8
 

Functions

int main (void)
 Main entry of example application. More...
 

Variables

char string [LINES][24]
 

#define LINES   8

Referenced by main().

int main ( void  )

Main entry of example application.

Starts off by initializing the system clock before configuring the board and the monochrome graphical system.

After initialization the example will write the Star Wars opening scrolling text. Use the system font sysfont. Afterwards the text will be scrolled forever.

References delay_ms, gfx_mono_draw_string(), gfx_mono_init, LINES, ssd1306_set_display_start_line_address(), sysfont, and system_init().

char string[LINES][24]
Initial value:
= {
{" PASSION \r\n"},
{" INTEGRITY \r\n"},
{" TEAMWORK \r\n"},
{" ACHIEVEMENT \r\n"},
{" ACCOUNTABILITY \r\n"},
{" \r\n"},
{" \r\n"},
{" \r\n"},
}

Referenced by uhc_dev_get_string().