text: import time
  import subprocess
  
  #Idea for 2 trains display in same time with 1 screen beetween : while true ; j++; i=j%img_size + 20
  
  img_size=58
  
  for j in range(0,6):
      cmd = [ "./sshpass", "-p", "raspberry", "ssh", "-p", "502" + str(j), "pi@peri", "sudo ./trains/lcd_display -m ' '"]
      subprocess.call(cmd)
  
  for i in range(1,img_size):
      cmds = []
      for j in range(0,6):
          if i > j*20:
              offset=max(0,i-(20*(j+1)))
              padding=max(0,(20*(j+1))-i)
              cmd = [ "./sshpass", "-p", "raspberry", "ssh", "-p", "502" + str(j), "pi@peri", "sudo ./trains/lcd_display trains/trains " + str(offset) + " " + str(padding)]
              cmds.append(cmd)
  
      print("----")
      for x in cmds:
          print " ".join(x)
          subprocess.call(x)
      time.sleep(1)
  
  