Arduino F() 宏的实现 [英] Implementation of Arduino F() macro

查看:55
本文介绍了Arduino F() 宏的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解 Arduino 中的 F() 宏实际上对 PGMEM 和 RAM 做了什么以及对运行时的影响是什么.有人可以指出定义此宏的文件吗?

I'm trying to understand what the F() macro in Arduino actually does with PGMEM and RAM and what are the runtime implications. Can someone point me at the file that defines this macro?

推荐答案

这可能是一个较旧的版本,但定义它的地方是 Wstring.h,如 这里.

This may be an older version, but one place where it is defined is Wstring.h as in here.

你可以自己找到:如果你安装了Arduino,你可以搜索安装目录.WString.h 应该在 hardware\arduino\cores\arduino\

You can find it yourself: if you installed Arduino you can search the installation directory. WString.h should be in hardware\arduino\cores\arduino\

这篇关于Arduino F() 宏的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆