#include <Wire.h> //Bibliothek mit wichtigen Befehlen für I2C Kommunikation
#define PCF 0x48 //Mein Test ICbyte adcvalue0, adcvalue1, adcvalue2, adcvalue3;/* * adc0 = Poti * adc1 = LDR * adc2 = Free * adc3 = NTC */void setup(void) { Wire.begin();        // Bus startenSerial.begin(115200);}
long alt = 0;void adc(){  if(millis() - alt > 500)  {    Wire.beginTransmission(PCF);   Wire.write(0x04);   Wire.endTransmission();   Wire.requestFrom(PCF, 5);      adcvalue0=Wire.read();   adcvalue0=Wire.read();   adcvalue1=Wire.read();   adcvalue2=Wire.read();   adcvalue3=Wire.read();      Serial.print(adcvalue0);   Serial.print(" ,");   Serial.print(adcvalue1);   Serial.print(" ,");   Serial.print(adcvalue2);   Serial.print(" ,");   Serial.print(adcvalue3);   Serial.println();   alt = millis();  }}void loop(void) {  adc();}