5521d8da5d
- 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.
40 lines
778 B
JSON
40 lines
778 B
JSON
{
|
|
"switches": [
|
|
{
|
|
"id": 1283,
|
|
"pin": 12,
|
|
"angle_minus": 70,
|
|
"angle_plus": 125
|
|
},
|
|
{
|
|
"id": 1272,
|
|
"pin": 13,
|
|
"angle_minus": 65,
|
|
"angle_plus": 125
|
|
},
|
|
{
|
|
"id": 1444,
|
|
"pin": 2,
|
|
"angle_minus": 125,
|
|
"angle_plus": 65
|
|
},
|
|
{
|
|
"id": 1274,
|
|
"pin": 3,
|
|
"angle_minus": 125,
|
|
"angle_plus": 65
|
|
}
|
|
],
|
|
"seminsus": [
|
|
{
|
|
"id": 6000,
|
|
"pin_rx": 16,
|
|
"pin_tx": 6
|
|
},
|
|
{
|
|
"id": 6001,
|
|
"pin_rx": 17,
|
|
"pin_tx": 7
|
|
}
|
|
]
|
|
} |