more i2c tools

- i2c_core.c provides a higher level API
- rdi2c/wri2c use that to read/write 16bit addr+data registers