Coder Social home page Coder Social logo

bluemarbl65 / esp32-i2c-lcd1602 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidantliff/esp32-i2c-lcd1602

0.0 0.0 0.0 152 KB

ESP32-compatible C library for LCD1602 display via I2C backpack.

License: MIT License

Makefile 0.04% C 99.62% CMake 0.34%

esp32-i2c-lcd1602's Introduction

esp32-i2c-lcd1602

Build Status

Introduction

This component provides useful access functions for the I2C-LCD1602 device, which is compatible with the HD44780 LCD controller. It uses a PCF8574A Remote 8-bit I/O Expander over the I2C bus, allowing the controller to be programmed via I2C using 4-bit mode.

It is written and tested for the ESP-IDF environment, version 2.1, using the xtensa-esp32-elf toolchain (gcc version 5.2.0).

Dependencies

Requires esp32-smbus.

Example

An example of this component in use can be found at DavidAntliff/esp32-i2c-lcd1602-example.

Features

  • Supports 16x2 LCD modules commonly found on Ebay and AliExpress, via a PCF8574A I/O Expander over the I2C bus (4-bit mode).
  • Backlight control.
  • Supports dynamic and static allocation of device instance, with no global variables.
  • Works with multiple displays (set unique I2C addresses for each device).
  • Supports all HD44780-compatible features except for retrieval of data from the device.
  • Provides some symbolic definitions for commmonly used characters (ROM Code A00: English/Asian character set).

Access to different types of LCD1602 modules is limited so this library may not work correctly (or at all) with your module. If that is the case, please file an issue and perhaps I can help you get it working.

Documentation

Automatically generated API documentation (doxygen) is available here.

Source Code

The source is available from GitHub.

License

The code in this project is licensed under the MIT license - see LICENSE for details.

Links

Acknowledgements

  • Inspired by the Arduino DFRobot sample code.
  • "SMBus" is a trademark of Intel Corporation.
  • "I2C" is a registered trademark of Phillips Corporation.

Roadmap

The following features are anticipated but not yet implemented:

  • Checking of Busy Flag for more efficient access.
  • Retrieval of data from the device.
  • ROM Code A02 symbolic definitions.
  • Direct (parallel, no I2C) access via 4-bit and 8-bit modes.

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.