0.95-inch RGB OLED Display library  0.5
Library for the 0.95-inch RGB OLED Display library (Parallax Part #28087)
Functions | Variables
oledc_init.c File Reference
#include "oledc_.h"

Functions

void oledc_init (char cs, char rs, char sid, char sclk, char rst, char screen_rotation)
 Initializes the OLED screen by setting up it's SPI and control pins. More...
 

Variables

char _cs
 
char _rs
 
char _rst
 
char _sid
 
char _sclk
 
char TFTROTATION
 
char TFTINVERTED = 0
 
int textsize = 1
 
char TFTSCROLLING = 0
 
unsigned int textcolor = 0xFFFF
 
unsigned int textbgcolor = 0xFFFF
 
char wrap = 1
 
int cursor_y = 0
 
int cursor_x = 0
 
int _width
 
int _height
 

Function Documentation

void oledc_init ( char  CS,
char  RS,
char  SID,
char  SCLK,
char  RST,
char  screen_rotation 
)

Initializes the OLED screen by setting up it's SPI and control pins.

Parameters
CSwhich pin is connected to the Chip Select pin, marked "CS".
RSwhich pin is connected to the Read Status pin, marked "D/C".
SIDwhich pin is connected to the Serial Data In pin, marked "DIN".
SCLKwhich pin is connected to the Serial Clock pin, marked "CLK".
RSTwhich pin is connected to the Reset pin, marked "RST".
screen_rotationSets up the OLED screen and establishes its orientation. (0) means the pins are pointed upwards, (1) means the pins are pointed to the left, (2) means the pins are pointed down and (3) means the pins are pointed to the right.

Variable Documentation

char _cs
int _height
char _rs
char _rst
char _sclk
char _sid
int _width
int cursor_x = 0
int cursor_y = 0
unsigned int textbgcolor = 0xFFFF
unsigned int textcolor = 0xFFFF
int textsize = 1
char TFTINVERTED = 0
char TFTROTATION
char TFTSCROLLING = 0
char wrap = 1