2017年3月9日 星期四

Examples for micropython at NodeMCU

https://github.com/iitzex/MicroPython-NodeMCU

 README.md

MicroPython-NodeMCU

Command for burn flash
boot.py : auto loading code after boot

deploy : quick command to modify the serial port and baud rate w/ fast speed
        port = /dev/tty.SLAB_USBtoUART
        baud = 921600
Examples for micropython at NodeMCU
led_on.py : light LED 
        GPIO setting, OUT
        Pin:D0

flash_key : pushing the flash button will light LED
        GPIO setting, IN, Timer w/ polling 
        Pin:D3

led_breath.py : make LED light and dim
        software PWM, Timer, w/ delay
        may cause reset w/o correct setting
        Pin:D0

led_breath_timer.py : make LED light and dim
        software PWM, Timer
        set each period w/ timer
        Pin:D0

stepper.py : use 28BYJ-48 5V DC stepper
        Pin:D1, D2, D3, D4

sonic.py : use HC-SR04 to measure distance
        Pin:D5, D6

lcd.py : show message on 2 line LCD Display
        Pin:D1, D2, D5, D6, D7, D8

沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...