Skip to content

Commit

Permalink
add shinjyuku.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kienn-HCl committed Nov 24, 2023
1 parent 73acd10 commit 8e3ebb3
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
67 changes: 67 additions & 0 deletions hardware/esp32-control/data/hasen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "sakurajosui",
"stops": [
{
"stop_id": "sakurajosui_up_s1",
"pin": 14
},
{
"stop_id": "sakurajosui_up_s2",
"pin": 15
},
{
"stop_id": "sakurajosui_down_s1",
"pin": 16
},
{
"stop_id": "sakurajosui_down_s2",
"pin": 17
}
],
"points": [
{
"point_id": "sakurajosui_down_p1",
"pin": 13
}
],
"detectors": [
{
"block_id": "shinjyuku_down_b1",
"target": "OPEN",
"pin": 12
},
{
"block_id": "sakurajosui_up_b1",
"target": "CLOSE",
"pin": 22
},
{
"block_id": "chofu_up_b1",
"target": "OPEN",
"pin": 23
},
{
"block_id": "chofu_down_b1",
"target": "CLOSE",
"pin": 25
}
],
"nfcs": [
{
"nfc_id": "sakurajosui_up_s1",
"pin": 4
},
{
"nfc_id": "sakurajosui_up_s2",
"pin": 5
},
{
"nfc_id": "sakurajosui_down_s1",
"pin": 32
},
{
"nfc_id": "sakurajosui_down_s2",
"pin": 33
}
]
}
45 changes: 45 additions & 0 deletions hardware/esp32-control/data/shinjyuku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "shinjyuku",
"stops": [
{
"stop_id": "shinjyuku_down_s1",
"pin": 13
},
{
"stop_id": "shinjyuku_up_s1",
"pin": 14
}
],
"detectors": [
{
"block_id": "shinjyuku_down_b1",
"target": "CLOSE",
"pin": 12
},
{
"block_id": "shinjyuku_up_b1",
"target": "CLOSE",
"pin": 22
},
{
"block_id": "shinjyuku_up_b1",
"target": "OPEN",
"pin": 23
},
{
"block_id": "sakurajosui_up_b1",
"target": "OPEN",
"pin": 25
}
],
"nfcs": [
{
"nfc_id": "shinjyuku_down_s1",
"pin": 4
},
{
"nfc_id": "shinjyuku_up_s1",
"pin": 5
}
]
}

0 comments on commit 8e3ebb3

Please sign in to comment.