This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char buffer[5]; | |
#define buffer_size sizeof(buffer)/sizeof(buffer[0]) | |
int8_t buffer_pos = 0; | |
void setup() { | |
//Initialize serial and wait for port to open: | |
Serial.begin(115200); | |
while (!Serial) { | |
; // wait for serial port to connect. Needed for Leonardo only | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \file FilePlayer.ino | |
* | |
* \brief Example sketch of using the MP3Shield Arduino driver, with flexible list of files and formats | |
* \remarks comments are implemented with Doxygen Markdown format | |
* | |
* \author Bill Porter | |
* \author Michael P. Flaga | |
* | |
* This sketch listens for commands from a serial terminal (such as the Serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Show messages on an 8x5 led matrix, | |
* scrolling from right to left. | |
* | |
* Uses FrequencyTimer2 library to | |
* constantly run an interrupt routine | |
* at a specified frequency. This | |
* refreshes the display without the | |
* main loop having to do anything. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \file TrackPlayer.ino | |
* | |
* \brief Example sketch of using the MP3Shield Arduino driver | |
* \remarks comments are implemented with Doxygen Markdown format | |
* | |
* \author Bill Porter | |
* \author Michael P. Flaga | |
* | |
* This sketch listens for commands from a serial terminal (such as the Serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \file FileNamePlayer.ino | |
* | |
* \brief Example sketch of using the MP3Shield Arduino driver | |
* \remarks comments are implemented with Doxygen Markdown format | |
* | |
* \author Michael P. Flaga | |
* | |
* This sketch listens for commands from a serial terminal which are TERMINATED | |
* with New Line Feeds (aka "\n" or 0xA). To use this sketch enable Serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libraries | |
#include <SPI.h> | |
#include <SdFat.h> | |
#include <SdFatUtil.h> | |
#include <SFEMP3Shield.h> | |
// initialize MP3 card | |
SdFat sd; | |
SFEMP3Shield MP3player; | |
// constant variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libraries | |
#include <SPI.h> | |
#include <SdFat.h> | |
#include <SdFatUtil.h> | |
#include <SFEMP3Shield.h> | |
// initialize MP3 card | |
SdFat sd; | |
SFEMP3Shield MP3player; | |
byte result; // variable for mp3 player shield, can be used to debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libraries | |
#include <SPI.h> | |
#include <SdFat.h> | |
#include <SdFatUtil.h> | |
#include <SFEMP3Shield.h> | |
// initialize MP3 card | |
SdFat sd; | |
SFEMP3Shield MP3player; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <EasyTransfer.h> | |
#define LENGTH_OF_ARRAY(x)((sizeof(x) / sizeof(x[0]))) | |
//create object | |
EasyTransfer ET; | |
struct SEND_DATA_STRUCTURE { | |
//put your variable definitions here for the data you want to send | |
//THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO | |
int arraydata[5]; |
OlderNewer