fseek($i2c,$slave*128);// 256 per slave, but slave are only even
@@ -364,7 +438,8 @@ function i2c_read256b($slave=0xa0,$bus=1,$extrausec=0) { //will read 256 bytes f
return$data;
}// end of i2c_read256b ()
//this EEPROM writes only 4 bytes sequentionally (only 2 LSBs are incremented)
functioni2c_write256b($data,$slave=0xa0,$bus=1,$extrausec=0){//will write up to 256 bytes $data to slave (address is 8-bit, includes r/~w). EEPROM should be un-protected
functioni2c_write256b($data,$slave=0xa0,$bus=4,$extrausec=0){// will write up to 256 bytes $data to slave (address is 8-bit, includes r/~w). EEPROM should be un-protected