Spi or i2c eeprom?

Hello, Is there a way to read any eeprom from a spi or i2c chip without having to libraries? I know this is a silly question But I was just curious. I see a lot of these readers and writers out there and curious if anyone has done one with Arduino?

Joseph

A library is nothing but code. Anything a library can do can be done without a library.

Some libraries are worth looking at to see how things are done, all depends on the writer and the reading skills of those looking into it.

You might as well wonder whether a cake can be made without buying a box of cake mix. There are no ingredients in a box of cake mix that you can't buy and use yourself to make a cake from scratch.

Some ppl I count myself would prefer not to use a library, as I like to write code and I like to know exactly how things are bring done.

For a few odd things this would mean making a career of some small corner of programming. In those cases I benefit from the work of others who have chosen to share by using the mechanism which is a library.

HTH

a7

1 Like

Hello alto777, Thanks for the reply back. WIth all the libraries for so many eeproms out there. The arduino it'self can not support all of them. Not enough room. And having to recompile everytime It can be a little frustration. I was try to see if there is a easy way of reading something like that.

All the source code for any sketch you compile and run is on your computer somewhere. Every last line of any library you've installed, so you can read any of them and see what the magic is.

I say somehwere, it's not a secret or anything, but I don't tend to remember too much, so any time I've had to find out anew just where.

I think most libraries can also be seen on github where authors maintain their code. Documentation for Arduino stuff will often have a link.

Here

for example, is a doc page and you will see a "go to repository" link where the code, and examples if you are lucky, and good documentation if you are even luckier can be found.

Always at least the code. Crack it open and read.

a7

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.