[PIC32/SAM] OLED12864 I2C显式示例

[复制链接]
1967|20
 楼主| wiba 发表于 2019-7-25 13:40 | 显示全部楼层
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;
        }
    }
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 在线客服 返回列表 返回顶部