Переглянути джерело

Merge pull request #4 from FrankBoesing/add-more-audio-shield-settings

Add more audio shield settings
main
Paul Stoffregen 8 роки тому
джерело
коміт
e356db9785
6 змінених файлів з 42 додано та 18 видалено
  1. +7
    -3
      examples/CardInfo/CardInfo.ino
  2. +7
    -3
      examples/Datalogger/Datalogger.ino
  3. +7
    -3
      examples/DumpFile/DumpFile.ino
  4. +7
    -3
      examples/Files/Files.ino
  5. +7
    -3
      examples/ReadWrite/ReadWrite.ino
  6. +7
    -3
      examples/listfiles/listfiles.ino

+ 7
- 3
examples/CardInfo/CardInfo.ino Переглянути файл

@@ -7,10 +7,10 @@
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila, pin 7 on Teensy with audio board
** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila
** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila
** CS - depends on your SD card shield or module.
** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila, pin 14 on Teensy with audio board
** CS - depends on your SD card shield or module - pin 10 on Teensy with audio board
Pin 4 used here for consistency with other Arduino examples

@@ -40,6 +40,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

+ 7
- 3
examples/Datalogger/Datalogger.ino Переглянути файл

@@ -7,10 +7,10 @@
The circuit:
* analog sensors on analog ins 0, 1, and 2
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MOSI - pin 11, pin 7 on Teensy with audio board
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
** CLK - pin 13, pin 14 on Teensy with audio board
** CS - pin 4, pin 10 on Teensy with audio board
created 24 Nov 2010
modified 9 Apr 2012
@@ -40,6 +40,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

+ 7
- 3
examples/DumpFile/DumpFile.ino Переглянути файл

@@ -6,10 +6,10 @@
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MOSI - pin 11, pin 7 on Teensy with audio board
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
** CLK - pin 13, pin 14 on Teensy with audio board
** CS - pin 4, pin 10 on Teensy with audio board
created 22 December 2010
by Limor Fried
@@ -40,6 +40,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

+ 7
- 3
examples/Files/Files.ino Переглянути файл

@@ -4,10 +4,10 @@
This example shows how to create and destroy an SD card file
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MOSI - pin 11, pin 7 on Teensy with audio board
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
** CLK - pin 13, pin 14 on Teensy with audio board
** CS - pin 4, pin 10 on Teensy with audio board
created Nov 2010
by David A. Mellis
@@ -34,6 +34,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

+ 7
- 3
examples/ReadWrite/ReadWrite.ino Переглянути файл

@@ -4,10 +4,10 @@
This example shows how to read and write data to and from an SD card file
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MOSI - pin 11, pin 7 on Teensy with audio board
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
** CLK - pin 13, pin 14 on Teensy with audio board
** CS - pin 4, pin 10 on Teensy with audio board
created Nov 2010
by David A. Mellis
@@ -35,6 +35,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

+ 7
- 3
examples/listfiles/listfiles.ino Переглянути файл

@@ -4,10 +4,10 @@
This example shows how to create and destroy an SD card file
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MOSI - pin 11, pin 7 on Teensy with audio board
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
** CLK - pin 13, pin 14 on Teensy with audio board
** CS - pin 4, pin 10 on Teensy with audio board
created Nov 2010
by David A. Mellis
@@ -34,6 +34,10 @@ const int chipSelect = 4;

void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
//SPI.setMOSI(7); // Audio shield has MOSI on pin 7
//SPI.setSCK(14); // Audio shield has SCK on pin 14
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {

Завантаження…
Відмінити
Зберегти