Page 284 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 284
LCD_clear ();
LCD (line4," *ANG","DUDAMA*");
//GLCD_Test();
//TESTGLCD(a.tag);
}
void init_All_Periph ()
{
RCC_Configuration ();
NVIC_Configuration ();
GPIO_Configuration ();
USART1_Configuration();
USART2_Configuration();
}
int main (void)
{
init_All_Periph ();
Display ();
delay(100);
LCD (line4,"","");
LCD (line9," GRAM"," WON"); //일정시간 뒤에 다음 문자열이 출력된다.
while (1)
{
}
}
2. USRAT.c
원하는 문자열을 반환하기 위해 함수내로 진입할 때마다 값을 계산하는 변수 내에 가격이 더
해지도록 작성하였다. 이 때 가격은 상수이므로 숫자를 문자로 반환하는 함수를 추가로 작성
하였다.
상세 내용은 주석문으로 기술한다.
#include "stm32f10x.h"
#include "USART.h"
#include "GLCD.h"
#include "interrupt.h"
#include <stdio.h>
- 277 -