Enhance IR control functionality and configuration

- Updated angle_minus value in config.json for switch calibration.
- Added support for seminsu devices in load_seminsus function.
- Implemented polling logic for seminsu devices in main.py.
- Adjusted switch position representation from "-" and "+" to "1" and "0".
- Introduced IRRxTxPollPair class for IR communication in ir_pair.py.
- Created ir_test.py for testing IR functionality with configurable parameters.
This commit is contained in:
Artem Kashaev
2025-12-26 10:05:41 +05:00
parent cf2eac04bf
commit 5521d8da5d
5 changed files with 479 additions and 11 deletions
+13 -1
View File
@@ -3,7 +3,7 @@
{
"id": 1283,
"pin": 12,
"angle_minus": 65,
"angle_minus": 70,
"angle_plus": 125
},
{
@@ -24,5 +24,17 @@
"angle_minus": 125,
"angle_plus": 65
}
],
"seminsus": [
{
"id": 6000,
"pin_rx": 16,
"pin_tx": 6
},
{
"id": 6001,
"pin_rx": 17,
"pin_tx": 7
}
]
}