Update configuration and enhance railway signal functionality

- 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
This commit is contained in:
Artem Kashaev
2026-01-27 15:17:56 +05:00
parent 5ae313defd
commit 30feef708c
3 changed files with 81 additions and 13 deletions
+18 -4
View File
@@ -4,25 +4,25 @@
"id": 1283,
"pin": 12,
"angle_minus": 115,
"angle_plus": 65
"angle_plus": 70
},
{
"id": 1272,
"pin": 13,
"angle_minus": 115,
"angle_minus": 110,
"angle_plus": 65
},
{
"id": 1444,
"pin": 2,
"angle_minus": 115,
"angle_minus": 110,
"angle_plus": 65
},
{
"id": 1274,
"pin": 3,
"angle_minus": 115,
"angle_plus": 65
"angle_plus": 70
},
{
"id": 1457,
@@ -64,5 +64,19 @@
"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}
]
}
]
}