Menu

glcdprint problem

2018-06-05
2018-06-05
  • stan cartwright

    stan cartwright - 2018-06-05

    I noticed GLCDPrint (152,0,str(v1) + " - " + str(v2) + " - ",ILI9341_YELLOW)
    gives array sysfnstring1 not declared.
    GLCDPrint (152,0,str(v1) + " - ",ILI9341_YELLOW) is ok

     
    • Anobium

      Anobium - 2018-06-05

      I guess we should investigate and resolve this issue.

      A triple, or greater, string concat is not supportted as a parameter to a function or subroutine. str(v1) + " - " + str(v2) + " - " is a four string concat. To workaround simple construct a temp_string and then pass the temp_string to the method.

      temp_string = str(v1) + " - " 
      temp_string = temp_string + str(v2) 
      temp_string = temp_string  + " - "
      
       
  • stan cartwright

    stan cartwright - 2018-06-05

    Thanks for replying, printing several vars with trailing spaces in one line was the dream but the longer workaround is ok now I know.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.