English
Language : 

LCD-14048 Datasheet, PDF (8/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
To get the Arduino library, download from GitHub or use the Arduino Library
Manager.
Download the GitHub repository
Visit the GitHub repository to download the most recent version of the
library, or click the button below:
DOWNLOAD THE ARDUINO LIBRARY
Use the library manager or install in the Arduino IDE
For help installing the library, check out our Installing an Arduino Library
tutorial.
If you don’t end up using the manager, you’ll need to move the
SparkFun_TeensyView_Arduino_Library folder into a libraries folder within
your Arduino sketchbook. You can remove “master” from the name if you
like.
TeensyView Library Reference
Operating the Library
With Teensyduino and the TeensyView library installed, there’s a few things
to do in order to start drawing on the screen.
• Include the TeensyView header file – #include <TeensyView.h>
• Create an object in the global space to use the TeensyView, and
pass the desired pin numbers to the constructor. –
TeensyView oled(PIN_RESET, PIN_DC, PIN_CS, PIN_SCK, PIN_MOSI);
• Run the begin() function
Now you’re ready to start controlling the screen. To draw a frame,
• Erase all or part of the screen.
• Draw new objects
• Use .display() to send all data to the screen.
This example shows including the library, creating the object, then
repeatedly drawing a frame. The drawing commands are kept terse to
serve as a good modifiable template. This example is also available from
within the Arduino library.
Page 8 of 33