main.c主函数部分代码:
#include "stm32f10x.h" // Device header #include "Delay.h" #include "OLED.h" int main(void) { OLED_Init(); while(1) { OLED_ShowChar(1,1,'A'); OLED_ShowString(1,3,"hello"); OLED_ShowNum(2,1,12345,5); OLED_ShowSignedNum(2,7,-65,2); OLED_ShowHexNum(3,1,0xAA55,4); OLED_ShowBinNum(4,1,0xAA55,16); } }