I did change the code a bit to turn the led on and off like you suggested Hippy.
I did find leds were better for monitoring the sda and scl pins I used a meter just touching the clk pin
actually restarted i2c working again(a logic probe did the same ) I guess the meter provided a pulse to get it back in sync. My setup was quite complicated I watching activity on every pin I dont want to go back there lol.
turning on and off at different lines of code.(these lines sometimes improve the situation by acting like pauses also)
Hippy suggestion is agood one as ususal you could test all the pins that way
just be aware touching sck or sda pins may start it working again.
Unfortunately when I had my setup working I didnt bother going back removing different commands
to see if that made any differrence and this would be very time consuming
just glad it was working so I could write some code and play lol.
I did find leds were better for monitoring the sda and scl pins I used a meter just touching the clk pin
actually restarted i2c working again(a logic probe did the same ) I guess the meter provided a pulse to get it back in sync. My setup was quite complicated I watching activity on every pin I dont want to go back there lol.
turning on and off at different lines of code.(these lines sometimes improve the situation by acting like pauses also)
Hippy suggestion is agood one as ususal you could test all the pins that way
just be aware touching sck or sda pins may start it working again.
Unfortunately when I had my setup working I didnt bother going back removing different commands
to see if that made any differrence and this would be very time consuming
just glad it was working so I could write some code and play lol.
Last edited: