当前位置:网站首页>Introduction to the use of Arduino progmem static storage area
Introduction to the use of Arduino progmem static storage area
2022-06-27 10:00:00 【perseverance52】
Arduino PROGMEM Introduction to the use of static storage area
keyword PROGMEM
because
Program storeandSRAMMemory is separate , So there is something like328PYes 32K Of FLASH Program store and 2K OfSRAMDynamic memory , Of course, ROM,PROGMEMStore data in flash memory ( Program ) Memory, not dynamic memorySRAMin .
promemA keyword is a variable modifier , It should only be used forpgmspace.hData types defined in . It tells the compiler “ Put this information into flash memory ”, Not the usual SRAM in .PROGMEMyespgmspace.hPart of the library . It is automatically included in IDE In the new version of . If you use it IDE Version below 1.0(2011), At the top of the program code, you need to add the header file library that contains the introduction , like this :#include <avr/pgmspace.h>- although
promemCan be used for a single variable , But it's only worth it if you need to store larger blocks of data , This is usually the simplest array ( Or others c++ data structure ). - Use
promemIt is also a two-step process . After storing the data in flash memory , It requires special methods ( function ), It's also defined inpgmspace.hIn the library , Read data from program memory to SRAM in ,
边栏推荐
- 【报名】基础架构设计:从架构热点问题到行业变迁 | TF63
- 【面经】云泽科技
- Freemarker
- Installation and use of SVN version controller
- R语言plotly可视化:可视化多个数据集归一化直方图(historgram)并在直方图中添加密度曲线kde、设置不同的直方图使用不同的分箱大小(bin size)、在直方图的底部边缘添加边缘轴须图
- Pakistani security forces killed 7 terrorists in anti-terrorism operation
- This application failed to start because it could not find or load the QT platform plugin
- Use aspese Cells convert Excel to PDF
- Product strength benchmarking seal /model 3, with 179800 pre-sales of Chang'an dark blue sl03
- Your brain is learning automatically when you sleep! Here comes the first human experimental evidence: accelerate playback 1-4 times, and the effect of deep sleep stage is the best
猜你喜欢

导师邀请你继续跟他读博,你会不会立马答应?

SVN版本控制器的安装及使用方法

Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!

新旧两个界面对比

Oracle连接MySQL报错IM002
![leetcode:968. Monitor the binary tree [tree DP, maintain the three states of each node's subtree, it is very difficult to think of the right as a learning, analogous to the house raiding 3]](/img/70/3954b0871cc31d24ae016eb99d871e.png)
leetcode:968. Monitor the binary tree [tree DP, maintain the three states of each node's subtree, it is very difficult to think of the right as a learning, analogous to the house raiding 3]

leetcode:968. 监控二叉树【树状dp,维护每个节点子树的三个状态,非常难想权当学习,类比打家劫舍3】

用户认证技术

QT运行显示 This application failed to start because it could not find or load the Qt platform plugin

前馈-反馈控制系统设计(过程控制课程设计matlab/simulink)
随机推荐
手把手带你玩摄像头模组
12 necessary tools for network engineers
MySQL proficient-01 addition, deletion and modification
新旧两个界面对比
C language learning day_ 05
R语言使用econocharts包创建微观经济或宏观经济图、demand函数可视化需求曲线(demand curve)、自定义配置demand函数的参数丰富可视化效果
. Net
Freemarker
Technology is as important as business. It is wrong to favor either side
Win10快捷键整理
This application failed to start because it could not find or load the QT platform plugin
leetcode待做题目
JS array splicing "suggested collection"
如何获取GC(垃圾回收器)的STW(暂停)时间?
【OpenCV 例程200篇】211. 绘制垂直矩形
导师邀请你继续跟他读博,你会不会立马答应?
C语言学习-Day_05
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
QT运行显示 This application failed to start because it could not find or load the Qt platform plugin
.NET 中的引用程序集