方法: 使用avr-libc提供的宏定义: #define pgm_read_float_near(address_short) __LPM_float((uint16_t)(address_short)) //Read a float from the program space with a 16-bit (near) address. //Note //The address is a byte address. The address is in the program space. 使
1.运行环境 Windows xp; Arduino1.6.11 IDE. 2.问题 在Arduino编译时,经常出现如下的错误: collect2.exe: error: ld returned 5 exit status exit status 1 Error compiling for board Arduino Duemilanove or Diecimila 打开Arduino中编译过程显示的开关,可以知道,编译文件时没有错误,只是在链接时出现了错误.自己做一个批处理,在命令行中重新运