Skip to content

Commit

Permalink
refactor(workspace): use a new record feature in xod-dev/ds-rtc lib…
Browse files Browse the repository at this point in the history
…rary
  • Loading branch information
brusherru committed Oct 6, 2020
1 parent 30ea6f3 commit 20f6b32
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 87 deletions.
63 changes: 63 additions & 0 deletions workspace/__lib__/xod-dev/ds-rtc/example-read/patch.xodp
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"links": [
{
"id": "ByotB6FUw",
"input": {
"nodeId": "r1YtHpKLD",
"pinKey": "Hy_D4G0JOX"
},
"output": {
"nodeId": "HJKOB6FIv",
"pinKey": "BklE_1edQ"
}
},
{
"id": "r115BptIP",
"input": {
"nodeId": "rJaFBaKUw",
"pinKey": "HkXK-dGob"
},
"output": {
"nodeId": "r1YtHpKLD",
"pinKey": "BkvDEzR1Om"
}
}
],
"nodes": [
{
"boundLiterals": {
"Bk1C_4rPQ": "Continuously"
},
"id": "HJKOB6FIv",
"position": {
"units": "slots",
"x": 0,
"y": 2
},
"type": "@/rtc"
},
{
"id": "r1YtHpKLD",
"position": {
"units": "slots",
"x": 0,
"y": 3
},
"type": "xod/datetime/format-timestamp"
},
{
"id": "rJaFBaKUw",
"position": {
"units": "slots",
"x": 0,
"y": 4
},
"size": {
"height": 1,
"units": "slots",
"width": 6
},
"type": "xod/debug/watch"
}
]
}
63 changes: 63 additions & 0 deletions workspace/__lib__/xod-dev/ds-rtc/example-write/patch.xodp
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"links": [
{
"id": "rJbhS6tLP",
"input": {
"nodeId": "ryssBaKUw",
"pinKey": "ByDPwJxu7"
},
"output": {
"nodeId": "HJenr6tLP",
"pinKey": "r1ZqKlXPX"
}
},
{
"id": "rypjHpK8D",
"input": {
"nodeId": "ryssBaKUw",
"pinKey": "SJsba7HDQ"
},
"output": {
"nodeId": "SyvjSatLw",
"pinKey": "S1FPmmHD7"
}
}
],
"nodes": [
{
"boundLiterals": {
"HJgzhKxmvm": "5",
"HygQhYlQw7": "55",
"S1-M2YemPQ": "13",
"SkQnYg7wQ": "23",
"r1f2FeXP7": "10",
"ryjoteXwm": "2020"
},
"id": "HJenr6tLP",
"position": {
"units": "slots",
"x": 2,
"y": 1
},
"type": "xod/datetime/datetime"
},
{
"id": "SyvjSatLw",
"position": {
"units": "slots",
"x": 0,
"y": 1
},
"type": "@/rtc-device"
},
{
"id": "ryssBaKUw",
"position": {
"units": "slots",
"x": 1,
"y": 2
},
"type": "@/write"
}
]
}
64 changes: 32 additions & 32 deletions workspace/__lib__/xod-dev/ds-rtc/read/patch.xodp
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,25 @@
}
},
{
"id": "BJeRsV4SwQ",
"id": "Bk8GpcNEBv7",
"input": {
"nodeId": "ByAj44Bvm",
"pinKey": "__in__"
"nodeId": "HkOT5NNBD7",
"pinKey": "SkylK_Ed-"
},
"output": {
"nodeId": "rJnu4VrvX",
"pinKey": "BybKKmSDQ"
"nodeId": "BkhacV4rvm",
"pinKey": "rypZF_Nub"
}
},
{
"id": "Bk8GpcNEBv7",
"id": "BkR8B6Y8v",
"input": {
"nodeId": "HkOT5NNBD7",
"pinKey": "SkylK_Ed-"
"nodeId": "ByAj44Bvm",
"pinKey": "__in__"
},
"output": {
"nodeId": "BkhacV4rvm",
"pinKey": "rypZF_Nub"
"nodeId": "rJnu4VrvX",
"pinKey": "rJ_QMmSPQ"
}
},
{
Expand Down Expand Up @@ -292,6 +292,17 @@
"pinKey": "rypZF_Nub"
}
},
{
"id": "HylPBaYLv",
"input": {
"nodeId": "rJnu4VrvX",
"pinKey": "S1FPmmHD7"
},
"output": {
"nodeId": "HJKONEBPX",
"pinKey": "__out__"
}
},
{
"id": "S1OZd1gOQ",
"input": {
Expand Down Expand Up @@ -336,6 +347,17 @@
"pinKey": "__out__"
}
},
{
"id": "SkywHTtIv",
"input": {
"nodeId": "SJG1SVHPm",
"pinKey": "__in__"
},
"output": {
"nodeId": "rJnu4VrvX",
"pinKey": "rJTvfQHD7"
}
},
{
"id": "Sy14p94EBP7",
"input": {
Expand Down Expand Up @@ -369,28 +391,6 @@
"pinKey": "__out__"
}
},
{
"id": "SyxzkHNBPQ",
"input": {
"nodeId": "SJG1SVHPm",
"pinKey": "__in__"
},
"output": {
"nodeId": "rJnu4VrvX",
"pinKey": "Sy6KYmHwQ"
}
},
{
"id": "r1CdVEHDm",
"input": {
"nodeId": "rJnu4VrvX",
"pinKey": "SylWKmrvm"
},
"output": {
"nodeId": "HJKONEBPX",
"pinKey": "__out__"
}
},
{
"id": "r1bf6q4VSDQ",
"input": {
Expand Down
14 changes: 0 additions & 14 deletions workspace/__lib__/xod-dev/ds-rtc/rtc-device/patch.cpp

This file was deleted.

14 changes: 7 additions & 7 deletions workspace/__lib__/xod-dev/ds-rtc/rtc-device/patch.xodp
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"description": "Constructs an rtc-device value for a DS1302/DS1307/DS3231 RTC board",
"nodes": [
{
"id": "S1FPmmHD7",
"label": "DEV",
"id": "H1OIS6YLw",
"position": {
"units": "slots",
"x": 3,
"y": 2
"y": 1
},
"type": "xod/patch-nodes/output-self"
"type": "xod/patch-nodes/record"
},
{
"id": "r1UYfXrwQ",
"id": "S1FPmmHD7",
"label": "DEV",
"position": {
"units": "slots",
"x": 3,
"y": 1
"y": 2
},
"type": "xod/patch-nodes/not-implemented-in-xod"
"type": "xod/patch-nodes/output-self"
},
{
"boundLiterals": {
Expand Down
7 changes: 0 additions & 7 deletions workspace/__lib__/xod-dev/ds-rtc/unpack-rtc-device/patch.cpp

This file was deleted.

54 changes: 27 additions & 27 deletions workspace/__lib__/xod-dev/ds-rtc/write/patch.xodp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
"pinKey": "S1TsDnbgM"
}
},
{
"id": "BkIwr6YLD",
"input": {
"nodeId": "BJwwTmHPQ",
"pinKey": "__in__"
},
"output": {
"nodeId": "ryrbT7HD7",
"pinKey": "rJ_QMmSPQ"
}
},
{
"id": "Bkmz_m6XBPm",
"input": {
Expand Down Expand Up @@ -277,14 +288,14 @@
}
},
{
"id": "SkeDwaXrPX",
"id": "SkNvBTtLP",
"input": {
"nodeId": "BJwwTmHPQ",
"pinKey": "__in__"
"nodeId": "ryrbT7HD7",
"pinKey": "S1FPmmHD7"
},
"output": {
"nodeId": "ryrbT7HD7",
"pinKey": "BybKKmSDQ"
"nodeId": "SJsba7HDQ",
"pinKey": "__out__"
}
},
{
Expand Down Expand Up @@ -320,17 +331,6 @@
"pinKey": "__out__"
}
},
{
"id": "SynbTXBvQ",
"input": {
"nodeId": "ryrbT7HD7",
"pinKey": "SylWKmrvm"
},
"output": {
"nodeId": "SJsba7HDQ",
"pinKey": "__out__"
}
},
{
"id": "r19zum6mSvX",
"input": {
Expand All @@ -353,6 +353,17 @@
"pinKey": "SJB3vO4uZ"
}
},
{
"id": "rkDvrpK8D",
"input": {
"nodeId": "BJuwaQBwQ",
"pinKey": "__in__"
},
"output": {
"nodeId": "ryrbT7HD7",
"pinKey": "rJTvfQHD7"
}
},
{
"id": "rkOWOmaXHvX",
"input": {
Expand Down Expand Up @@ -397,17 +408,6 @@
"pinKey": "__out__"
}
},
{
"id": "rkluvTQrv7",
"input": {
"nodeId": "BJuwaQBwQ",
"pinKey": "__in__"
},
"output": {
"nodeId": "ryrbT7HD7",
"pinKey": "Sy6KYmHwQ"
}
},
{
"id": "rkx8RpQrP7",
"input": {
Expand Down

0 comments on commit 20f6b32

Please sign in to comment.