MMX8x4-HT series – User's Manual 153
Set the Output Level of a GPIO Pin
Command and Response
ç <gpio_port><value>
æ <gpio_port><value>
Parameters
Parameter description Parameter values
<gpio_port> GPIO port number P1-P6
<value> H: High level
L:
Example
ç
æ
Toggle the Level of a GPIO Pin
Command and Response
ç <gpio_port>:toggle()
æ <gpio_port>:toggle
Example
ç
æ mO
If the direction of the pin is input: the output value is toggled. If the direction of the pin is output: the output
value and the input value are toggled.
USB Port Settings
USB Host Select
Command and Response #usb
ç <USB_host>
æ <USB_host>
Parameters
Parameter description Parameter values
<USB_host> Active USB-B port 1-4, 0 means off
Example
ç
æ
Power Switch Delay
Command and Response#usb
ç <delay_status>
æ <delay_status>
Parameters
Parameter description Parameter values
<delay_status> 2sec Power-Cut
towards the devices if
Host changed
true
false
Example
ç
æ
Host 5V Sense
Command and Response
ç <HostPc>
æ <HostPc><status>
Parameters
Parameter description Parameter values
<HostPc> ID of the host PC Host5vSensePc1
Host5vSensePc2
Host5vSensePc3
Host5vSensePc4
<status> Status of the
connected host
true
false
Example
ç
æ