[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • Sample Sketches not working in IDE 1.5.8 BETA
Page 1 of 1

Sample Sketches not working in IDE 1.5.8 BETA

Posted: Thu Jan 08, 2015 5:11 am
by synd
The PROGMEM is changed in this Version! The Compiler is reporting an Error, that only a Constant can be written in this Part of the Memory! Does anyone know a solution, what to change in the code so it works?

Many thanks for help! Because working with the avr-libs is new for me!

Re: Sample Sketches not working in IDE 1.5.8 BETA

Posted: Thu Jan 08, 2015 10:35 am
by brad
Hmm, that's interesting.

Can you post your code just to make sure we're looking at the same thing?

Re: Sample Sketches not working in IDE 1.5.8 BETA

Posted: Fri Jan 09, 2015 4:51 am
by synd
Hi, i found already a solution! You have to write a "const" in front of the declaration!

for example:

// Program memory arrays
const byte numberTable[30]PROGMEM={0b01111110, 0b01000010, 0b01111110, 0b0010001..........


many thanks!

Re: Sample Sketches not working in IDE 1.5.8 BETA

Posted: Sat Jan 10, 2015 1:53 pm
by brad
Great work synd, thanks for updating us!

Re: Sample Sketches not working in IDE 1.5.8 BETA

Posted: Mon Sep 05, 2016 7:45 pm
by theenggprojects
Thanks a lot bro, I was also having the same problem, now it works ... Thumbs up.