Jump to content
The simFlight Network Forums

Issues in lights read and write .


Recommended Posts

Hi ,

      I'm tring to read and write about light.

      The documentation says that :


      Weather means that  If I read it with ushort and convert to byte ,then modify it's  value and convert back and write ?

      Any replies will be appriciate.


Link to comment
Share on other sites

If you're using my DLL it's best to declare this offset as a bitarray.

Please see the example code application - AC002_BitArrays under 'Advanced Concepts'. This example uses the lights offset you are referring to.

If you're not using my DLL then you need to keep the value as a short, but test each bit using boolean arithmetic (bit-wise 'and', 'or' etc.)


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.