二期c++接口

Dependencies:   EthernetInterface mbed-rtos mbed uniqueCPUID

Fork of bcsdk by Heng Well

Files at this revision

API Documentation at this revision

Comitter:
MrAI
Date:
Fri Jun 08 01:40:23 2018 +0000
Parent:
16:17d0db6c449d
Commit message:
????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 17d0db6c449d -r 82d09b5a9189 main.cpp
--- a/main.cpp	Thu Jun 07 14:03:35 2018 +0000
+++ b/main.cpp	Fri Jun 08 01:40:23 2018 +0000
@@ -167,12 +167,12 @@
 DigitalOut myled1(LED1,1);
 DigitalOut myled2(LED2,1);
 DigitalOut myled3(LED3,1);
-bool isRunning = false;
-void setLedStatus(DigitalOut myled)
+bool isRunning = false;//蓝灯闪烁条件
+void setLedStatus(DigitalOut myled)//指定某一种颜色亮
 {
     myled = 0;
 }
-void setLedStatusErr(DigitalOut myled)
+void setLedStatusErr(DigitalOut myled)//出错指示灯:红灯闪烁
 {
         int nCount = 3;
         while(nCount-- > 0)
@@ -184,13 +184,13 @@
         }
 }
 
-void setLedOff()
+void setLedOff()//关闭led
 {
     myled1 = 1;
     myled2 = 1;
     myled3 = 1;
 }
-void thread_LedRun(void const *argument)
+void thread_LedRun(void const *argument)//蓝灯闪烁线程
 {
     while(1) {
         while(isRunning) {
@@ -201,7 +201,7 @@
     }
 }
 
-void reset_LedRun()
+void reset_LedRun()//暂停闪烁
 {
     isRunning = false;
     wait(0.1);