316 of 318
ZBasic System Library 306 ZX Microcontroller Family Simple PL513 Interface Example The code below sends the commands to turn on device A1. Const HouseCodeA as Byte = &H06 Const DeviceCode1 as Byte = &H0c Const DeviceOn as Byte = &H05 Call X10Cmd(20, 19, HouseCodeA, DeviceCode1, 2) Call Delay(0.50) Call X10Cmd(20, 19, HouseCodeA, DeviceOn, 2) Compatibility The BasicX documentation indicates that the transmission process is done in the background. On this implementation X10Cmd() will not return until the transmission is complete. In BasicX compatibility mode the flags parameter is not supported.