ESP

From base48
Revision as of 17:16, 9 April 2016 by imported>Rmarko (baudrates, pins)

ESP8266


<syntaxhighlight lang="bash">Early boot

$ miniterm.py /dev/ttyUSB0 74880

Program

$ miniterm.py /dev/ttyUSB0 115200

sometimes

$ miniterm.py /dev/ttyUSB0 9600

Flashing custom build nodemcu

./esptool.py -b 921600 write_flash -fm dio 0x00000 bin/0x00000.bin 0x10000 bin/0x10000.bin


NodeMCU build

customization

app/include/user_config.h app/include/user_modules.h app/include/user_version.h</syntaxhighlight>


<syntaxhighlight lang="bash">triac_reg_pinout

0: GPIO16 1: GPIO5 230 sense 2: GPIO4 triac out 3: GPIO0 (Special: Bootloader when low) 4: GPIO2 5: GPIO14 debug led 6: GPIO12 ws2812 4x4 array 7: GPIO13 8: GPIO15 RX: GPIO3 TX: GPIO1 A0:</syntaxhighlight>


<syntaxhighlight lang="bash">toggle(dir_pin)

slider_pinout

0: GPIO16 1: GPIO5 enable 2: GPIO4 direction 3: GPIO0 (Special: Bootloader when low) 4: GPIO2 debug led 5: GPIO14 step 6: GPIO12 ws2812 4x4 array 7: GPIO13 8: GPIO15 RX: GPIO3 TX: GPIO1 A0:</syntaxhighlight>