GPIO Toggle Question
Hey mojo,
As Matt explained you can't toggle the pins manually if you assigned them to the i2c peripheral. It seems to me that you are using standard i2c specs, so you can use the i2c peripheral. If you configured the i2c in CubeMX correctly, you should already have a ready to use initialization(maybe you have to set some timings manually). A glance in the HAL reference manual should give you functions for writing on the i2c bus.
I would recommend you to read and understand the i2c chapter in the documentation of your controller. Afterwards try to read and understand the use of the HAL library and then try to understand some examples( i2c examples preferred in your case 😀 ). This would help you on your future projects with stm32 and HAL aswell!
Bab