English
Language : 

LCD-14048 Datasheet, PDF (9/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
/*************************************************************
*****************
Template.ino
A useful starting place when adding a TeensyView to an exist
ing project.
Marshall Taylor @ SparkFun Electronics, March 15, 2017
https://github.com/sparkfun/SparkFun_TeensyView_Arduino_Libr
ary
This example sets up the TeensyView and draws a test frame r
epeatedly.
The objects in the frame were selected to give copy­paste ex
amples for various
common operations without a lot of chaff. See TeensyView.h
for specifics.
Compatible with:
Teensy LC
Teensy 3.1
Teensy 3.2
Teensy 3.5
Teensy 3.6
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 <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);
void setup()
{
Page 9 of 33