Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-04 Thread Jeffrey A. Wormsley via fpc-pascal
, 2023 at 4:41 PM Bo Berglund via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > On Mon, 3 Apr 2023 14:37:48 -0400, "Jeffrey A. Wormsley via fpc-pascal" > wrote: > > >I noticed you put the part number in the original email. > > > >Interestingly, the

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Jeffrey A. Wormsley via fpc-pascal
I noticed you put the part number in the original email. Interestingly, the data sheet mentions 64 byte pages, and 1,000,000 erase cycles, but does not mention the need to erase a page before writing. So perhaps this part does not have that restriction. If you're making a library specifically fo

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Jeffrey A. Wormsley via fpc-pascal
erglund via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > On Mon, 3 Apr 2023 08:42:12 -0400, "Jeffrey A. Wormsley via fpc-pascal" > wrote: > > >> > >> i2c_read_reg works too inasmuch as it does not error out, but it > returns FF > >> wha

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Jeffrey A. Wormsley via fpc-pascal
> > i2c_read_reg works too inasmuch as it does not error out, but it returns FF > whatever addres I read like the i2c-tools command does. > I am not sure that it is correct though... > Yes this is expected, as eeproms erase to $FF. You can write to the same byte as many times as you want, as long