/***************************************** * Sample hello world plugin * Copyright: Travis Sidelinger (2006May01) * License: * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Descr: * This is a simple plugin to get the right and left volume register * values and display them. This plugin will also wait for the off * key press to exit. ****************************************/ #include "plugin.h" static struct plugin_api* rb; enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { /* Variables */ TEST_PLUGIN_API(api); (void)parameter; rb = api; char buf[15]; /* Main */ rb->splash(HZ*2, true, "Devry Project"); rb->lcd_clear_display(); rb->lcd_putsxy(0,0,"Hello World"); rb->snprintf(buf, sizeof(buf), "%d", 42); rb->lcd_putsxy(6,0,buf); rb->lcd_update(); /* End */ return(PLUGIN_OK); }