Skip to content

AbdulKus/72x40oled_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSD1315 Arduino Library

A lightweight library for 72x40 OLED displays based on the SSD1315 controller.

Features

  • Draw pixels, rectangles, bitmaps and text
  • Multiple fonts including a compact 5x8 font
  • Screen rotation (0/90/180/270 degrees)
  • Adjustable brightness and sleep mode
  • Examples demonstrating usage

Installation

Download this repository as a ZIP archive and install it through the Arduino IDE's Sketch > Include Library > Add .ZIP Library menu. The original vendor examples are kept in the origin folder for reference.

Usage

#include <Wire.h>
#include <SSD1315.h>

SSD1315 display;

void setup() {
    Wire.begin();
    display.begin();
    display.setRotation(1);      // rotate display 90 degrees
    display.setBrightness(0x7F); // medium brightness
    display.drawString(0, 0, "Hello", 5);
    display.display();
}

void loop() {
    // put the display to sleep to save power
    display.sleep(true);
    delay(1000);
    display.sleep(false);
}

See the examples directory for more complete demonstrations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors