Page 1 of 1
Reading / Writing to bitArray
Posted: 27 Apr 2011, 00:04
by moritus
Hi,
I would like to know if we can Read/write to bit array( Lights (fsuipc H0D0C))... I want to control every single switch of the lights...
Thanks
Re: Reading / Writing to bitArray
Posted: 27 Apr 2011, 09:01
by admin
I didn't check, but my first idea is: can't you prepare whole value in script and write complete byte?
Or (if you toggle lights not only by HIDMacros) read the value, mask bit what you want to change and write complete byte.
Re: Reading / Writing to bitArray
Posted: 28 Apr 2011, 21:42
by moritus
how did you read/write the biutarray can you give me an short example?
Re: Reading / Writing to bitArray
Posted: 07 May 2011, 03:25
by moritus
Hi,
I found the way to change to 1 only with bit
ex taxi light
HIDMacros.SetFSUIPCint &H0D0C,1,2^3
but now i need help to put it back to 0
any idea??