All Projects → adafruit → Adafruit_CircuitPython_CharLCD

adafruit / Adafruit_CircuitPython_CharLCD

Licence: MIT license
Library code for character LCD interfacing

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Adafruit CircuitPython CharLCD

esp8266-arduino-wifirgb
A RESTful API implementation to control an RGB LED Strip using an ESP8266 microcontroller.
Stars: ✭ 31 (-42.59%)
Mutual labels:  rgb-led
music led strip control
Audio visualization for LED strips in real-time with web interface on a raspberry pi.
Stars: ✭ 224 (+314.81%)
Mutual labels:  rgb-led
urdu-characters
📄 Complete collection of Urdu language characters & unicode code points.
Stars: ✭ 24 (-55.56%)
Mutual labels:  character
Cinelights
Example project using Lighting tools package and Cine lights package for Unity.
Stars: ✭ 23 (-57.41%)
Mutual labels:  character
circuitpython
CircuitPython - a Python implementation for teaching coding with microcontrollers
Stars: ✭ 3,097 (+5635.19%)
Mutual labels:  circuitpython
ThirdPersonController
Simple 3rd person controller demonstrating camera-relative movement and the new Cinemachine 3rd Person Follow / Aim system
Stars: ✭ 15 (-72.22%)
Mutual labels:  character
acer-predator-turbo-and-rgb-keyboard-linux-module
Linux kernel module to support Turbo mode and RGB Keyboard for Acer Predator notebook series
Stars: ✭ 125 (+131.48%)
Mutual labels:  rgb-led
PrecIR
You know what this is for ;-)
Stars: ✭ 60 (+11.11%)
Mutual labels:  lcd
CircuitPython GC9A01 demos
Demos showing how to use CircuitPython displayio driver for GC9A01 round LCDs
Stars: ✭ 18 (-66.67%)
Mutual labels:  circuitpython
rulid.rs
Rust Universally Unique Lexicographically Sortable Identifier
Stars: ✭ 40 (-25.93%)
Mutual labels:  character
dpf-ax
Tools and firmware for AX206 photo frames, from http://sourceforge.net/projects/dpf-ax/
Stars: ✭ 17 (-68.52%)
Mutual labels:  lcd
CapableRobot USBHub Driver
www.crowdsupply.com/capable-robot-components/programmable-usb-hub
Stars: ✭ 17 (-68.52%)
Mutual labels:  circuitpython
Pixie Chroma
Arduino library and documentation for Pixie Chroma displays!
Stars: ✭ 33 (-38.89%)
Mutual labels:  rgb-led
ProjectKaya
Project Kaya for mobile game platform
Stars: ✭ 324 (+500%)
Mutual labels:  character
midi-grid
DIY midi controller project
Stars: ✭ 60 (+11.11%)
Mutual labels:  rgb-led
qtpy-knob
QT Py Media Knob using rotary encoder & neopixel ring
Stars: ✭ 49 (-9.26%)
Mutual labels:  circuitpython
circuitpython-build-tools
Build scripts for CircuitPython libraries and the bundle
Stars: ✭ 20 (-62.96%)
Mutual labels:  circuitpython
WS281x.swift
A Swift library for WS281x (WS2811,WS2812*,WS2813*) RGB led strips, rings, sticks, matrices and more.
Stars: ✭ 32 (-40.74%)
Mutual labels:  rgb-led
CircuitPython Community Bundle
A bundle of useful CircuitPython libraries from the CircuitPython community.
Stars: ✭ 98 (+81.48%)
Mutual labels:  circuitpython
Sol
An open-source MIDI-to-CV Eurorack module that runs CircuitPython
Stars: ✭ 56 (+3.7%)
Mutual labels:  circuitpython

Introduction

Documentation Status Discord Build Status

This library is compatible with standard Character LCDs such as:

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-charlcd

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-charlcd

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install adafruit-circuitpython-charlcd

Dependencies

This driver depends on:

I2C & SPI displays also depend on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

The Character_LCD class interfaces a predefined Character LCD display with CircuitPython.

import board
import digitalio
import adafruit_character_lcd.character_lcd as character_lcd

You must define the data pins (RS, EN, D4, D5, D6, D7) in your code before using the Character_LCD class. If you want to have on/off backlight functionality, you can also define your backlight as lcd_backlight. Otherwise, the backlight will always remain on. The following is an example setup.

lcd_rs = digitalio.DigitalInOut(board.D7)
lcd_en = digitalio.DigitalInOut(board.D8)
lcd_d7 = digitalio.DigitalInOut(board.D12)
lcd_d6 = digitalio.DigitalInOut(board.D11)
lcd_d5 = digitalio.DigitalInOut(board.D10)
lcd_d4 = digitalio.DigitalInOut(board.D9)
lcd_backlight = digitalio.DigitalInOut(board.D13)

You must also define the size of the CharLCD by specifying its lcd_columns and lcd_rows:

lcd_columns = 16
lcd_rows = 2

After you have set up your LCD, we can make the device by calling it

lcd = character_lcd.Character_LCD_Mono(lcd_rs, lcd_en, lcd_d4, lcd_d5, lcd_d6, lcd_d7, lcd_columns, lcd_rows, lcd_backlight)

To verify that your pins are correct, print a hello message to the CharLCD:

lcd.message = "Hello\nCircuitPython"

Custom character example with create_char() is provided within /examples/

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].