arduino PROGMEM
时间: 2023-10-06 15:14:27 浏览: 139
arduino程序包
5星 · 资源好评率100%
The PROGMEM keyword in Arduino is used to store data in the program memory instead of the SRAM memory. This is useful when you have large amounts of data that need to be stored but you have limited RAM available. By storing the data in program memory, you free up space in the SRAM memory for other operations. To use PROGMEM, you need to declare your variable or array with the keyword PROGMEM and use special functions to access the data stored in program memory. For example, the pgm_read_byte() function is used to read a byte of data from program memory.
阅读全文