📄 main.c
字号:
/****************************************Copyright (c)**************************************************
** Shandong University ISE School.
** ISE MCU LAB
** http://www.ise.sdu.edu.cn
**
**--------------File Info-------------------------------------------------------------------------------
** File name: main.c
** Last modified Date: 2008-08-22
** Last Version: 2.0
** Descriptions: The main() function example template
**
**------------------------------------------------------------------------------------------------------
** Created by: bailiang
** Created date: 2008-08-21
** Version: 2.0
** Descriptions: The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions: ds18b20 在easyarm串口led显示
**
********************************************************************************************************/
#include "config.h"
#include "Uart.h"
extern uint8 TEMP1;
extern uint8 TEMP0;
extern void gettemper(void);
int main(void)
{
UARTInit();
while(1)
{
gettemper();
UART0SendByte(TEMP1/10+'0');
UART0SendByte(TEMP1%10+'0');
UART0SendByte(TEMP0+'0');
UART0SendStr("\r\n");
}
}
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -