Home
Features
_Multi DropDown
__DropDown 1
__DropDown 2
__DropDown 3
_ShortCodes
_SiteMap
_Error Page
Mega Menu
Documentation
_Web Documentation
_Video Documentation
Home
Input From Button MPY-BLockly
Input From Button MPY-BLockly
September 30, 2022
Pin D3 as INPUT (Button)
Pin D4 as OUTPUT (LED/buzzer)
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