|
因?yàn)槭堑谝淮伟l(fā)帖很多內(nèi)容不清楚,原本是正確的嘗試加入虛擬機(jī)于是加了發(fā)送信息的代碼開始是報(bào)錯(cuò),出現(xiàn)了仿真無法顯示的問題。void Manage_function(void)- {
- if(flag_display == 0) //顯示標(biāo)志位為0時(shí)
- {
- if(IR == 0) //觸發(fā)人體紅外
- {
- if(seng_persong == 0)
- {
- <font color="#ff0000"> Uart_Sent_Str("you ren chuang ru\r\n"); </font> //發(fā)送短信
- servo_pwm = 5;
- flag_servo = 0;
- if(time_num % 20 == 0)
- LED = ~LED;
- BEEP = ~BEEP;
- Delay_function(2000);
- seng_persong = 1;
- }
- }
- }
- if(flag_mode == 0) //自動(dòng)模式
- {
- if(gas_value > gas_max) //燃?xì)膺^高
- {
- send_youdu = 1;
- <font color="#ff0000"> Uart_Sent_Str("du qi nong du guo gao\r\n"); </font> //發(fā)送短信
- servo_pwm = 15;
- flag_servo = 1;
- BEEP = 0; //蜂鳴器響2秒
- Delay_function(2000);
復(fù)制代碼
|
|