const int SDchipSelect = 4; // Audio Shield has SD card CS on pin 10 | const int SDchipSelect = 4; // Audio Shield has SD card CS on pin 10 | ||||
const int FlashChipSelect = 6; // digital pin for flash chip CS pin | const int FlashChipSelect = 6; // digital pin for flash chip CS pin | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//const int FlashChipSelect = 21; | |||||
//const int FlashChipSelect = 21; // Arduino 101 built-in SPI Flash | |||||
void setup() { | void setup() { | ||||
//uncomment these if using Teensy audio shield | //uncomment these if using Teensy audio shield |
#define MISO 12 | #define MISO 12 | ||||
#define SCK 14 | #define SCK 14 | ||||
#define CSPIN 6 | #define CSPIN 6 | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//#define CSPIN 21 | |||||
//#define CSPIN 21 // Arduino 101 built-in SPI Flash | |||||
void setup(){ | void setup(){ | ||||
Serial.begin(9600); //Teensy serial is always at full USB speed and buffered... the baud rate here is required but ignored | Serial.begin(9600); //Teensy serial is always at full USB speed and buffered... the baud rate here is required but ignored |
#include <SPI.h> | #include <SPI.h> | ||||
const int FlashChipSelect = 6; // digital pin for flash chip CS pin | const int FlashChipSelect = 6; // digital pin for flash chip CS pin | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//const int FlashChipSelect = 21; | |||||
//const int FlashChipSelect = 21; // Arduino 101 built-in SPI Flash | |||||
SerialFlashFile file; | SerialFlashFile file; | ||||
#include <SPI.h> | #include <SPI.h> | ||||
const int FlashChipSelect = 6; // digital pin for flash chip CS pin | const int FlashChipSelect = 6; // digital pin for flash chip CS pin | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//const int FlashChipSelect = 21; | |||||
//const int FlashChipSelect = 21; // Arduino 101 built-in SPI Flash | |||||
void setup() { | void setup() { | ||||
//uncomment these if using Teensy audio shield | //uncomment these if using Teensy audio shield |
#define PROP_AMP_ENABLE 5 | #define PROP_AMP_ENABLE 5 | ||||
#define FLASH_CHIP_SELECT 6 | #define FLASH_CHIP_SELECT 6 | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//#define FLASH_CHIP_SELECT 21 | |||||
//#define FLASH_CHIP_SELECT 21 // Arduino 101 built-in SPI Flash | |||||
void setup() { | void setup() { | ||||
Serial.begin(9600); | Serial.begin(9600); |
#include <SPI.h> | #include <SPI.h> | ||||
const int FlashChipSelect = 6; // digital pin for flash chip CS pin | const int FlashChipSelect = 6; // digital pin for flash chip CS pin | ||||
// Uncomment this line if using the built-in SPI Flash device | |||||
// on an Arduino 101 board | |||||
//const int FlashChipSelect = 21; | |||||
//const int FlashChipSelect = 21; // Arduino 101 built-in SPI Flash | |||||
SerialFlashFile file; | SerialFlashFile file; | ||||