Launchpad的温度测量及串口发送
时间:2018-08-22 18:40:02
手机看文章
扫描二维码
随时随地手机看文章
[导读]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!='