1{ 2 "gpio_definitions": [ 3 { 4 "name": "POWER_BUTTON1", 5 "pin": "Q0", 6 "direction": "both", 7 "multi-action": [ 8 { 9 "duration": 0, 10 "action": "chassis-on" 11 }, 12 { 13 "duration": 4000, 14 "action": "chassis-cycle" 15 }, 16 { 17 "duration": 8000, 18 "action": "chassis-off" 19 } 20 ] 21 }, 22 { 23 "name": "POWER_BUTTON2", 24 "pin": "Q1", 25 "direction": "both", 26 "multi-action": [ 27 { 28 "duration": 0, 29 "action": "chassis-on" 30 }, 31 { 32 "duration": 4000, 33 "action": "chassis-cycle" 34 }, 35 { 36 "duration": 8000, 37 "action": "chassis-off" 38 } 39 ] 40 }, 41 { 42 "name": "POWER_BUTTON3", 43 "pin": "Q2", 44 "direction": "both", 45 "multi-action": [ 46 { 47 "duration": 0, 48 "action": "chassis-on" 49 }, 50 { 51 "duration": 4000, 52 "action": "chassis-cycle" 53 }, 54 { 55 "duration": 8000, 56 "action": "chassis-off" 57 } 58 ] 59 }, 60 { 61 "name": "POWER_BUTTON4", 62 "pin": "Q3", 63 "direction": "both", 64 "multi-action": [ 65 { 66 "duration": 0, 67 "action": "chassis-on" 68 }, 69 { 70 "duration": 4000, 71 "action": "chassis-cycle" 72 }, 73 { 74 "duration": 8000, 75 "action": "chassis-off" 76 } 77 ] 78 }, 79 { 80 "name": "POWER_BUTTON5", 81 "pin": "B1", 82 "direction": "both", 83 "multi-action": [ 84 { 85 "duration": 0, 86 "action": "chassis-on" 87 }, 88 { 89 "duration": 4000, 90 "action": "chassis-cycle" 91 }, 92 { 93 "duration": 8000, 94 "action": "chassis-off" 95 } 96 ] 97 }, 98 { 99 "name": "POWER_BUTTON6", 100 "pin": "M5", 101 "direction": "both", 102 "multi-action": [ 103 { 104 "duration": 0, 105 "action": "chassis-on" 106 }, 107 { 108 "duration": 4000, 109 "action": "chassis-cycle" 110 }, 111 { 112 "duration": 8000, 113 "action": "chassis-off" 114 } 115 ] 116 }, 117 { 118 "name": "POWER_BUTTON7", 119 "pin": "R0", 120 "direction": "both", 121 "multi-action": [ 122 { 123 "duration": 0, 124 "action": "chassis-on" 125 }, 126 { 127 "duration": 4000, 128 "action": "chassis-cycle" 129 }, 130 { 131 "duration": 8000, 132 "action": "chassis-off" 133 } 134 ] 135 }, 136 { 137 "name": "POWER_BUTTON8", 138 "pin": "O0", 139 "direction": "both", 140 "multi-action": [ 141 { 142 "duration": 0, 143 "action": "chassis-on" 144 }, 145 { 146 "duration": 4000, 147 "action": "chassis-cycle" 148 }, 149 { 150 "duration": 8000, 151 "action": "chassis-off" 152 } 153 ] 154 }, 155 { 156 "name": "HOST_SELECTOR", 157 "virtual_button": true, 158 "polling_mode": true, 159 "polling_interval_ms": 2000, 160 "group_gpio_config": [ 161 { 162 "name": "host_select_sel_0", 163 "num": 2340, 164 "direction": "in", 165 "polarity": "active_low" 166 }, 167 { 168 "name": "host_select_sel_1", 169 "num": 2341, 170 "direction": "in", 171 "polarity": "active_low" 172 }, 173 { 174 "name": "host_select_sel_2", 175 "num": 2342, 176 "direction": "in", 177 "polarity": "active_low" 178 }, 179 { 180 "name": "host_select_sel_3", 181 "num": 2343, 182 "direction": "in", 183 "polarity": "active_low" 184 } 185 ], 186 "max_position": 8, 187 "host_selector_map": { 188 "0": 0, 189 "1": 1, 190 "2": 2, 191 "3": 3, 192 "4": 4, 193 "5": 5, 194 "6": 6, 195 "7": 7, 196 "8": 8 197 } 198 } 199 ] 200} 201