ラズパイやArduinoでセンサーなどを使うときにI2C通信がよく使われています。この場合、ラズパイやArduinoがマスターで、センサーがスレーブになって、マスターからスレーブのデータを書き込んだり、データを読み出したりします。 センサーなどの代わりに ...
This library gives easy control over the 16 pins of a (I2C) MCP23017 chip. This IC is strongly related to the MCP23S17 SPI port expander - https://github.com ...
int i2c_write_buff(i2c_master_dev_handle_t dev_handle,int reg,uint8_t *buf,uint8_t len); int i2c_master_write_read_dev(i2c_master_dev_handle_t dev_handle,uint8_t ...