Bug with python mode

In short, b/c the global variable txt isn’t used as such anywhere within your sketch, but only as a local variable inside callback draw(), you should delete txt = '1'; for clarity of intention. :yin_yang:

BtW, semicolons aren’t needed in Python, unless we want more than 1 statement in the same line. :wink:

3 Likes