Hello,
I`m trying to enable AGC Mode in the Arduino example and I have some Questions:
In the interface_design_document it is said that "To set the AGC enable
state to enabled, the command type is 0x1 and thus the Command ID is 0x100 + 0x00 + 0x1 +
0x0000 = 0x0101"
So I would say that if I want to enable AGC I have to do something like this:
Wire.write(0x00); //Register Address first Byte
Wire.write(0x04); //Register Address second Byte
Wire.write(0x01); // Command Id first Byte
Wire.write(0x01); // Command Id second Byte
but in the example it is done like this:
Wire.write(0x01);
Wire.write(0x05);
Wire.write(0x00);
Wire.write(0x01);
both are not working.. there are still results >255
What am I doing wrong or what do I have to do?
I thought I have to set the Scale factor (Page 33) but it says that the default is LEP_AGC_SCALE_TO_8_BITS
but if I would want to set it, do I think I have to do like this:
Wire.write(0x00); //Register Address first Byte
Wire.write(0x04); //Register Address second Byte
Wire.write(0x01); // Command Id first Byte
Wire.write(0x45); // Command Id second Byte
but this freezes the programm on the arduino...
Thanks in Advance