mirror of
https://github.com/meekrosoft/fff
synced 2026-01-28 18:54:28 +01:00
Moved out test code to seperate directory
This commit is contained in:
34
src/test/embedded.c
Normal file
34
src/test/embedded.c
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
|
||||
void DISPLAY_init();
|
||||
void DISPLAY_clear();
|
||||
int DISPLAY_get_line_capacity();
|
||||
int DISPLAY_get_line_insert_index();
|
||||
void DISPLAY_output_message(char * message);
|
||||
|
||||
void UI_init()
|
||||
{
|
||||
DISPLAY_init();
|
||||
}
|
||||
|
||||
void UI_greet(char * name)
|
||||
{
|
||||
if(DISPLAY_get_line_capacity() == DISPLAY_get_line_insert_index())
|
||||
{
|
||||
DISPLAY_clear();
|
||||
}
|
||||
DISPLAY_output_message(name);
|
||||
}
|
||||
|
||||
void UI_greet_multiple_times(char * name, int times)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < times; i++)
|
||||
{
|
||||
UI_greet(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user