/*============================================================================= * File: main.c * Summary: The main() routine here merely illustrates the usage of the * dogm16x display driver for the Microchip PIC32 family of * microcontrollers. See dogm16x.c for details on the driver * routines. * Created: September 12, 2010 [v.1.0] * Last change: September 12, 2010 [v.1.0] * Author: Fredrik Jonsson * * Copyright (C) 2010, Fredrik Jonsson * Non-commercial copying welcome. *===========================================================================*/ #include /* To access sprintf() in the driver example */ #include /* To access sin() in the driver example */ #include "dogm16x.h" int main(void) { char buf[128]; float x=0.4711; initialize_display(); clear_display(); write_string_to_display("Hello World!\n"); /* 1st row of display */ sprintf(buf,"sin(%f)=%f\n",x,sin(x)); write_string_to_display(buf); /* 2nd row of display */ while(1); /* Infinite loop */ }