Text 21 May 1 note

A Thousand thanks to Wild Bill for the pointer. I hadn’t thought of using an unsigned long

unsigned long startTime = 0;

    unsigned long time = millis();

    unsigned long timeout = 10000;

    if(time - startTime > timeout) {

Mp3WriteRegister(SPI_AICTRL3, 0x00,0x01);

}

Slip this little swine into the 

  while(!stopRecording)

in the Music shield 1.2 library and you’ve got a ten second record time! 

5 days trying to work this out. 

5 days pissing around in the libraries I didn’t write trying to make sense of things.

This is fantastic news. I feel like I’ve just figured out how to ask where the toilet is in Spanish and now I’m embracing the sweet relief of urinating in the publicly correct location.

The recording model works…

now, if I can squeeze in a day to improve it I’ll be rolling in happiness.

  1. stuarthooper posted this

Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.