Hello Everyone;
I have had a few round-about ways and some attempts at getting audio to play back through an LC prop shield from the onboard flash with a low-power/snooze function to save battery.
Below is my very rough staged code in hopes to get any direction or help from anyone moving forward. I am hoping to use this thread to post some progress/updates from my work.
My hardware: Teensyduino & Prop LC Shield LC & 3xAA batteries (~4.5v? input) the shield is soldered like:
I can desolder them if need be, but wow is this thing a bit of a powerhouse and small *teensy?* when they are together!
Super excited to try and get this working, but as you can probably tell I am struggling. Any help is greatly appreciated!
I have had a few round-about ways and some attempts at getting audio to play back through an LC prop shield from the onboard flash with a low-power/snooze function to save battery.
Below is my very rough staged code in hopes to get any direction or help from anyone moving forward. I am hoping to use this thread to post some progress/updates from my work.
My hardware: Teensyduino & Prop LC Shield LC & 3xAA batteries (~4.5v? input) the shield is soldered like:
I can desolder them if need be, but wow is this thing a bit of a powerhouse and small *teensy?* when they are together!
Code:
//#Include libraries for Audio somehow from here: https://www.pjrc.com/teensy/td_libs_Audio.html ??
//#Include libraries for PropLC memory ??
//#Include libraries for low power state, example here: https://github.com/duff2013/Snooze ??
void Setup(){
//setup as many pins as possible as inputs
// Would I initiate low power consumption or low power state as shown here: https://github.com/duff2013/Snooze ?
// If so, I would need to get a wakeup function to get this going
}
void Loop(){
if (pinX == HIGH){
//play audioFileX from LC Flash to (Speaker +) / (Speaker -) pins
}
else if (pinY == HIGH){
//play audioFileY from LC Flash to (Speaker +) / (Speaker -) pins
}
//
// (all other singular pins in similar else-if statements)
//
else if (pinA && pin B == HIGH){
//play audioFileABC from LC Flash to (Speaker +) / (Speaker -) pins
}
}
Super excited to try and get this working, but as you can probably tell I am struggling. Any help is greatly appreciated!