Hi, I'm still playing with the ADXL345. I've wrote a "driver" for controlling and retrieving data from the accelerometer, and catching the interrupts. There is a long series of property that I call "hardware properties" and relate to the device's registers. Some registers are basically only Byte, but others, like the DATA_FORMAT, have more functionnalities like Full Resolution or Range. In the Main() of my N+2 project, I would like to write something like this: acc = new ADXL345() ' The class driver. Done acc.DataFormat.FullResolution = True ' Right now it's like acc.DataFormatFullResolution acc.DataFormat.Range = ADXL345.Range.Range_16g ' Right now it's like acc.DataFormatRange You know what I'm looking for? Like nested properties? I've tried to create a DataFormat class, that include the FullResolution and Range properties, but because ADXL345 class inherits from the I2CDevice, it can't reach some methods, give me errors. If someone can take a look and give advices, or better, help me write the part I don't get, it'll be appreciated. If it's functionnal, the code will be open for the community (codeplex). I'm using a N+2 with MF4.3 under VS2012. Thanks Christian
Accelerometer3D.zip 98.04KB 20 downloads