Jump to content

NodeMCU Projects: Difference between revisions

Line 6:
= Small Projects =
 
== PlayingLED with GPIOON/OFF ==
 
<syntaxhighlight lang="python">
import machine
 
pin = machine.Pin(2, machine.Pin.OUT)
 
pin.value()
pin.value(1)
pin.value(0)
</syntaxhighlight>
 
== Toggle GPIO ==
 
<syntaxhighlight lang="python">
Cookies help us deliver our services. By using our services, you agree to our use of cookies.