This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://gist.github.com/maly/3668e069c78b94843812c3140d9fa960 | |
// Read and write I2C protocol (without Bus pirate or other complex tool) | |
// Ideal for Arduino Pro Micro or Leonardo with USB serial | |
// Usage: | |
// 50! : set default address to 0x50 | |
// .1213 : write 0x12 0x13 bytes to default address | |
// 60.a1 : write 0xa1 to address 0x60 | |
// ?03 : read three bytes from default address |