25 lines
2.1 KiB
Text
25 lines
2.1 KiB
Text
{
|
|
"format": 1,
|
|
"generator": "work/mcuio acceptance graph: UART echo, I2C register read, SPI transfer, I2C write, ADC sample, timer, GPIO",
|
|
"nodes": [
|
|
{ "id": 0, "type_id": "embedded.timer.interval", "properties": { "period_ms": "1" }, "position": [0.0, 0.0] },
|
|
{ "id": 1, "type_id": "embedded.uart.read", "properties": { "uart": "0", "max_len": "16", "baud": "115200" }, "position": [0.0, 120.0] },
|
|
{ "id": 2, "type_id": "embedded.uart.write", "properties": { "uart": "0", "baud": "115200" }, "position": [260.0, 120.0] },
|
|
{ "id": 3, "type_id": "embedded.i2c.read", "properties": { "bus": "0", "address": "72", "register": "16", "length": "4" }, "position": [0.0, 240.0] },
|
|
{ "id": 4, "type_id": "embedded.spi.transfer", "properties": { "bus": "0", "cs_pin": "8", "clock_hz": "1000000" }, "position": [260.0, 240.0] },
|
|
{ "id": 5, "type_id": "embedded.i2c.write", "properties": { "bus": "0", "address": "72" }, "position": [520.0, 240.0] },
|
|
{ "id": 6, "type_id": "embedded.adc", "properties": { "channel": "0", "vref": "3.3" }, "position": [0.0, 360.0] },
|
|
{ "id": 7, "type_id": "embedded.gpio.digital_in", "properties": { "pin": "10" }, "position": [0.0, 480.0] },
|
|
{ "id": 8, "type_id": "logic.not", "properties": {}, "position": [260.0, 480.0] },
|
|
{ "id": 9, "type_id": "embedded.gpio.digital_out", "properties": { "pin": "11" }, "position": [520.0, 480.0] },
|
|
{ "id": 10, "type_id": "embedded.delay", "properties": { "duration_ms": "1" }, "position": [260.0, 0.0] }
|
|
],
|
|
"wires": [
|
|
{ "id": 0, "from_node": 1, "from_port": "data", "to_node": 2, "to_port": "data", "mode": "Move" },
|
|
{ "id": 1, "from_node": 3, "from_port": "data", "to_node": 4, "to_port": "tx_data", "mode": "Move" },
|
|
{ "id": 2, "from_node": 4, "from_port": "rx_data", "to_node": 5, "to_port": "data", "mode": "Move" },
|
|
{ "id": 3, "from_node": 7, "from_port": "state", "to_node": 8, "to_port": "value", "mode": "Copy" },
|
|
{ "id": 4, "from_node": 8, "from_port": "result", "to_node": 9, "to_port": "state", "mode": "Copy" },
|
|
{ "id": 5, "from_node": 0, "from_port": "tick", "to_node": 10, "to_port": "trigger", "mode": "Copy" }
|
|
]
|
|
}
|