Reference firmware for PixArt's PAA5101 sensor and evaluation board. "Hello World" and "Library" contain the exact same files. Please import just one of the two into your mBed compiler as a new program and not as a library.
Welcome to the code repository for PixArt's PAA5101 sensor and evaluation board.
For general information about this product, please visit this product's components page here:
https://os.mbed.com/components/PAA5101-Floor-Tracking-Sensor-with-Wide-/
For guides and tips on how to setup and evaluate the PAA5101 sensor with the Nordic nRF52-DK microcontroller using this reference code, please visit this guide:
https://os.mbed.com/teams/PixArt/code/5101_referenceCode/wiki/Guide-for-nRF52-DK-Platform
For guides and tips on how to setup and evaluate the PAA5101 sensor with any microcontroller using this reference code, please visit this guide:
https://os.mbed.com/teams/PixArt/code/5101_referenceCode/wiki/Guide-for-Any-Platform
Diff: main.cpp
- Revision:
- 3:1d5c2956f415
- Parent:
- 2:045cc9f995ae
- Child:
- 4:234a8616c0a6
diff -r 045cc9f995ae -r 1d5c2956f415 main.cpp
--- a/main.cpp Fri Jun 01 21:37:39 2018 +0000
+++ b/main.cpp Wed Jun 13 20:28:20 2018 +0000
@@ -21,7 +21,7 @@
pc.baud(115200); // Set baud rate to 115200. Remember to sync serial terminal baud rate to the same value.
spi.format(8,3); // Set SPI to 8 bits with inverted polarity and phase-shifted to second edge.
- spi.frequency(10000000); // Set frequency for SPI communication.
+ spi.frequency(2000000); // Set frequency for SPI communication.
cs = 1; // Initialize chip-select pin to be HIGH (inactive).
pc.printf("Program START\n\r");
PAA5101 | Floor Tracking Sensor with Wide Surface Variety Coverage