Hallo an alle
Ich hab das mal geändert:
Nur wenn ich es compilieren will, dann bekomm ich immer 2 Fehlermeldunden:Code:#include <avr/io.h> #include <stdlib.h> #include "i2c.h" //Procyon I2C LiB #define LM75_ADRESS 0x97 int lm75_read(void); struct TEMPERATUR { uint8_t high; uint8_t low; } temp; int lm75_read(void) { i2cSendStart(); i2cSendByte(LM75_ADRESS); //Sende Adresse mit write Bit i2cSendByte(0x00); //Temperature Register i2cSendStart(); i2cSendByte(LM75_ADRESS | 1); //Sende Adresse mit read Bit temp.high = i2cReceiveByte(FALSE); temp.low = i2cReceiveByte(FALSE); i2cSendStop(); } int main(void) { i2cInit(); i2cSetBitrate(100); lm75_read(); return(0); }
lm75.c:23: error: void value not ignored as it ought to be
lm75.c:24: error: void value not ignored as it ought to be
Warum???
Danke im Voraus
Gruß Robert







Zitieren
Lesezeichen