Right now I am reading from the ID reg to test if my read/write functions are correct for my sensor.
The picture attach is my read and write functions.
I have currently tried three different scenarios:
-
With a 4.7K resistor connecting the MOSI to MISO line
my output was 0xC0 -
a 10k resistor connecting MOSO to MISO line,
my output was 0xFF
-and then I set the MOSI line from output to input and back again
my output was 0xFF
The register is defaulted to 0x3D. Anyone have any suggestions at what to look at for this error?
