Reference firmware for PixArt's PAT9125EL 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.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers registerArrays.h Source File

registerArrays.h

00001 const uint8_t initialize[][2] = {
00002     { 0x09, 0x5A },     //Disables write-protect.
00003     { 0x0D, 0xB5 },     //Sets X-axis resolution (necessary value here will depend on physical design and application).
00004     { 0x0E, 0xFF },     //Sets Y-axis resolution (necessary value here will depend on physical design and application).
00005     { 0x19, 0x04 },     //Sets 12-bit X/Y data format.
00006     //{ 0x4B, 0x04 },     //Needed for when using low-voltage rail (1.7-1.9V): Power saving configuration.
00007 };
00008 #define initialize_size (sizeof(initialize)/sizeof(initialize[0]))