IFD:Interaktive Elektronik 2012/code: Difference between revisions

From Medien Wiki
m (Created page with "=== resistive Sensor === File:Resistive_Sensor_Steckplatine.png <source lang="c"> int mySensorValue; void setup () { Serial.begin(); } void loop () { mySensorValue = ...")
(No difference)

Revision as of 13:49, 9 May 2012

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);
}