Modifications

Sauter à la navigation Sauter à la recherche
1 961 octets ajoutés ,  5 mai 2016 à 14:19
Ligne 15 : Ligne 15 :     
{{traduction}}
 
{{traduction}}
 +
 +
Next up, on your computer, use a serial console program such as '''CoolTerm''' (Mac) or '''Putty''' (Windows) or '''screen''' (linux). Teraterm seems to dislike the initial 74400bps data stream from the ESP8266 so you can try it but you'll possibly need to reset the terminal software.
 +
 +
Connect up to the COM or Serial port used by your cable, at 9600 Baud
 +
 +
Make sure you have turned off any hardware handshake or flow control
 +
 +
{{ADFImage|FEATHER-ESP8266-NodeMCU-Lua-00.png|640px}}
 +
 +
Once the terminal software is connected, click the '''Reset''' button on the Feather HUZZAH ESP8266 board to reset it and have it print out the welcome message:
 +
 +
{{ADFImage|FEATHER-ESP8266-NodeMCU-Lua-01.png|640px}}
 +
 +
If you don't get this message, first check that the red/blue leds flickered when you press the reset button. If they didnt, make sure you've got the right baud rate selected in the software (9600)
 +
 +
== Hello World ==
 +
 +
Ok we can now turn on an LED. There is a red LED on each board, connected to '''GPIO #0'''
 +
 +
{{ambox|text=NodeMCU's pinouts are not the same as the Arduino/gcc pinouts. We print the Arduino pinouts on the board so watch out!}}
 +
 +
{{ambox|text=The Lua documentation for the ESP8266 has GPIO #4 and #5 swapped so if #4/#5 aren't working for you, try swapping!}}
 +
 +
{| class="wikitable"
 +
! Pin Notes
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| PCB/Arduino
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| NodeMCU/Lua
 +
|-
 +
|
 +
|-
 +
| No pullups!
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| 0
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| 3
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| 2
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| 4
 +
|-
 +
|  ||
 +
|-
 +
|
 +
|-
 +
| 3
 +
|-
 +
|  ||
 +
|-
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