TFP401 EDID change compile error - 'eepromdat' must be const

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
crispybrown
 
Posts: 1
Joined: Thu Sep 29, 2022 3:20 pm

TFP401 EDID change compile error - 'eepromdat' must be const

Post by crispybrown »

When I try to use the Arduino code on https://learn.adafruit.com/adafruit-tfp ... g-the-edid I get this error:

variable 'eepromdat' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

I see @Keaschmi96 asked the same previously here: viewtopic.php?p=879376

..anyway, I fixed it by changing this line:
uint8_t PROGMEM eepromdat[128] = {
to:
uint8_t PROGMEM const eepromdat[128] = {

Does anyone reading have the power to update the code on the site or know someone they can ask?

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”