English
Language : 

LCD-14048 Datasheet, PDF (32/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
oled.print("
");
oled.setCursor(0, 13);
oled.print(heading);
oled.setCursor(43, 13);
oled.print(pitch);
oled.setCursor(83, 13);
oled.print(roll);
oled.display();
//********************TeensyView*******************//
}
//********************IMU test*******************//
//********************Flash Test*******************//
if (fileIndex >= (128 * 3)) fileIndex = 0;
fileIndex = fileIndex + 3;
if (!SerialFlash.begin(FlashChipSelect)) {
Serial.println("Unable to access SPI Flash chip");
}
file = SerialFlash.open("testfile.dat");
if (file)
{ // true if the file exists
uint8_t buffer[3];
file.seek(fileIndex);
file.read(buffer, 3);
file.close();
//Serial.println(buffer[0], HEX); //Show red channel to se
rial console
//********************RAW APA102*******************//
setLED( buffer[0], buffer[1], buffer[2] );
//********************RAW APA102*******************//
}
//********************Flash Test*******************//
}
After compiling and uploading, the TeensyView will display heading, pitch
and roll, while the LED proves flash communication and the speaker proves
that the audio system is functioning.
Resources and Going Further
The TeensyView was designed to be as flexible as possible while still being
able to nest down into a low-profile addition to the Teensy.
Page 32 of 33
Some various TeensyView-Teensy connections. The bottom centermost
TeensyView was created using this guide, while the left is a minimal non-
separable configuration. Using a breadboard is also an option.
The TeensyView works with some really heavy examples, but they’re really
only demonstrations. What to do with it is up to you! They’re great for
adding simple debug info to a mobile project, while a diligent pixel artist
could implement a whole menu system.
More information about the SSD1306 controller and the TeensyView design
can be found here: