Introduction - If you have any usage issues, please Google them yourself
Using the comparator B in MSP430F6638 to determine the charge and discharge of the touch button, calculate the oscillation frequency of the capacitor through the CPU clock, and then determine whether the button is touched. If there is a touch button, the corresponding LED converts the current state.