The button events and code they execute can be anything you want, so yes, you can use a different button to do StartOrStopTrack(), change the BUTTON_TRIGGER_EIGHT to something else, etc…
Thanks. I realise I can change the 8 to another button.
I was asking more if it could be coded to have multiple buttons be able to start stop a track.
Sure. Anywhere you want to call StartOrStopTrack(), you can.
Yes.
Vader breathing is meant to be in the “hum”, not in the track.
Sure, you just have to change the prop file.
It’s not. Not sure why you would want that?
Right ok. So I’ve got confused then.
I thought the Vader breathing had to be on button 8 as part of the track config.
You mentioned that his breathing is meant to be in the ‘hum’
Would you mind elaborating on that please?
I don’t mind elaborating, but I’m not sure what there is to elaborate on?
Just put a looping vader breathing sound in hum.wav and it will start when you press any button.
Ah ok, so thats the bit I wasn’t sure on.
So its down to the file being called hum.wav
Right ok, apologies I didn’t realise that.
The main reason I was asking is I have two different Vader breathing variations and I was hoping to use both on a unit.
Each triggered by a different button. But doesn’t sound like that will be possible.
Why not?
Just set up two presets with different fonts, then hold button 1 and 8 for a second to switch to the next preset.
I have another question i I may.
I’m testing out my own audio files to use.
I’ve only added files for button 1.
I have also added a font file.
However when I try to switch to that directory using buttons 1 & 8.
It says something like ‘directory not found’
If I add the original files back then it switches ok.
So I was wondering if it needs sounds for all buttons before it will switch?
I think “font directory not found” literally means that the path specified in the config file doesn’t seem to be a directory name on the sd card. What files are in that directory shouldn’t matter I think.
What does the serial monitor say?
Hmm, odd.
I could try copying over the original font file to see if there is an issue with mine.
Is there documentation on using the serial monitor?
Obviously makes sense to check that but its not something I’ve done previously.
(Thankyou for all your help so far!)
Just found details on the serial monitor in the ProffieOS documentation.
(Should have checked there first!)
I’ll have a play
Got it, the serial monitor identified the format was wrong.
Upon checking the files I were using were 32bit. I changed to 16bit and all working fine now.
Thanks for point me in the right direction.