If you go to the link i provided in the original post you can see the board, i am just using a ATmega32u4 with the Arduino Leonardo bootloader installed, and then the minimum things to make it works, such as the powersupply, quartz crystal and a reset button. Basically its a Leonardo copy and should behave as one (Its my first time using a Leonardo, but i needed to use this chip because of the USB interface),
The exact same program worked for a Nano, and without changes it didnt work on the Leonardo, the problem i see is tha it cant use the I²C or in this case the Wire bus correctly.
pinMode(2, OUTPUT); // Enable pinMode(3, OUTPUT); // S2
As you can see the PD0 connects to D3 which is the pin 18 from the microcontroller, the SCL. And the PD1 to D2, pin 19 of the microcontroller, the SDA. Beleive me i have testes if everything was correct but nothing. Tomorrow i will test again in the office, i can also draw the onnections and show here.