English
Language : 

LCD-14048 Datasheet, PDF (21/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
/*************************************************************
*****************
TeensyViewAudio.ino
Example using the TeensyView with the Teensy Audio board
Marshall Taylor @ SparkFun Electronics, December 6, 2016
https://github.com/sparkfun/SparkFun_TeensyView_Arduino_Libr
ary
This is modified FFT example software. It passes L/R audio
channels to the
headphone output while displaying the FFTs as a bar graph o
n the OLED, with
CPU usage reports.
Compatible with:
Teensy 3.1 + Teensy Audio Board (100% processor usage)
Teensy 3.2 + Teensy Audio Board (100% processor usage)
Teensy 3.5 + Teensy Audio Board
Teensy 3.6 + Teensy Audio Board
Resources:
Requires the Teensy Audio library
Development environment specifics:
Arduino IDE 1.6.12 w/ Teensyduino 1.31
Arduino IDE 1.8.1 w/ Teensyduino 1.35
TeensyView v1.0
This code is released under the [MIT License](http://opensou
rce.org/licenses/MIT).
Please review the LICENSE.md file included with this exampl
e. If you have any questions
or concerns with licensing, please contact techsupport@spark
fun.com.
Distributed as­is; no warranty is given.
**************************************************************
****************/
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S
audioInput;
//xy=458,218
AudioAnalyzeFFT1024
LeftFFT;
//xy=672,138
AudioAnalyzeFFT1024
RightFFT;
//xy=683,295
AudioOutputI2S
audioOutput; //xy=686,219
AudioConnection
patchCord1(audioInput, 0, LeftFFT,
0);
AudioConnection
patchCord2(audioInput, 0, audioOutpu
t, 0);
AudioConnection
patchCord3(audioInput, 1, audioOutpu
t, 1);
AudioConnection
patchCord4(audioInput, 1, RightFFT,
0);
AudioControlSGTL5000
audioShield; //xy=467,310
// GUItool: end automatically generated code
const int myInput = AUDIO_INPUT_LINEIN;
//const int myInput = AUDIO_INPUT_MIC;
Page 21 of 33