23LC1024 SRAM Library

MathiasVDA:
I've got 2 of thoose RAM chips. One with SS on 30 and one on 32. I've adjusted the script accordingly with no success. I'll debug some more tonight.

Just for your information: Ive been writing that script in my previous post myself before I knew of this lib. Some problems I've had with them before:

  • Setting the SS pin to high in setup()
  • Putting 'byte' before SRAM_READ and iunt_8 before the return variable

Right, I think I see what the problem was. I had not allowed for non standard (hardware) SS pins. I have altered the library and the test sketch (zip file attached to first post in this thread) and testing it with my Mega using pin 9 as SS works fine (have also tested it using pin 30 but UNO does not have a pin 30 so altered test sketch to use 9 instead)