2026-05-10 21:35:40 +08:00

26 lines
722 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "bsp_oled.h"
// #include "OLED.h"
void bsp_oled_init(void)
{
OLED_Init();
/*OLED显示*/
// OLED_ShowChar(1, 1, 'A'); //1行1列显示字符A
// OLED_ShowString(1, 3, "HelloWorld!"); //1行3列显示字符串HelloWorld!
// OLED_ShowNum(2, 1, 12345, 5); //2行1列显示十进制数字12345长度为5
// OLED_ShowSignedNum(2, 7, -66, 2); //2行7列显示有符号十进制数字-66长度为2
// OLED_ShowHexNum(3, 1, 0xAA55, 4); //3行1列显示十六进制数字0xA5A5长度为4
// OLED_ShowBinNum(4, 1, 0xAA55, 16); //4行1列显示二进制数字0xA5A5长度为16
// //C语言无法直接写出二进制数字故需要用十六进制表示
}