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

Where is TWI_SCL_M ARDUINO_SCL_PIN defined?

I'm using SDK 15.3.0 example twi_scanner with Segger Embedded Studio. I do a search entire solution for TWI_SCL_M and the only location it shows up is in main under the twi_master_init function. I can't find where the file where the #define TWI_SCL_M is located to tell me what pin it is using.

I searched the forum and there seem to be hint of config.h files, but searching the entire SDK 15.3.0 folder didn't yield anything.


Can anyone help?

Parents Reply Children
  • Thanks Patrick! I found ARDUINO_SCL_PIN, but no TWI_SCL_M.

    I wonder why SES doesn't find it with its search function.

  • The only place I am finding TWI_SCL_M defined (pin 3 btw) is in the config.h file located in the twi_master_with_twis_slave example, not the twi_scanner example. Are you trying to combine the two examples?

  • Thanks Patrick! Yes, I was trying to combine the two. Is pin 3 defined in the project itself? The SES search didn't turn up any other location than in main.c for me.

    Edit: I found the config.h file in the project folder, just a bit annoyed SES didn't find it in the search.