本文介绍了Arduino IDE为什么可以与NodeMCU一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道购买NodeMCU时,已经安装了NodeMCU固件.但是我们怎么能在这个开发工具包中使用Arduino IDE(用于C ++编程)呢?

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?

我们如何使用C ++ IDE与基于Lua的固件一起使用?我在这里的概念怎么了?

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

推荐答案

基于Lua的固件"有点误导,因为核心固件本身是用C编写的(Lua解释器btw也是如此).

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

检出其源代码 https://github.com/nodemcu

nodeMCU固件被擦除,并由您的Arduino草图代替.您可以像其他Arduino一样对它进行编码.

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

如果要再次在其上运行Lua脚本,则必须刷新NodeMCU固件.

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.

这篇关于Arduino IDE为什么可以与NodeMCU一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-20 16:49