vtt-info / 2023_06_29_MicroPythonUART2PinOnOff

The following code allows to trigger on and off the pin of the target micro python device with UART.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2023_06_29_MicroPythonUART2PinOnOff

The following code allows to trigger on and off the pin of the target micro python device with UART.

image

# 0; Set all pin to false 
# 1; Set all pin to true 
# d01; Set pin at index 1 to false
# d15; Set pin at index 5 to True
# d120; Set pin at index 20 to True
# d021; Set pin at index 21 to False
# d041; Will ignore as pin at index 41 is not registered
# ; or \n will end the serial message
# ' ' will split the message in several command
#Example: 0 d12 d120 d04;

About

The following code allows to trigger on and off the pin of the target micro python device with UART.


Languages

Language:Python 100.0%