Hi i have been trying for a little while to make a sound effect play on the aruino.
I am trying to get the Iconic pacman death sound to play.
The code that i attempted to use to create this sound effect is listed below.
I haven't made much headway on this because i am not good at composing music at all, if someone could write a snipit of code for that sound i would be grateful
// now, get scale if(isdigit(*p)) { scale = *p - '0'; p++; } else { scale = default_oct; } scale += OCTAVE_OFFSET; if(*p == ',') p++; // skip comma for next note (or we may be at the end)
I got it to work, I changed the speed value to 1/4
Code:
pinMode(53, OUTPUT); // set the SS pin as an output (necessary!) digitalWrite(53, HIGH); // but turn off the W5100 chip! (not applicable) uint8_t r = card.init(SPI_QUARTER_SPEED, 53); // Use digital 53 as the SD SS line
Volume is FAT16 blocksPerCluster: 64 clusterCount: 60215 fatStartBlock: 71 fatCount: 2 blocksPerFat: 236 rootDirStart: 543 dataStartBlock: 575 Data area is not aligned on flash erase boundaries!
I have modified the SD2pinmap.h lines 41 to 45 to this
Code:
// SPI port uint8_t const SS_PIN = 49; // SC 53 or 49??? uint8_t const MOSI_PIN = 52; // data out uint8_t const MISO_PIN = 50; //data in uint8_t const SCK_PIN = 51; // CLK
I am trying to get the example SDfatinfo.pde to work, and modified the code from line 148 to 150.
Code:
pinMode(53, OUTPUT); // set the SS pin as an output (necessary!) digitalWrite(53, HIGH); // but turn off the W5100 chip! (not applicable) uint8_t r = card.init(SPI_HALF_SPEED, 53); // Use digital 53 as the SD SS line
Running the gets this reply in the serial monitor (comments were added manually and are the different cards
I can't seem to get this library to work. I compile and upload with no errors. When I open the serial monitor the commands return their respective text, but nothing involving the RFID tags come back. R comes back with Read and thats it.