標(biāo)題:
stm32溫度傳輸源程序如何加入 藍牙wifi通訊 求幫助
[打印本頁]
作者:
sang6666
時間:
2019-10-6 17:13
標(biāo)題:
stm32溫度傳輸源程序如何加入 藍牙wifi通訊 求幫助
stm32藍牙wifi溫度傳輸電路原理圖如下:
0.png
(51.69 KB, 下載次數(shù): 32)
下載附件
2019-10-7 00:41 上傳
單片機源程序如下:
#include "sys.h"
#include "usart.h"
#include "delay.h"
#include "led.h"
#include "ds18b20.h"
int main(void)
{
short temp;
Stm32_Clock_Init(9);//系統(tǒng)時鐘設(shè)置
delay_init(72); //延時初始化
uart_init(72,9600); //串口1初始化
LED_Init(); //LED初始化
while(DS18B20_Init())//初始化DS18B20,兼檢測18B20
{
LED0=!LED0;//DS0閃爍
delay_ms(10);
}
while(1)
{
temp=DS18B20_Get_Temp();
if(temp<0)
{
temp=-temp;
//LCD_ShowChar(140,150,'-',16,0);//顯示負號
printf("-");
}
//LCD_ShowNum(148,150,temp/10,2,16);//顯示溫度值
//LCD_ShowNum(172,150,temp%10,1,16);//顯示溫度值
//printf(temp/10+0x30);
//printf(temp%10+0x30);
printf("%d",temp/10);
printf(".");
printf("%d",temp%10);
printf(" 'C");
printf("\n");
delay_ms(1000);
delay_ms(1000);
}
}
復(fù)制代碼
求大神修改程序:
STM32l藍牙溫度傳輸.zip
(539.09 KB, 下載次數(shù): 45)
2019-10-6 17:13 上傳
點擊文件名下載附件
stm32藍牙wifi溫度傳輸
下載積分: 黑幣 -5
作者:
月明強
時間:
2019-10-16 09:40
資料與標(biāo)題不符,除了題目通篇沒有wifi的事
作者:
oll
時間:
2021-3-21 17:39
根本沒有通信
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1