ARM clcd text
페이지 정보

본문
char sbuf[16]={0};
char count = 0;
CLCD_Init(16,2);
CLCD_Clear();
CLCD_Puts(0,0,"suwon in jae");
CLCD_Puts(0,1,"display number");
HAL_Delay(1000);
while (1){
sprintf(sbuf,"count num2 = %3d",count);
CLCD_Puts(0,1,sbuf);
if(count >= 100) count = 0;
else count++;
HAL_Delay(500);
}
char count = 0;
CLCD_Init(16,2);
CLCD_Clear();
CLCD_Puts(0,0,"suwon in jae");
CLCD_Puts(0,1,"display number");
HAL_Delay(1000);
while (1){
sprintf(sbuf,"count num2 = %3d",count);
CLCD_Puts(0,1,sbuf);
if(count >= 100) count = 0;
else count++;
HAL_Delay(500);
}
- 이전글전자기사(공개문제) 25.05.13
- 다음글교육용 자료_BSP 25.05.06