Kaynağa Gözat

Add Arduino 101 CS pin to examples

main
erik.nyquist 8 yıl önce
ebeveyn
işleme
400e758242
6 değiştirilmiş dosya ile 18 ekleme ve 0 silme
  1. +3
    -0
      examples/CopyFromSD/CopyFromSD.ino
  2. +3
    -0
      examples/CopyFromSerial/CopyFromSerial.ino
  3. +3
    -0
      examples/EraseEverything/EraseEverything.ino
  4. +3
    -0
      examples/ListFiles/ListFiles.ino
  5. +3
    -0
      examples/MP3Player/MP3Player.ino
  6. +3
    -0
      examples/RawHardwareTest/RawHardwareTest.ino

+ 3
- 0
examples/CopyFromSD/CopyFromSD.ino Dosyayı Görüntüle

@@ -4,6 +4,9 @@

const int SDchipSelect = 4; // Audio Shield has SD card CS on pin 10
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;

void setup() {
//uncomment these if using Teensy audio shield

+ 3
- 0
examples/CopyFromSerial/CopyFromSerial.ino Dosyayı Görüntüle

@@ -83,6 +83,9 @@
#define MISO 12
#define SCK 14
#define CSPIN 6
// Uncomment this line if using the built-in SPI Flash device
// on an Arduino 101 board
//#define CSPIN 21

void setup(){
Serial.begin(9600); //Teensy serial is always at full USB speed and buffered... the baud rate here is required but ignored

+ 3
- 0
examples/EraseEverything/EraseEverything.ino Dosyayı Görüntüle

@@ -2,6 +2,9 @@
#include <SPI.h>

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;

SerialFlashFile file;


+ 3
- 0
examples/ListFiles/ListFiles.ino Dosyayı Görüntüle

@@ -2,6 +2,9 @@
#include <SPI.h>

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;

void setup() {
//uncomment these if using Teensy audio shield

+ 3
- 0
examples/MP3Player/MP3Player.ino Dosyayı Görüntüle

@@ -27,6 +27,9 @@ AudioConnection patchCord3(mixer1, dac1);

#define PROP_AMP_ENABLE 5
#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

void setup() {
Serial.begin(9600);

+ 3
- 0
examples/RawHardwareTest/RawHardwareTest.ino Dosyayı Görüntüle

@@ -22,6 +22,9 @@
#include <SPI.h>

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;

SerialFlashFile file;


Yükleniyor…
İptal
Kaydet