完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
今天我把ESP8266的模块插在mini板上,上电后,LCD显示屏对这屏的内容连续三次闪屏 ATK_ESP8266 WIFI模块测试
请选择: KEY0:WIFI STA+AP KEY1:WIFI STA WK_UP:WIFI AP 后就不不显示了,就一直白屏,再过一会就LED指示灯亮了 |
|
|
|
根据我今天反复测试,void atk_8266_test(void)
{ // u16 rlen=0; u8 key; u8 timex; POINT_COLOR=RED; Show_Str_Mid(0,30,"ATK-ESP8266 WIFIÄ£¿é2aêÔ",16,240); while(atk_8266_send_cmd("AT","OK",20))//¼ì2éWIFIÄ£¿éêÇ·ñÔúÏß { atk_8266_quit_trans();//íË3öí¸′« atk_8266_send_cmd("AT+CIPMODE=0","OK",200); //1رÕí¸′«Ä£ê½ Show_Str(40,55,200,16,"Î′¼ì2aμ½Ä£¿é!!!",16,0); delay_ms(800); LCD_Fill(40,55,200,55+16,WHITE); Show_Str(40,55,200,16,"3¢êÔᬽóÄ£¿é...",16,0); } while(atk_8266_send_cmd("ATE0","OK",20));//1رջØÏÔ atk_8266_mtest_ui(32,30); while(1) { delay_ms(10); atk_8266_at_response(1);//¼ì2éATK-ESP8266Ä£¿é·¢Ëí1yà′μÄêy¾Y,¼°ê±éÏ′«¸øμçÄÔ key=KEY_Scan(0); if(key) { LCD_Clear(WHITE); POINT_COLOR=RED; switch(key) { case 1://KEY0 Show_Str_Mid(0,30,"ATK-ESP WIFI-AP+STA 2aêÔ",16,240); Show_Str_Mid(0,50,"ÕyÔúÅäÖÃATK-ESP8266Ä£¿é£¬ÇëéÔμè...",12,240); atk_8266_apsta_test(); //′®¿úòÔì«íø2aêÔ break; case 2://KEY1 Show_Str_Mid(0,30,"ATK-ESP WIFI-STA 2aêÔ",16,240); Show_Str_Mid(0,50,"ÕyÔúÅäÖÃATK-ESP8266Ä£¿é£¬ÇëéÔμè...",12,240); atk_8266_wifista_test();//WIFI STA2aêÔ break; case 4://WK_UP atk_8266_wifiap_test(); //WIFI AP2aêÔ break; } atk_8266_mtest_ui(32,30); timex=0; } if((timex%20)==0)LED0=!LED0;//200mséá˸ timex++; } } 程序会运行红底字的语句三遍,所以会看到LCD显示的字闪三遍,但atk_8266_mtest_ui()函数内的atk_8266_msg_show(x,y+125,0); 后就不重复, |
|
|
|
//2aêÔ½çÃæÖ÷UI
void atk_8266_mtest_ui(u16 x,u16 y) { LCD_Clear(WHITE); POINT_COLOR=RED; Show_Str_Mid(0,y,"ATK_ESP8266 WIFIÄ£¿é2aêÔ",16,240); Show_Str(x,y+25,200,16,"ÇëÑ¡Ôñ:",16,0); Show_Str(x,y+45,200,16,"KEY0:WIFI STA+AP",16,0); Show_Str(x,y+65,200,16,"KEY1:WIFI STA",16,0); Show_Str(x,y+85,200,16,"WK_UP:WIFI AP",16,0); atk_8266_msg_show(x,y+125,0); } |
|
|
|
|
|
file:///C:/Users/Administrator/Desktop/2345%E6%88%AA%E5%9B%BE20170929165732.png
|
|
|
|
|
|
画红框的内容没显示
|
|
|
|
|
|
|
|
ESP8266WiFi模块
|
|
|
|
楼主您好,能把您的源码发一份吗???谢谢!!!
|
|
|
|
只有小组成员才能发言,加入小组>>
7344 浏览 9 评论
2433 浏览 2 评论
为什么我用esp8266做TCP服务器网络调试助手一直连接不上去?
9533 浏览 3 评论
为什么我的ESP8266 AT指令一直返回error无法正常使用?
7364 浏览 0 评论
4191 浏览 3 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-14 03:05 , Processed in 0.772278 second(s), Total 65, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号