Hi m.a.r.v.i.n,

nochmals danke für deine Mühe, besonders nett ist dass du noch zusätzlich ein "Goody" beigelegt hast. Wenn ich das richtig sehe hast du auch schon die Anpassungen in den Dateien i2c.h und lcd.h vorgenommen.

Wenn ich die Codes kompiliere kriege ich noch eine Warnung:

Code:
Build started 8.2.2008 at 07:36:12
set -e; avr-gcc -MM -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=lcd.lst lcd.c \
    | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > lcd.d; \
    [ -s lcd.d ] || rm -f lcd.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=pcf8574.lst pcf8574.c \
    | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > pcf8574.d; \
    [ -s pcf8574.d ] || rm -f pcf8574.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=i2c.lst i2c.c \
    | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > i2c.d; \
    [ -s i2c.d ] || rm -f i2c.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
    | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
    [ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=lcd-demo.lst lcd-demo.c \
    | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > lcd-demo.d; \
    [ -s lcd-demo.d ] || rm -f lcd-demo.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

avr-gcc -c -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=lcd-demo.lst lcd-demo.c -o lcd-demo.o
avr-gcc -c -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
avr-gcc -c -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=i2c.lst i2c.c -o i2c.o
i2c.c:45: warning: function definition has qualified void return type
avr-gcc -c -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=pcf8574.lst pcf8574.c -o pcf8574.o
avr-gcc -c -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=lcd.lst lcd.c -o lcd.o
avr-gcc -mmcu=atmega8 -I. -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=lcd-demo.o lcd-demo.o asuro.o i2c.o pcf8574.o lcd.o   --output lcd-demo.elf -Wl,-Map=lcd-demo.map,--cref -lm
avr-objcopy -O ihex -R .eeprom lcd-demo.elf lcd-demo.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
    --change-section-lma .eeprom=0 -O ihex lcd-demo.elf lcd-demo.eep
c:\WinAVR\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used
avr-objdump -h -S lcd-demo.elf > lcd-demo.lss
Size after:
lcd-demo.elf  :
section    size      addr
.text      3250         0
.data       262   8388704
.bss          1   8388966
.stab       888         0
.stabstr     95         0
Total      4496


Errors: none
-------- end --------
Build succeeded with 1 Warnings...
kann ich die ignorieren?