An easy program to debug and test I2C systems
- Mastermode:
- Type into the serial console:
- [r/w] [address] [quantityToRead/byte0] [byte1] [byte2] [byte3] ...
- Seperate the blocks with spaces or commas
- Example (write to 0x30): w 0x30 120 30 115 or w48,120,30,115
- Example (read from 0x20): r 0x20 4 or r32 4
- ! If the entered query is not send by pressing enter try pressing s (e.g. by screen)
- Slavemode:
- Supports listening only! (until now...)
- To configure slavemode uncomment
#define slaveAddress
in line 27 and enter the address - The arduino will display the data on the serial console