30feef708c
- Adjust angle parameters for switches in config.json - Implement semaphore loading in main.py - Refactor Lamp modes to use integers in railway_signal.py - Add set_mode method for Lamp class to control lamp states
82 lines
1.6 KiB
JSON
82 lines
1.6 KiB
JSON
{
|
|
"switches": [
|
|
{
|
|
"id": 1283,
|
|
"pin": 12,
|
|
"angle_minus": 115,
|
|
"angle_plus": 70
|
|
},
|
|
{
|
|
"id": 1272,
|
|
"pin": 13,
|
|
"angle_minus": 110,
|
|
"angle_plus": 65
|
|
},
|
|
{
|
|
"id": 1444,
|
|
"pin": 2,
|
|
"angle_minus": 110,
|
|
"angle_plus": 65
|
|
},
|
|
{
|
|
"id": 1274,
|
|
"pin": 3,
|
|
"angle_minus": 115,
|
|
"angle_plus": 70
|
|
},
|
|
{
|
|
"id": 1457,
|
|
"pin": 4,
|
|
"angle_minus": 65,
|
|
"angle_plus": 115
|
|
}
|
|
],
|
|
"irs": [
|
|
{
|
|
"id": 7000,
|
|
"pin": 16
|
|
},
|
|
{
|
|
"id": 7001,
|
|
"pin": 17
|
|
},
|
|
{
|
|
"id": 7002,
|
|
"pin": 18
|
|
},
|
|
{
|
|
"id": 7003,
|
|
"pin": 19
|
|
},
|
|
{
|
|
"id": 7004,
|
|
"pin": 20
|
|
},
|
|
{
|
|
"id": 7005,
|
|
"pin": 21
|
|
},
|
|
{
|
|
"id": 7006,
|
|
"pin": 22
|
|
},
|
|
{
|
|
"id": 7007,
|
|
"pin": 26
|
|
}
|
|
],
|
|
"semaphores": [
|
|
{
|
|
"id": 1,
|
|
"pin": 15,
|
|
"bpp": 4,
|
|
"lamps": [
|
|
{"color": "MOON_WHITE", "id": 1630},
|
|
{"color": "YELLOW", "id": 1631},
|
|
{"color": "RED", "id": 1632},
|
|
{"color": "GREEN", "id": 1633},
|
|
{"color": "BLUE", "id": 1634}
|
|
]
|
|
}
|
|
]
|
|
} |