// {
// "type": "additional_interface_b_init",
// "message0": "Initialise aditional Interface B: %1",
// "args0": [
// { "type": "field_dropdown", "name": "NAME", "text": "IFACE_1" },
// { "type": "field_dropdown", "name": "NAME", "text": "IFACE_2" }
// ],
// "previousStatement": null,
// "nextStatement": null,
// "colour": 20,
// },
//py.forBlock['additional_interface_b_init'] = (block) => {
// const name = block.getFieldValue('NAME');
// const port = getInterfaceMapping()[name] || "/dev/ttyUSB0";
// return `import serial, time\nif 'ifaces' not in globals(): ifaces = {}\nif '${name}' not in ifaces:\n ifaces['${name}'] = {'ser': serial.Serial('${port}', 9600, timeout=0)}\n ifaces['${name}']['ser'].write(b'p\\0###Do you byte, when I knock?$$$')\n time.sleep(0.1)\n`;
//};