I have attached the first version of my program.It obviously compiles and runs. it only outputs 0,0 for several cycles and then 255 for anglelow and 64 for anglehigh.
so in order to check it was talking to the right device i changed the address from 02 to 03 and got exactly the same result, which confused me because I expected an error indicating no device.
i then used i2cdetect -y 0 and did not get any devices detected,
i2cdetect -y 1 displayed UU in address 3b.
There is an ultrasonic sensor connected to sensor 1 on the brickPi, but this is not address 3b.
that is the background, now some questions.
having looked at the firmware design, it states that the raspberry pi and brickpi communicate over serial. Is this serial as in RS232 or I2C?
are there any commands I can use to confirm the address of the sensor connected to sensor 2?
I am wondering whether the sensor needs calibration because it has never been used, that is my next step tp modify the attached program.