main.c 文件
注意,一定要调用OLED_Refresh函数更新显存,不然不会显示的。
#include "stm32f10x.h" // Device header
#include "delay.h"
#include "oled.h"
int main(void)
{
OLED_Init( );
OLED_ShowChar(36,0,'a',12);
OLED_ShowChar(48,0,'b',16);
OLED_ShowChar(64,0,'c',24);
OLED_ShowString( 30, 40, (u8 *)"zzzzz", 16 );
OLED_Refresh( );
while (1)
{
}
} |