Sample Sketches not working in IDE 1.5.8 BETA

Post here to discuss all things DigiPixel related.

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
synd
newbie
newbie
Posts: 2
Joined: Thu Jan 08, 2015 5:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Sample Sketches not working in IDE 1.5.8 BETA

Post by synd » Thu Jan 08, 2015 5:11 am

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!

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sample Sketches not working in IDE 1.5.8 BETA

Post by brad » Thu Jan 08, 2015 10:35 am

Hmm, that's interesting.

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

synd
newbie
newbie
Posts: 2
Joined: Thu Jan 08, 2015 5:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sample Sketches not working in IDE 1.5.8 BETA

Post by synd » Fri Jan 09, 2015 4:51 am

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!

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sample Sketches not working in IDE 1.5.8 BETA

Post by brad » Sat Jan 10, 2015 1:53 pm

Great work synd, thanks for updating us!

theenggprojects
newbie
newbie
Posts: 5
Joined: Thu Aug 25, 2016 3:11 pm
Contact:

Re: Sample Sketches not working in IDE 1.5.8 BETA

Post by theenggprojects » Mon Sep 05, 2016 7:45 pm

Thanks a lot bro, I was also having the same problem, now it works ... Thumbs up.
You should also check The Engineering Projects because they have posted a lot of Arduino Projects and PIC Mirocontroller Projects and have also designed many new Proteus Tutorials and C# Tutorial. I hope you guys are gonna like them.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 1 guest