IFD:Interaktive Elektronik 2012/code

From Medien Wiki
< IFD:Interaktive Elektronik 2012
Revision as of 13:49, 9 May 2012 by Mschied (talk | contribs) (Created page with "=== resistive Sensor === File:Resistive_Sensor_Steckplatine.png <source lang="c"> int mySensorValue; void setup () { Serial.begin(); } void loop () { mySensorValue = ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

resistive Sensor

Resistive Sensor Steckplatine.png

int mySensorValue;

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

void loop () {
  mySensorValue = analogRead(A0);
  Serial.print("The Sensor Value is: ");
  Serial.println(mySensorValue);
}