This file contains hidden or 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
/*** | |
InputCapture.ino | |
Timer 1 high-resolution timing facility. | |
Copyright (C) 2008-2012 Bill Roy | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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> | |
#define NUMBER_OF_TRACKS 5 | |
// initialize MP3 card | |
SdFat sd; |
This file contains hidden or 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 hidden or 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
/* | |
* TinyIRDuel: IRrecvDump - dump details of IR codes with IRrecv | |
* IR detector/demodulator must be connected to the input RECV_PIN. | |
* IR Transmitter to JAM must be connected ot | |
* Version 0.1 July, 2013 | |
* Author: 2013 Michael P. Flaga | |
*/ | |
//List of wand ID's | |
#define WAND_RED1 0x1AEDC601 |
This file contains hidden or 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 | |
} |
OlderNewer