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:
+13
-1
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user