NodeMCU Projects: Difference between revisions
Content added Content deleted
Line 493: | Line 493: | ||
* Scroll Text: |
* Scroll Text: |
||
<syntaxhighlight lang="python"> |
<syntaxhighlight lang="python"> |
||
def disp(txt,n,t): |
|||
for i in range(10): |
|||
for i in range(-n,n): |
|||
screen. |
screen.text(txt,-i,0,1) |
||
screen.show() |
|||
time.sleep(t) |
|||
screen.init_display() |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||