Atmega32 P10 DMD

Hello
I am trying to make a p10 led panel using the dmd2 library in atmega32, but I am getting the error below. I don't get this error atmega2560 either.

C:\Users\username\Documents\Arduino\libraries\DMD2\DMD2_Timer.cpp:78:3: error: 'TIMSK1' was not declared in this scope

C:\Users\username\Documents\Arduino\libraries\DMD2\DMD2_Timer.cpp:88:5: error: 'TIMSK1' was not declared in this scope

In short, it means that the library is incompatible with your processor.

Your topic has been moved to a more suitable location on the forum; it's not an IDE problem.

Where should I move the topic?
it also works atmega328

You don't have to move it, I did it for you. The most suitable places would be microcontrollers, programming questions and project guidance (I picked the latter).

The problem with libraries is that they have often be written for standard Arduinos. At the moment that you use another microcontroller or a newer Arduino, they might or might not work.

so can you help

Unfortunately not with this one.

Essentially, the ATmega32 is a somewhat older chip than the ATmega328P or ATmega2560 used by most current Arduinos, and it has less capable and "different" Timer peripherals.

It doesn't look like the DMD2 library is using any particularly fancy timer features, so it is the "different" that is biting you. It is probably possible to modify the library code to support the ATmega32, but it would be somewhat "challenging", and not something that most people are likely to be able to do without some significant effort.

What if atmega64 is used?

Using of atmega64 will change nothing. You will should to modify the library to support this controllers.
Why these old-style controllers? Why not atmega328?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.