This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI interface slave address

Hi,

I need to interface a LED driver (PCA9632) using TWI. In the TWI APIs I can't see any way to pass the slave address to the TWI instance. Speaking about the nrf_drv_twi_init function, there is no field in the parameters structs that accepts a slave address. What's the right way to use the TWI interface ?

Thanks, Paolo.

Parents Reply
  • since you didn't post the error hard to say really - however if TWI_COUNT is undefined, how about .. defining it. Most likely you've not defined any TWI instances to use leaving the config file at the default which is that there aren't any defined, or you haven't included a config file at all. Just looking briefly at the code and searching for TWI_COUNT should take about 10 seconds to find and fix.

Children
No Data
Related