Jesús Torres
/
ADNS9500
Interface to access to Avago ADNS-9500 laser mouse sensors.
Diff: adns9500.cpp
- Revision:
- 11:07a39997a421
- Parent:
- 10:bbf9ff378632
- Child:
- 12:61b07ad45dc1
--- a/adns9500.cpp Wed Jul 11 15:56:05 2012 +0000 +++ b/adns9500.cpp Thu Jul 12 13:56:54 2012 +0000 @@ -113,13 +113,9 @@ // read product and revision id to test the connection WAIT_TSRR(); - spi_.write(PRODUCT_ID); - WAIT_TSRAD(); - int product_id = spi_.write(0x00); + int product_id = spiReceive(PRODUCT_ID); WAIT_TSRR(); - spi_.write(REVISION_ID); - WAIT_TSRAD(); - int revision_id = spi_.write(0x00); + int revision_id = spiReceive(REVISION_ID); WAIT_TSCLKNCS(); ncs_.write(1);