Arduino: A library for a 0,96" OLED display.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
OLED_I2C_128x64_Monochrome.cpp
OLED_I2C_128x64_Monochrome.h
OLED_I2C_128x64_Monochrome_Font.h
README.md
keywords.txt

README.md

Arduino: I²C OLED Library

1 Description

This is a library for an 0,96" monochrome organic liquid crystal display (128x64 pixels) It has been tested with the following device: - 0,96" I2C OLED, Manufacturer: Heltec-Taobao on ATmega 328

For further infomration visit my website:

1.1 Commands

  • init
    • Takes
      • boolean: Regulator on/off
    • Returns void
  • sendCommand
    • Takes
      • byte: Command
    • Returns void
  • sendData
    • Takes
      • byte: Data
    • Returns void
  • printChar
    • Takes
      • char: Data
      • byte: Position X
      • byte: Position Y
    • Returns void
  • printString
    • Takes
      • const char: Data
      • byte: Position X
      • byte: Position Y
    • Returns void
  • printNumber
    • Takes
      • long or float: Data
      • byte: precision (only when float is given)
      • byte: Position X
      • byte: Position Y
    • Returns byte fractional part
  • drawBitmap
    • Takes
      • const byte: Bitmap
      • byte: Position X
      • byte: Position Y
      • byte: Width
      • byte: Height
    • Returns void
  • clear
    • Takes none
    • Returns void
  • setCursor
    • Takes
      • byte: Position X
      • byte: Position Y
    • Returns void
  • setBlackBackground
    • Takes none
    • Returns void
  • setWhiteBackground
    • Takes none
    • Returns void
  • setDisplayOff
    • Takes none
    • Returns void
  • setDisplayOn
    • Takes none
    • Returns void
  • setPageMode
    • Takes none
    • Returns void
  • setHorizontalMode
    • Takes none
    • Returns void
  • setBrightness
    • Takes
      • byte: Brightness
    • Returns void
  • rotateDisplay180
    • Takes none
    • Returns void
  • setFont
    • Takes
      • byte Type (0 = regular, 1 = bold)
    • Returns void
  • setFontSize
    • Takes
      • byte: Size (not implemented yet)
    • Returns void
  • invert
    • Takes none
    • Returns void

2 License

This project is licensed under the GNU GPLv3 open source license. Thus anybody is allowed to copy and modify the source code, provided all changes are open source too and the author is in knowledge of all done changes. This can happen either via eMail or directly on GitHub, in other words at this repository.

3 Disclaimer

I am not responsible for anything in conjunction with this project, including bugs, failure, fire, harm of equipment and harm of persons. Reasonably foreseeable misapplication:

  • Bug in the code
  • Failure of used parts due to a bug in the code or a wrong wiring diagram, including a wrong design.
  • Fire due to a wrong wiring diagram, including a wrong design.
  • Harm of equipment, meaning third party parts (cameras, flashes, etc.) due to a bug in the code or a wrong wiring diagram, including a wrong design.
  • Harm of persons due to any failure of the system, a wrong wiring diagram or a wrong behaviour.

It is your own responsibility to use these contents. Be careful, this project includes lethal electrical voltage. Put yourself in knowledge about the risks before you start with this project.