Error - prog_uint8_t Does not name a type

I’m trying to compile some code which seems to be erroring out due to a deprecated attribute on a type. I’m trying to use the prog_uint8_t type.

The error is:

In file included from C:\Users\Usernaame\Documents\Arduino\openpipe-breakout-master\openpipe_breakout_echanter\openpipe_breakout_echanter.ino:41:0:

samples.h:17: error: 'prog_uint8_t' does not name a type

I added


just before

#include <samples.h>

but that did not help.

I also changed all references to ‘prog_uint8_t’ with ‘uint8_t’ but that gave me the following errors:

samples.h:104: error: variable 'instrument_SACKPIPA_note_75' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

The above changes were based on the following advice:

I’ve attached the Python code which generates the “samples.h” file as well as a screenshot of the error, in case that helps.

Any help would be much appreciated! Thank you all very much!

Looks like I can't attach the Python code, so here's a link:

Thanks a million!!

If const uint8_t PROGMEM doesn't work in place of the deprecated type then post the Arduino code that caused the error.

The other option is to go back to version 1.0.6 or earlier where that type works if it is in a library you don't want to mess with or something.

Thank you very much, Delta_G! Using your advice, I was able to solve the issue by changing the code to:

const uint8_t instrument_SACKPIPA_note_68 PROGMEM = {...}