【问题标题】:What is the algorithm to convert .ino files to .hex?将 .ino 文件转换为 .hex 的算法是什么?
【发布时间】:2017-05-12 14:15:27
【问题描述】:

我需要将我的 Arduino 代码 (.ino) 转换为 .hex 文件。 我不想使用 IDE。 有没有办法做到这一点?

如果问题太简单,我很抱歉。

【问题讨论】:

  • 这叫编译。
  • @gre_gor 你能解释一下如何在没有 IDE 的情况下做到这一点吗?
  • 您可以将 IDE 可执行文件用作命令行工具;)

标签: compilation arduino arduino-uno avr-gcc


【解决方案1】:

Platform IO 应该是您的问题的合适解决方案。您可以在 Platform io 中编写 C++ 代码,然后将其转换为 .hex。此外,它还可以导入 Arduino 项目。

Platform IO 基本上是支持 Atom 代码编辑器的包。由于 Atom 是开源编辑器,您可能会发现其他微控制器也更容易使用。

原子:https://atom.io/

平台 IO:http://platformio.org/

【讨论】:

  • 感谢您的建议。我通过了platformIO。但我觉得有点不知所措。实际上,我想从 Android 编译 Arduino 代码。我不想使用任何 IDE。我遇到了Physicaloid library。但它需要 .hex 文件。希望现在问题更清楚了!
  • 您是否为此从头开始设计应用程序?
  • 是的。但它并不完全是一个 IDE。只是其中的一部分。
  • 您可以参考 Play 商店中的 ArduinoDroid 应用程序。编码器表示该应用程序包含 IDE 和上传器。另外,考虑一下这个例子,你不能在没有 turbo c 的情况下编译 c 代码,你必须在应用程序中使用 Arduino 编译器。希望这可以澄清一些事情。
猜你喜欢
  • 2019-07-02
  • 2018-03-11
  • 1970-01-01
  • 1970-01-01
  • 2019-06-04
  • 1970-01-01
  • 2018-09-15
  • 1970-01-01
  • 2011-10-08
相关资源
最近更新 更多