====== Reverse ======
Toggle the output state of the specified ''pin''.
===== Syntax =====
from cubloc import Reverse
Reverse(pin: int)
===== Parameters =====
* **pin**: ''Pin'' number (0 to 255).
===== Exceptions =====
* [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''pin'' is not an integer.
* [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''pin'' is outside the range 0 to 255.
===== Example =====
from time import sleep
from cubloc import Output, Reverse
# LED on GP25, configured as an output
LED = 25
Output(LED)
while True:
# Toggle LED on for 500ms
Reverse(LED)
sleep(0.5)
===== Related APIs =====
* [[logicpython:cubloc_api:high|High]]
* [[logicpython:cubloc_api:in|In]]
* [[logicpython:cubloc_api:input|Input]]
* [[logicpython:cubloc_api:low|Low]]
* [[logicpython:cubloc_api:out|Out]]