and sorry but my problem is a bit hard to explain:
My Leonardo sends a lot of data to my pythonprogram via the serial connection over USB. Baudrate is set to 9600 but it seems to be that i receive a lot more characters than possible with that speed. As far as i understood, that normally would be around 1,2 bytes per ms but my logger in python shows me 30-40 characters arriving each ms. That is something, i dont understand here. (The mass of data send for the time is only for debugging)
Anyway, the main problem is as follows: I reset the Leonardo and the program runs without a problem sending lots of (and maybe way too much) data via the Serial wire. At this time, the Leonardo is connected to the computer but no program is listening on the serialport yet. Then i start my pythonprogram, Leonardo continues to run normal sending mass of data that i do log in my python program. The pythonstuff does not send anything to the leonardo while running. Then i exit the pythonprogram and exactly from this moment, the Leonardo is still working but very slow. In normal operation, the main loop takes about 12-13 ms with my code but now this could use up to 40 seconds ! But it still runs... As soon, as i start my pythonprogram again , the Leonardo goes back to normal speed. This is all the same with opening and closing the SerialMonitor from the Arduinosoftware.
I have no idea where to look for the problem, maybe one of you.