NodeMCU Projects: Difference between revisions
Content added Content deleted
Line 532: | Line 532: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
* Flash all the LEDs |
|||
<syntaxhighlight lang="python"> |
|||
def flash(x,y,z): |
|||
for i in range(x): |
|||
d.fill(1) |
|||
d.show() |
|||
time.sleep(y) |
|||
d.fill(0) |
|||
d.show() |
|||
time.sleep(z) |
|||
flash(3,0.2,0.2) |
|||
</syntaxhighlight> |
|||
== Display Info using Urequests == |
== Display Info using Urequests == |