non-blocking-rtttl-arduino
non-blocking-rtttl-arduino copied to clipboard
Changing prog_uint16 to uint16
John Cooper is reporting that he had to change the line...
const prog_uint16_t notes[] PROGMEM = ...to... const uint16_t notes[] PROGMEM =
...and this seems to be linked to version changes with Arduino as discussed here... https://github.com/logicalzero/gamby/pull/4
We need to decide which is the least nasty choice to make, and possibly use a macro to switch based on version number once we figure out where the issue is.
Note, the Arduino official doctrine is still to use the declaration as per our original http://www.arduino.cc/en/Reference/PROGMEM
The preferred change may be from... const prog_uint16_t ...to... const unsigned int[] PROGMEM = ...or... PROGMEM const unsigned int[] =
...but needs testing. Worst of all it seems to depend on the OS which is running, since Arduino distributes a different compiler toolchain in each package.
Hi, I am using the Arduino that comes with Debian wheezy 1:1.0.1+dfsg-7 so I think it's essentially 1.0.1 if that helps.