I have been writing a library for the accelerometer. This uses lots of bitmasks.
Originally I defined these as Const - for example Const FS_MASK As Byte =0x03
What I found is that you can't refer to this constant outside the class (say from another class), it acts like a Private Constant, not a Shared Constant. Do you have to refer to the base class? Rather than an instance of the class?
Ie BASE.FS_MASK vs instance.FS_MASK. Not sure why this would matter, it's a constant so the two would be the same.
As a workaround I redefined them as Readonly variables (which works fine).
Is this how it works?
Thanks,