EasyManua.ls Logo

Texas Instruments MSP430

Texas Instruments MSP430
413 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
398
{
P1OUT ^= BIT0;
P1OUT |= BIT6;
}
else
{
P1OUT &= ~BIT6;
}
sleep(DELAY);
}
}
The main function is perhaps the smallest one here. Except for the other parts with which by now we
are familiar, there are a few new lines of code. Just before the main loop, the two lines of code right
above it, initialize the capacitive touch sensor. Number 6 in the function TI_CAPT_Update_Baseline
states the number of samples to capture for accurately sensing a touch. If a valid touch is detected,
the LEDs of Launchpad board are toggled.
Demo
Demo video: https://youtu.be/sh8nkoI2XKw.

Table of Contents

Other manuals for Texas Instruments MSP430

Related product manuals