Launchpad的溫度測量及串口發(fā)送
[導(dǎo)讀]1 #include "msp430g2553.h"23 void sendChar(unsigned char c)4 {5 while(!(IFG2&UCA0TXIFG));6 UCA0TXBUF=c;7 }89 void sendStr(unsigned char *s)10 {11 while(*s!='\\0')12 {13 sendChar(
1 #include "msp430g2553.h"
2
3 void sendChar(unsigned char c)
4 {
5 while(!(IFG2&UCA0TXIFG));
6 UCA0TXBUF=c;
7 }
8
9 void sendStr(unsigned char *s)
10 {
11 while(*s!='