Other Parts Discussed in Thread: SM470R1B1M-HT
Hello,
I would first like to state that I am extremely new to the Stellaris LM4F120 and programming in general.
The below wiki states that I should be able to alter the cap touch program so that the UART will display the raw values. They offer the following code but give no clue as to where in the program in should be placed. Everywhere I place this code I get either an undefined error, or expecting an expression error.
http://processors.wiki.ti.com/index.php/Stellaris_LM4F120_LaunchPad_Capsence_calibration
UARTprintf("Sensor Calibration: \n");
while(1)
{
//
// Take raw capacitance measurements from each of the elements on the
// capsense booster-pack.
//
TI_CAPT_Raw(&g_sSensorWheel, ulWheelCapValues);
TI_CAPT_Raw(&g_sMiddleButton, ulMiddleValue);
//
// Print the measurements to the UART in the following order:
//
// Up, Right, Down, Left, Center
//
for(ulIndex = 0; ulIndex < 4; ulIndex++)
{
UARTprintf("%4d ", ulWheelCapValues[ulIndex]);
}
UARTprintf("%4d ", ulMiddleValue[0]);
//
// Write over the previous values in the next iteration.
//
UARTprintf("\r");
}
Also I would like to ask if there is an Capacitive Touch Software Library Programmers Guide that has been written for the Stellaris LM4F120. The one that is referenced through the wiki is for the MSP430, and appears to me that the way the capacitive touch is done between the two is completely different.
Any help that anyone can provide is greatly appreciated!
Lou