Function move_command
Source pub fn move_command(port_name: String, x: i32, y: i32) -> Result<(), String>
Expand description
Sends a movement command to the KMBox through the specified serial port.
§Parameters
port_name
: The name of the COM port to use.
x
: The x-coordinate to move to.
y
: The y-coordinate to move to.
§Returns
A Result indicating success or failure with a descriptive error message.