Why does the Arduino IDE work with NodeMCU? [closed]

痴心易碎 提交于 2019-12-13 07:46:26

问题


I know when we buy a NodeMCU, we get the NodeMCU firmware already installed in it. But how come we are able to use the Arduino IDE (used for C++ programming) with this dev kit?

How can we use a C++ IDE to work with a Lua-based firmware? What's wrong with my concepts here?


回答1:


"Lua based firmware" is a bit misleading as the core firmware itself is written in C (so is the Lua interpreter btw).

Checkout it's source code https://github.com/nodemcu

The nodeMCU firmware is erased and replaced by your Arduino sketch. You code it like any other Arduino.

You have to flash the NodeMCU firmware if you want to run Lua scripts on it again.

It's just two different pieces of software supporting the same micro controller.



来源:https://stackoverflow.com/questions/47508913/why-does-the-arduino-ide-work-with-nodemcu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!