finished modernising i2cmem [smf]