Cannot upload to Arduino UNO after usinc I2C

Hi, I'm running into the classic avrdude error: stk500_recv() programmer is not responding and i cannot find any solution. Other times I had this problem uninstalling and reinstalling drivers solved it but his time not.

I don't know if it's relevant but the last code I succsesfully uploaded opened a slave I2C communication, something like this:

void setup(){

I dont know if it has something to do...

I'm using Windows 10 and Arduino IDE 1.6.13

Thanks in advanced

Try to use the latest 1.81. version of the IDE. You can use it as "portable" version; just search for portable IDE here.

Normally a sketch won't break the communication between IDE and your board. There must be something else.