Library for RAM chip

If that's what you wanted, why does it return zero?

Your _write method also (unusually) returns a value that is always zero.