Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 1.42 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.42 KB

Codacy Badge Build Status

OLEDCodeGenerator

Small utility to generate custom graphics code (compatible with the U8Glib library) for the SSD1306 series of OLED screens from CSV files. These small OLED screens are comaptible out of the box with Arduino and U8Glib and currently cost less than £3 delivered on Ebay, but drawing custom graphics is often a pain as the bytes aren't always in the order you might expect!

The graphic code will be produced assuming each cell in the CSV file is a pixel. If the cell contains any character the pixel will be turned on, if it is empty the pixel will be off.

Setup

Maven

<dependency>
  <groupId>com.github.berry120.ssd1306</groupId>
  <artifactId>SSD1306</artifactId>
  <version>1.0</version>
</dependency>

Gradle

compile 'com.github.berry120.ssd1306:SSD1306:1.0'

Example usage

/**
 * Simple demo usage.
 */
public static void main(String[] args) {
    GraphicInfo gi = new CodeGenerator(args[0]).getInfo();
    System.out.println(gi.getDefinitionCode());
}