ARM IDE_clcd PROGRAM SOURCE
페이지 정보

본문
#include "main.h"
#include "string.h"
#include <stdio.h>
#include "clcd\clcd.h"
int main(void){
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_USART3_UART_Init();
CLCD_Init(16,2);
CLCD_Puts(0,0,"hello_yoon");
CLCD_Puts(0,1,"suwon stti");
HAL_Delay(1000);
CLCD_Clear();
char sBuf[16]={0};
char count = 0;
CLCD_Puts(0,0,"suwon in jae tech");
while (1){
sprintf(sBuf,"count num = %3d", count);
CLCD_Puts(0,1,sBuf);
if(count >= 100) count = 0;
else count++;
HAL_Delay(100);
HAL_GPIO_TogglePin(LD2_GPIO_Port,LD2_Pin);
HAL_Delay(100);
HAL_GPIO_TogglePin(LD1_GPIO_Port,LD1_Pin);
HAL_Delay(100);
}}
#include "string.h"
#include <stdio.h>
#include "clcd\clcd.h"
int main(void){
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_USART3_UART_Init();
CLCD_Init(16,2);
CLCD_Puts(0,0,"hello_yoon");
CLCD_Puts(0,1,"suwon stti");
HAL_Delay(1000);
CLCD_Clear();
char sBuf[16]={0};
char count = 0;
CLCD_Puts(0,0,"suwon in jae tech");
while (1){
sprintf(sBuf,"count num = %3d", count);
CLCD_Puts(0,1,sBuf);
if(count >= 100) count = 0;
else count++;
HAL_Delay(100);
HAL_GPIO_TogglePin(LD2_GPIO_Port,LD2_Pin);
HAL_Delay(100);
HAL_GPIO_TogglePin(LD1_GPIO_Port,LD1_Pin);
HAL_Delay(100);
}}
첨부파일
-
IDE_CLCD_program source.txt (694byte)
1회 다운로드 | DATE : 2025-06-20 15:31:25
- 이전글전자회로설계_or cad library 25.06.28
- 다음글IDE_usart sirial commution 25.06.20