Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Der Richtungsdetektor > Arduino-Sketch-Code

Arduino-Sketch-Code

int analogWertPin0;
int analogWertPin1;

void setup(){
  Serial.begin(9600);
}

void loop(){
  int messwert;
  analogWertPin0 = analogRead(0);
  analogWertPin1 = analogRead(1);
  messwert = analogWertPin1 - analogWertPin0;
  Serial.println(messwert);
}

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial