Gast
#135450
HAllo, bin gerade dabei zwei mega8 über ic2 zu verbinden. Die hardweare ist soweit gebaut, nur an der software haperts. Das prog für die megas will ich in bascom schreiben. Mit hilhe des Bascom tuts versuch ich zur zeit ein prog zusammenzuschustern. Doch schon nach kurzer zeit kamm auch schon das erste problem. In dem Quellcode, dem ich der Hilfe entnommen hab steht: Config Sda = Portb.5 Config Scl = Portb.7 I2CINIT Dim X As Byte , Slave As Byte X = 0 'reset variable Slave = &H40 'slave address of a PCF 8574 I/O IC I2creceive Slave , X 'get the value Print X 'print it was ist mit slave adress gemeinnt? Welche hat ein mega8? gruß, xeus