i am trying to modify the SPI-example code "BarometricPressureSensor" (SCP1000) implemented in the IDE 1.5.6-r2 to work on my BMA020- Acceleration Sensor.
Tom Igoe's code contains the following lines:
const byte READ = 0b11111100; // SCP1000's read command const byte WRITE = 0b00000010; // SCP1000's write command
Due to the lack of reference in the SCP1000 data sheet and the unsatisfying results google presents me I have got two questions.
1. Is the Hex-Code universal,or does every sensor has an unique one?
- Supposed the coding is unique: How do I find the matching code for my sensor?
Thank you for your time,