Giter Site home page Giter Site logo

corro69 / lcd1602 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitbank2/lcd1602

0.0 1.0 0.0 1.19 MB

A C library (Linux + Arduino) to control 2 line x 16 character I2C LCD displays

License: GNU General Public License v3.0

Makefile 1.77% C 62.10% C++ 36.14%

lcd1602's Introduction

LCD1602 - 2 line x 16 character LCD display

Written by Larry Bank
Copyright (c) 2017 BitBank Software, Inc.

LCD 1602

The common 1602 LCD found for sale is the marriage of a HD44780 LCD controller and an I2C I/O expander. These are connected such that the upper 4 data bits of the I2C data are connected to the upper 4 data bits of the LCD controller. The LCD controller supports a 4-bit data mode, so the other 4 data bits coming out of the I2C expander are used as control lines to select command/data, R/W, backlight control and the clock to trigger the data to be written/read. This puts more effort on the software since it must split each byte into two writes and manually pulse the clock line with multiple writes which toggle the correct data bit.

My purpose in releasing this library was to better understand the device by writing my own software for it in the hopes that it benefits the open source community.

Before building the demo app, make sure that the I2C bus number and address of your display are correct. For Raspberry Pi boards, the I2C bus is usually 1 and the display is usually located at addresses 0x20 to 0x27. Another thing to note is that you may not see anything on the display even though it works. There is a contrast control on the back which must be adjusted before the first use.

Building and running the library
--------------------------------
make
make -f make_demo
./demo

lcd1602's People

Contributors

bitbank2 avatar

Watchers

James Cloos 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.