Giter Site home page Giter Site logo

stealthyape / text1306_mulit_support Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anthonyshibitov/text1306

0.0 0.0 0.0 22 KB

Simple, lightweight text library for SSD1306 driven OLEDs

License: GNU Affero General Public License v3.0

C++ 35.57% C 64.43%

text1306_mulit_support's Introduction

text1306

A simple, lightweight library for displaying text on SSD1306 driven OLEDs.

text1306 is a small and straight-forward library to display text on displays driven by an ssd1306. The entire library is roughly 10kb in size (and hopefully smaller in the future), and should fit on most chips. It supports the standard ASCII palette.

Install:

  • Download .zip file. Import to Arduino IDE (Sketch -> Include Library -> Add .ZIP Library...)

Documentation

init()

Initialize text1306 object. Connects to the ssd1306 peripheral via the 0x3C I2C device address (this is specifically for 128x64 displays).

inverted(bool invert)

invert specifies whether the displays colors will be inverted. false will display a black background with white text, while true will display a white background with black text.

write(int line, char * buffer)

Writes a buffer to the specified line. On a 128x64 display, there are 8 lines, beginning at the top of the display (line 0) to the bottom (line 7).

clearLine(int line)

Clear the specified line of all text.

clearAll()

Clear all lines of text, effectively resetting the display.

flipDisplay(bool flip)

Flip the display.

To do

☐ Reduce font library size by removing empty characters.
☑ Submit to Arduino Library repo for easier install.
☐ Support 128x32 displays.

text1306_mulit_support's People

Contributors

anthonyshibitov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.