1
0
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:
Mike Long
2010-12-12 20:17:48 +01:00
parent 5def7f1fd3
commit 4fbd1e40fe
6 changed files with 0 additions and 202 deletions

34
src/test/embedded.c Normal file
View 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);
}
}