This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| logicpython:cubloc_api:reverse [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:reverse [2026/04/14 04:12] (current) – [Example] mfranklin | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| <code python> | <code python> | ||
| - | from cubloc import Reverse | + | from time import sleep |
| + | from cubloc import | ||
| - | # Example usage | + | # LED on GP25, configured as an output |
| - | Reverse(0) | + | LED = 25 |
| + | Output(LED) | ||
| + | |||
| + | while True: | ||
| + | # Toggle LED on for 500ms | ||
| + | | ||
| + | sleep(0.5) | ||
| </ | </ | ||