| Posted: 03:00am 26 Mar 2025 | 
          Copy link to clipboard  | 
          Print this post  | 
        
           
                                                      	 | 
       
      
     
       
      This does the same thing.CLS 255 GUI led #37, "", 118, 38, 10, RGB(WHITE) GUI led #38, "", 118, 38, 10, RGB(RED) Do    BlinkLED    Pause 2000    RadMsg = NOT RadMsg  Loop End
  Sub BlinkLED    If RadMsg Then      Col% = 37     Else      Col% = 38    EndIf    CtrlVal(Col%) = 100  'Pulse LED 100mS to indicate operation End Sub
   Edit. Well it does when running the program above but at the command line it just stays on. So at the prompt you do need the pause then switch off:- CtrlVal(Col%) = 1 : Pause 100 : CtrlVal(Col%) = 0
  Edit 2. One less line.CLS 255 GUI led #37, "", 118, 38, 10, RGB(WHITE) GUI led #38, "", 118, 38, 10, RGB(RED) Do    BlinkLED    Pause 2000    RadMsg = NOT RadMsg  Loop End
  Sub BlinkLED    If RadMsg Then      CtrlVal(37) = 100  'Pulse LED white for 100mS to indicate operation     Else      CtrlVal(38) = 100  'Pulse LED red for 100mS to indicate operation    EndIf End Sub
   Edited 2025-03-27 09:20 by phil99       |