| a6500_Setup | Index |
Definition:
| void a6500_Setup( | ); |
Return Value:
Description:
This routine sets up the Digital I/O needed to read values from the Polaroid 6500 Ranging Module. The particular I/O pins used with this device must be specified in two define statements placed BEFORE the include statement for the a6500.tea file. These two defined values are:
The a6500_INIT pin can be any Digital I/O pin. The a6500_ECHO pin must be a pin that has PTIME functionality.
Example:
#define a6500_INIT aPortDigital2
#define a6500_ECHO aPortDigital3
#include <a6500.tea> /* after the defines */
a6500_Setup();
This would configure Digital I/O pins 2 and 3 for use in reading values from the Polaroid 6500 Ranging Module.
Related: