adding flush
Seems to work changing timeout, but I need to wait fot its output
last porting , leds doesn't work