GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - entrusc/Pi-OLED: A Java driver for the popular monochrome SSD1306 128x64 OLED display (over i2c)

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/main/java/de/pi3g/pi/oled
src/main/java/de/pi3g/pi/oled
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
license.txt
license.txt
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Pi OLED Display

A Java library to drive the popular monochrome 128x64 pixel OLED display (SSD1306) from a Raspberry Pi. The display can be bought from Adafruit or from a lot of ebay vendors.

This is basically a rough port of Adafruit's SSD1306 library for Arduino which can be found here: https://github.com/adafruit/Adafruit_SSD1306

how to use?

You can then use the library in your Maven projects like this (it's on Maven Central):

<dependency>
    <groupId>de.pi3g.pi</groupId>
    <artifactId>pi-oled</artifactId>
    <version>1.2</version>
</dependency>

The hardware should be connected to the i2c bus. Where the i2c bus pins are located can be looked up e.g. here: http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29

Then you can use the library like this:

OLEDDisplay display = new OLEDDisplay();
display.drawStringCentered("Hello World!", Font.FONT_5X8, 25, true);
display.update();

Note that you always need to call update() after you changed the content of the display to actually get the content displayed on the hardware.

Also note that the default constructor assumes you have connected the display to i2c port 1 and the display's i2c address is 0x3C. If this is not the case you can use one of the constructors with more parameters.

how to build?

The entire project is build with maven. Just clone the master branch, change to the cloned directory and run maven like this:

mvn install

This should build everything correctly.

About

A Java driver for the popular monochrome SSD1306 128x64 OLED display (over i2c)

Topics

hardwarei2coledraspberrypissd1306

Resources

Readme
License
Activity

Stars

25 stars

Watchers

2 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.