File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ export default function MonitorInfo(props) {
7
7
const [ contrast , setContrast ] = useState ( monitor ?. features ?. [ "0x12" ] ? monitor ?. features ?. [ "0x12" ] [ 0 ] : 50 )
8
8
const [ volume , setVolume ] = useState ( monitor ?. features ?. [ "0x62" ] ? monitor ?. features ?. [ "0x62" ] [ 0 ] : 50 )
9
9
const [ powerState , setPowerState ] = useState ( monitor ?. features ?. [ "0xD6" ] ? monitor ?. features ?. [ "0xD6" ] [ 0 ] : 50 )
10
+ const [ manualVCP , setManualVCP ] = useState ( "" )
11
+ const [ manualValue , setManualValue ] = useState ( "" )
10
12
11
13
let extraHTML = [ ]
12
14
@@ -64,6 +66,15 @@ export default function MonitorInfo(props) {
64
66
)
65
67
}
66
68
69
+ // Manual VCP
70
+ extraHTML . push (
71
+ < div className = "manual-vcp-row" key = "manual" >
72
+ < input placeholder = "VCP code" value = { manualVCP } onChange = { e => { setManualVCP ( e . target . value ) } } />
73
+ < input placeholder = "Value" value = { manualValue } onChange = { e => { setManualValue ( e . target . value ) } } />
74
+ < a className = "button" onClick = { ( ) => setVCP ( monitor . id , parseInt ( manualVCP ) , parseInt ( manualValue ) ) } > Send VCP</ a >
75
+ </ div >
76
+ )
77
+
67
78
return (
68
79
< div key = { monitor . key } >
69
80
< br />
You can’t perform that action at this time.
0 commit comments