Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setup Server
- ============
- - Install nodejs
- - Taruh file lampu.n.js (https://pastebin.com/jhUDhrHp) ke server
- - Jalankan. $ node lampu.n.js
- Setup board
- ===========
- - Install driver board
- - Install python, pip. Saat setup register ke PATH Environment variable
- - Install esptool. $ pip install esptool
- - Kosongkan firmware di board. $ esptool.py --port COM5 erase_flash
- - Download micropython-esp8266
- - Install micropython-esp8266. $ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin
- - Install ampy. $ pip install adafruit-ampy
- - Download lampu.py (https://pastebin.com/G0SeTPfa)
- - Install lampu.py ke board. $ ampy --port COM5 put lampu.py main.py
- Menjalankan
- ===========
- - Siapkan hotspot SSID:test password:wifiwifi
- - Install dan jalankan putty, pilih portnya.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement