User Tools

Site Tools

한국어

logicpython:cubloc_api:low

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:low [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:low [2026/04/14 04:03] (current) – [Example] mfranklin
Line 14: Line 14:
  
 <code python> <code python>
-from cubloc import Low+from time import sleep 
 +from cubloc import Output, High, Low
  
-Example usage +LED on GP25, configured as an output 
-Low(0)+LED = 25 
 +Output(LED) 
 + 
 +while True: 
 +    # Turn LED on for 500ms 
 +    High(LED) 
 +    print("LED ON") 
 +    sleep(0.5) 
 + 
 +    # Turn LED off for 500ms 
 +    Low(LED) 
 +    print("LED OFF"
 +    sleep(0.5)
 </code> </code>
  
logicpython/cubloc_api/low.1775786798.txt.gz · Last modified: by 127.0.0.1