This commit is contained in:
Zengtudor 2025-04-12 00:36:39 +08:00
parent 8dfe5c22a8
commit fb3849ae45
3 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#define __OLED_FONT_H
/*OLED字模库宽8像素高16像素*/
const uint8_t OLED_F8x16[][16]=
const static uint8_t OLED_F8x16[][16]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,// 0

View File

@ -12,9 +12,8 @@ int main(){
.OLED_ShowString(3, 1, (char*)"From BDFS")
.OLED_ShowString(4, 1, (char*)" EEC-RPD");
u32 delayTime = 50;
u32 delayTime = 500;
while(true){
delayTime+=1;
leda0.setOn();
ledc13.setOff();
delay_ms(delayTime);

View File

@ -346,6 +346,6 @@ namespace zt{
virtual ~Oled(){
GPIO_DeInit(_GPIOx);
RCC_APB2PeriphClockCmd(_RCC_APB2Periph, DISABLE);
}
}
};
}