generated from Zengtudor/stm32F10xExp
update
This commit is contained in:
parent
8dfe5c22a8
commit
fb3849ae45
@ -3,7 +3,7 @@
|
|||||||
#define __OLED_FONT_H
|
#define __OLED_FONT_H
|
||||||
|
|
||||||
/*OLED字模库,宽8像素,高16像素*/
|
/*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,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,// 0
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,// 0
|
||||||
|
@ -12,9 +12,8 @@ int main(){
|
|||||||
.OLED_ShowString(3, 1, (char*)"From BDFS")
|
.OLED_ShowString(3, 1, (char*)"From BDFS")
|
||||||
.OLED_ShowString(4, 1, (char*)" EEC-RPD");
|
.OLED_ShowString(4, 1, (char*)" EEC-RPD");
|
||||||
|
|
||||||
u32 delayTime = 50;
|
u32 delayTime = 500;
|
||||||
while(true){
|
while(true){
|
||||||
delayTime+=1;
|
|
||||||
leda0.setOn();
|
leda0.setOn();
|
||||||
ledc13.setOff();
|
ledc13.setOff();
|
||||||
delay_ms(delayTime);
|
delay_ms(delayTime);
|
||||||
|
@ -346,6 +346,6 @@ namespace zt{
|
|||||||
virtual ~Oled(){
|
virtual ~Oled(){
|
||||||
GPIO_DeInit(_GPIOx);
|
GPIO_DeInit(_GPIOx);
|
||||||
RCC_APB2PeriphClockCmd(_RCC_APB2Periph, DISABLE);
|
RCC_APB2PeriphClockCmd(_RCC_APB2Periph, DISABLE);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user