The touch sensor

void Setup () 
{ 
  the pinMode (A5, the INPUT);    // set the output mode pin A5   
  Serial.begin ( 9600 ); // set the baud rate 9600 
} 
 void Loop () 
{   
  // PUT main your code here Wallpaper, Repeatedly RUN to:   
  Serial.println (analogRead (A5)); // serial output the read value A5   
  delay ( 200 );    // delay 200 ms 
}

 

Guess you like

Origin www.cnblogs.com/Sonny-xby/p/11073309.html