I used the configurator to set up my slave address (i2c object is g_i2c). However, at one point, I need to change the address of the device I am talking to (everything else remains the same): //Step 3: Change Slave Address Reference g_i2c_cfg.slave = EEPROM_HDR_ADDR; //Assigne new address It fails because "assignment of member 'slave' in read-only object." How do I change to the slave address I want to communicate with.
↧