rainbow

Dependencies:   mbed FastPWM

Revision:
242:b235d67d25ba
Parent:
240:fb5b57e3f157
Child:
243:30896263bd8b
diff -r 27eca07c9591 -r b235d67d25ba CAN/function_CAN.cpp
--- a/CAN/function_CAN.cpp	Tue Apr 05 09:07:14 2022 +0000
+++ b/CAN/function_CAN.cpp	Thu Apr 07 06:18:38 2022 +0000
@@ -674,8 +674,12 @@
 
 void CAN_RX_HANDLER()
 {
-
+    
+    if (LED > 0) LED = 0;
+    else LED = 1;
+    
     can.read(msg);
+    
     unsigned int address = msg.id;
     if(address==CID_RX_CMD) {
         unsigned int CMD = msg.data[0];
@@ -749,7 +753,6 @@
         Vout.ref = (double) temp_ref_pwm;
     }
 
-
 }
 
 /******************************************************************************