Skip to main content
Visitor II
February 21, 2024
Question

TCS with wire

  • February 21, 2024
  • 1 reply
  • 1351 views

I am starting a project in which I need touch sensors. With the help on chat gpt I have come up with this code. 

while (1)

{

key = HAL_TSC_GroupGetValue(&htsc, TSC_GROUP1_IO2);

printf("%d\n",key);

/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */

}

I have sampling on group 1, I01 and the sensing on group 1 IO2. I have connected the sampling IO1 to GND pin and the IO2 I have left in the air for me to touch (wire). The problem is that whatever I do, I get printed out value of 0. Thank you for your help.

    This topic has been closed for replies.

    1 reply

    Visitor II
    February 22, 2024

    Ask ChatGPT for help (not us)

    mihahehAuthor
    Visitor II
    February 22, 2024

    Thank you for helping me, so mature of you. Like I didn't try that already.