app.c中调用
#include "oled12864.h"
void APP_Tasks ( void )
{
/* Check the application's current state. */
switch ( appState )
{
/* Application's initial state. */
case APP_STATE_INIT:
{
bool appInitialized = true;
if (appInitialized)
{
Uart_Initial();
Uart_printf("System Initial!\n");
IIC_Initial();
OLED12864_Initial();
OLED12864_ShowStr(3,2,"Hello Delta",1);
OLED12864_Printf("hello");
appState = APP_STATE_SERVICE_TASKS;
}
break;
}
case APP_STATE_SERVICE_TASKS:
{
break;
}
/* TODO: implement your application state machine.*/
/* The default state should never be executed. */
default:
{
/* TODO: Handle error in application's state machine. */
break;
}
}
}
|