or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
ESP8266
Pinout
Remember the numbers to use are the ones after GPIO (ej pin 2 is GPIO2) you can also use the defined name of the pin (ej defined name D4 is GPIO2):
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Using Arduino IDE
Install ESP8266 board in arduino IDE adding this address on Aditional Board manager URL's window on the preferences menu item:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Install ESP8266 board in Arduino Board Manager:
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →You should now see the ESP8266 board in your Arduino Boards menu.
Select NODE MCU on the
Tools / Ports
menu.Installing the Drivers
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Go to the page below and look for the Driver that matches your operative system.
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
If you have one of the bigger boards that says LoLin on the back use this driver instead:
https://sparks.gogo.co.nz/ch340.html
Download and install them as any other software. Sometimes is necessesary rebooting the machine
Now you should another port on your
Tools / Ports
menu.Test the board
Files -> Examples -> ESP8266 -> Blink
exampleIf everything works fine your ESP8266 should be blinkig!
Input/Output
Digital input/output can be used on all GPIO.
DigitalWrite
DigitalRead
AnalogRead
Esp8266 only has one analog channel that can be used on pin A0.
AnalogWrite
PWM has a resolution of 10 bits (1024 values) at 1kHz and can be used on pins D2, D5, D6 and D8:
WiFi
File -> Examples -> ESP8266WiFi -> WiFiClient
Installing a library
To open the Arduino library manager go to:
Sketch → Include Library → Manage libraries.
There you can search and install all kind of libraries.
Useful references
ESP8266 Arduino Core reference