User Tools

Site Tools

한국어

logicpython:cubloc_api:high

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
logicpython:cubloc_api:high [2026/04/14 03:58] – [Example] mfranklinlogicpython:cubloc_api:high [2026/04/14 04:15] (current) – [Related APIs] mfranklin
Line 17: Line 17:
 from cubloc import Output, High, Low from cubloc import Output, High, Low
  
 +# LED on GP25, configured as an output
 LED = 25 LED = 25
-Output(led_pin)+Output(LED)
  
 while True: while True:
 +    # Turn LED on for 500ms
     High(LED)     High(LED)
     print("LED ON")     print("LED ON")
     sleep(0.5)     sleep(0.5)
  
 +    # Turn LED off for 500ms
     Low(LED)     Low(LED)
     print("LED OFF")     print("LED OFF")
     sleep(0.5)     sleep(0.5)
 +</code>
 ===== Related APIs ===== ===== Related APIs =====
  
Line 36: Line 39:
   * [[logicpython:cubloc_api:out|Out]]   * [[logicpython:cubloc_api:out|Out]]
   * [[logicpython:cubloc_api:output|Output]]   * [[logicpython:cubloc_api:output|Output]]
 +  * [[logicpython:cubloc_api:reverse|Reverse]]
  
logicpython/cubloc_api/high.1776139103.txt.gz · Last modified: by mfranklin