The Espressif ESP8266 NodeMCU is a small yet powerful SoC that is usually used for WiFi applications thanks to its built-in radio.
Interface | Hardware Supported | TinyGo Support |
---|---|---|
GPIO | YES | YES |
UART | YES | YES |
SPI | YES | Not Yet |
I2C | NO (software only) | NO |
ADC | YES | Not Yet |
PWM | YES | Not Yet |
WiFi | YES | Not Yet |
Documentation for the machine package for the ESP8266 NodeMCU
You need to install the same toolchain for the ESP8266 as is used for the ESP32 to use the ESP8266 with TinyGo:
In addition, you must install the esptool
flashing tool:
https://github.com/espressif/esptool#easy-installation
Now you should be able to flash your board as follows:
Build and flash your TinyGo code using the tinygo flash
command. This command flashes the ESP8266 with the blinky1 example:
tinygo flash -target=nodemcu -port=/dev/ttyUSB examples/blinky1
The ESP8266 board should restart and then begin running your program.
You need to install the same toolchain for the ESP8266 as is used for the ESP32 to use the ESP8266 with TinyGo:
https://docs.espressif.com/projects/esp-idf/en/release-v3.0/get-started/macos-setup.html
In addition, you must install the esptool
flashing tool:
https://github.com/espressif/esptool#easy-installation
Now you should be able to flash your board as follows:
Build and flash your TinyGo code using the tinygo flash
command. This command flashes the ESP8266 with the blinky1 example:
tinygo flash -target=nodemcu examples/blinky1
The ESP826 board should restart and then begin running your program.
You need to install the same toolchain for the ESP8266 as is used for the ESP32 to use the ESP8266 with TinyGo:
https://docs.espressif.com/projects/esp-idf/en/release-v3.0/get-started/windows-setup.html
In addition, you must install the esptool
flashing tool:
https://github.com/espressif/esptool#easy-installation
Now you should be able to flash your board as follows:
Build and flash your TinyGo code using the tinygo flash
command. This command flashes the ESP826 with the blinky1 example:
tinygo flash -target=nodemcu examples/blinky1
The ESP826 board should restart and then begin running your program.
Goes here
Goes here