Yes is quite easy, you have to instantiate a new module.
Go in the folder modules and create two files:
helloworld.c
helloworld.cfg
include only:
#include <openchronos.h>
/* driver */
#include <drivers/display.h>
then:
void helloworld_init()
{
menu_add_entry(NULL, NULL,
NULL,
NULL,
NULL, NULL,
&hello_activated,
&hello_deactivated);
}
then:
static void hello_activated()
{
/* Force redraw of the screen */
display_chars(NULL, LCD_SEG_L1_1_0, (uint8_t*)"ERR", SEG_SET)'
refresh_screen();
}
static void hello_deactivated()
{
/* clean up screen */
display_clear(NULL, 1);
}
compile and enjoy.
Feel free to contact me if you get trouble!
--
Dr. Paolo Di Prodi