Home
Features
_Multi DropDown
__DropDown 1
__DropDown 2
__DropDown 3
_ShortCodes
_SiteMap
_Error Page
Mega Menu
Documentation
_Web Documentation
_Video Documentation
Home
MicroPython LED Blinking
MicroPython LED Blinking
July 27, 2022
LED BLinking using internal LED GPIO-2
from machine import Pin import time led = Pin(2, Pin.OUT) while True: led.value(0) time.sleep(1) led.value(1) time.sleep(1)
Social Plugin
Driver
CH340 Driver
Aplikasi
MPY Blockly
Thonny
http://espblock.ru/
PIN
PIN Initialization
from machine import Pin
d3 = Pin(0, Pin.IN, Pin.PULL_UP) #button
d4 = Pin(2, Pin.OUT) # led
d0 = machine.Pin(16, Pin.OUT)
d1 = machine.Pin(5, Pin.OUT)
d2 = machine.Pin(4, Pin.OUT)
d5 = machine.Pin(14, Pin.OUT)
d6 = machine.Pin(12, Pin.OUT)
d7 = machine.Pin(13, Pin.OUT)
d8 = machine.Pin(15, Pin.OUT)
ARTIKEL
3/recent/post-list
Facebook
Subscribe Us