Skip to main content

02 - Touch Pin

Overview


The touch pins 1 and 2 of the Grape Board are two IO ports with Digital, Analog and PWM functions, which support connecting external modules for use and can be connected through alligator clips to DuPont wires<br />It is usually used as a touch pin during normal times, and can be touched directly, or touched after being connected through conductive adhesive tape<br />Picture 11.png

How to use it


Coding Blocks

Coding BlockFunctionality
image-20240321144943597Returns True when the pin is pressed, False otherwise
Can change the touch object using the dropdown menu

Case: Smart Touch Desk Lamp

  • Effect: Control the RGB lights on and off by touching P1 and P2

  • Program blocks

    image-20240321145023519

    danger

    Solution to Unresponsive or Insensitive Touch

  • Reason: Touch may be insensitive due to dry skin or environmental factors

  • Solution: When touching, use the other hand to touch the negative terminal of the grape board to connect the two image-20240321145232811 :::