Using a Trinket M0 as alternative board for Genesis Poi: Dot

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
livingkurt
 
Posts: 1
Joined: Tue Mar 15, 2022 7:57 pm

Using a Trinket M0 as alternative board for Genesis Poi: Dot

Post by livingkurt »

Hello! I just found out how cool the Trinket M0 is and I want to use it in everything now! Sorry I'm late.

I've had my eye on the "Genesis Poi: DotStar LED Persistence-of-Vision" build for a while now and I'm finally ready to do it.
Link: https://learn.adafruit.com/genesis-poi- ... i/overview

So I saw from the beginning that the Adafruit Trinket - Mini Microcontroller - 5V Logic was no longer supported in the newest version of the DotStar Library.

I then bought the Trinket M0 thinking it would work as a replacement.
That's not the case at least for me sadly...

I really want to use the Trinket M0 for this build, has anyone adapted the code to work with the Trinket M0 or have any insight on what isn't supported?

I'm getting this error right out of the gate

Code: Select all

poi:40:10: fatal error: avr/power.h: No such file or directory
 #include <avr/power.h>
          ^~~~~~~~~~~~~
compilation terminated.
exit status 1
avr/power.h: No such file or directory
From what I've read this error is that avr/power.h is part of the standard arduino IDE install package and it is specific to certain avr processors.
So it feels like this feature doesn't exist on the Trinket M0, is that correct?

I am using the Adafruit SAMD Boards to choose from, and am choosing the Trinket M0.

I really really want to make this work.

Any info is helpful

Thanks for your time!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using a Trinket M0 as alternative board for Genesis Poi:

Post by adafruit_support_mike »

livingkurt wrote:From what I've read this error is that avr/power.h is part of the standard arduino IDE install package and it is specific to certain avr processors.
So it feels like this feature doesn't exist on the Trinket M0, is that correct?
That's correct. The code is optimized for the original Trinket because the ATtiny85 doesn't have much memory. Making the code more portable would make the original Trinket version harder to use.

The code will require modification to work with the Trinket M0. The graphics code should be portable, but I'm not sure how well the code for the IR remote will work.

Break it down into smaller pieces and test them individually.

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

Return to “Trinket ATTiny, Trinket M0”