/* use this function for a graphic display */ int drv_PICGraphic_quit2(const int quiet) { info("%s: shutting down.", Name); /* clear display */ drv_generic_graphic_clear(); drv_generic_gpio_quit(); /* say goodbye... */ if (!quiet) { drv_generic_graphic_greet("goodbye!", NULL); } info("freeing framebuffer"); free(fbPG); drv_generic_graphic_quit(); debug("closing connection"); drv_PICGraphic_close(); return (0); }
/* close driver & display */ int drv_MO_quit(const int quiet) { info("%s: shutting down display.", Name); drv_generic_text_quit(); drv_generic_gpio_quit(); /* clear display */ drv_MO_clear(); usleep(300000); /* say goodbye... */ if (!quiet) { drv_generic_text_greet("goodbye!", NULL); } usleep(300000); drv_generic_serial_close(); return (0); }