Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

help to use "trinketPlayer" Code to other Arduino Platforms
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

help to use "trinketPlayer" Code to other Arduino Platforms

by dattasaurabh82 on Fri Apr 10, 2020 5:42 am

Hello.
So I was following https://learn.adafruit.com/trinket-audio-player?view=all#loading-sounds
But I'm not using a trinket but an Arduino pro Mini 3.3v 8MHz.
I got it to load the file and everything but when it comes to playback from Arduino and not Trinket, I see that in TrinketPlayer.ino in the example from Adafruit_TinyFlash library, it has a clear warning:
Code: Select all | TOGGLE FULL SIZE
Uses ATtiny-specific registers;
// WILL NOT RUN ON OTHER ARDUINOS.

Then I came across this forum post: https://forums.adafruit.com/viewtopic.php?f=25&p=276118
But here the author abandoned the idea of using An Arduino Uno.
I was wondering if some one can please help porting this code with appropriate registers for other Arduinos, specifically pro mini 8MHz 3.3V.
Also never did pure bit wise operations and timers and register operations.
So some guidelines to learn with the code example would also be helpful.

I hope this would be really helpful for those who don't have a trinket and or can't use for other reasons.

Best
Saurabh

dattasaurabh82
 
Posts: 7
Joined: Wed Feb 13, 2013 1:46 pm

Please be positive and constructive with your questions and comments.