Giter VIP home page Giter VIP logo

lcd-i2c's Introduction

lcd-i2c

A Python module to handle the I2C communication between a Raspberry Pi and an i2c backpack for a 16x2 (or other size) char LCD. This module supports screens with up to 4 lines. There's no maximum width.

You can simply import the lcd_i2c as shown in the example and easily print to the display.

Installation

To install this module, run the following commands:

    python setup.py build
    python setup.py install

The second command might need to run as superuser or using sudo.

Usage

After creating a lcd_i2c object, you can use the following methods to write to the LCD:

    println(string, line)               # Print only on one line. All characters which won't fit are ignored
    print(string, scroll_time = 5)      # Print a string. If the string is too big for the 
                                        #  lcd it will scroll through all the text.
    clear()                             # Remove all text from the screen

License

The code in this project is licensed under the GNU GPL v3, or (at your option) any later version.

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.