This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| logicpython:cubloc_api:high [2026/04/14 03:58] – [Example] mfranklin | logicpython: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(" | print(" | ||
| sleep(0.5) | sleep(0.5) | ||
| + | # Turn LED off for 500ms | ||
| Low(LED) | Low(LED) | ||
| print(" | print(" | ||
| Line 36: | Line 39: | ||
| * [[logicpython: | * [[logicpython: | ||
| * [[logicpython: | * [[logicpython: | ||
| + | * [[logicpython: | ||