English
Language : 

LCD-14048 Datasheet, PDF (27/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveformSine sine4;
//xy=321,367
AudioSynthWaveformSine sine3;
//xy=323,314
AudioSynthWaveformSine sine2;
//xy=324,264
AudioSynthWaveformSine sine1;
//xy=325,213
AudioMixer4
mixer1;
//xy=506,303
AudioSynthWaveformDc
dc1;
//xy=517,382
AudioFilterStateVariable filter1;
//xy=695,311
AudioFilterStateVariable filter2;
//xy=851,342
AudioOutputAnalog
dac1;
//xy=1028,366
AudioConnection
patchCord1(sine4, 0, mixer1, 3);
AudioConnection
patchCord2(sine3, 0, mixer1, 2);
AudioConnection
patchCord3(sine2, 0, mixer1, 1);
AudioConnection
patchCord4(sine1, 0, mixer1, 0);
AudioConnection
patchCord5(mixer1, 0, filter1, 0);
AudioConnection
patchCord6(dc1, 0, filter1, 1);
AudioConnection
patchCord7(dc1, 0, filter2, 1);
AudioConnection
patchCord8(filter1, 0, filter2, 0);
AudioConnection
patchCord9(filter2, 0, dac1, 0);
// GUItool: end automatically generated code
//********************Audio test*******************//
//********************Flash Test*******************//
//#include <SerialFlash.h>
//#include <SPI.h>
const int FlashChipSelect = 6; // digital pin for flash chip C
S pin
SerialFlashFile file; //Working file
uint16_t fileIndex = 0;
//********************Flash Test*******************//
//********************TeensyView*******************//
#include <TeensyView.h> // Include the SFE_TeensyView library
///////////////////////////////////
// TeensyView Object Declaration //
///////////////////////////////////
//Standard
#define PIN_RESET 15
//#define PIN_DC 5
//#define PIN_CS 10
#define PIN_SCK 13
#define PIN_MOSI 11
//Alternate (Audio)
//#define PIN_RESET 2
#define PIN_DC 21
#define PIN_CS 20
//#define PIN_SCK 14
//#define PIN_MOSI 7
TeensyView oled(PIN_RESET, PIN_DC, PIN_CS, PIN_SCK, PIN_MOSI);
//********************TeensyView*******************//
void setup()
{
// These three lines of code are all you need to initialize
the
// OLED and print the splash screen.
Serial.begin(115200);
// Before you can start using the OLED, call begin() to init
// all of the pins and configure the OLED.
oled.begin();
Page 27 of 33