English
Language : 

LCD-14048 Datasheet, PDF (24/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
oled.print("L");
oled.setCursor(108, 24);
oled.print("R");
if (LeftFFT.available()) {
// each time new FFT data is available
for (i = 0; i < 40; i++) {
leftBands[i] = LeftFFT.read(i);
}
}
if (RightFFT.available()) {
// each time new FFT data is available
for (i = 0; i < 40; i++) {
RightBands[i] = RightFFT.read(i);
}
}
oled.display();
}
The important lesson from this sketch is that the constructor is passed the
alternate set of pins, and can be used concurrently with the Audio board.
Use the same command from the ScreenDemo and paint the screen with
whatever you need to display!
Example: Prop Shield-Compatible
Connection
This example shows off using the TeensyView with the Prop Shield. This is
a demonstration and test of all features on the Prop Shield and won’t work
on the LC prop shield, which doesn’t have motion sensors.
The example:
• Creates a test file on the Flash (you may lose existing data) that
contains RGB data
• Initializes the IMUs
• Initializes the Audio platform
• Displays heading, pitch and roll on the screen
• Generates a sine wave of pitch and filter based on physical
orientation — kind of like a Theremin!
• Continuously reads flash data from the test file and applies it to the
APA102 LED
Wire the LED and speaker to the Prop Shield using the connection table:
Prop Shield
Function
G
APA102 Ground (Pin 3)
C
APA102 Clock In (Pin 2)
D
APA102 Data In (Pin 1)
5
APA102 VCC (Pin 4)
-
Headphone ring
+
Headphone tip
Prop Shield Connections
Page 24 of 33