GithubHelp home page GithubHelp logo

yuk7hi / avr-library-hd44780-lcd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

This provides an AVR library (header file) for interfacing HD44780, aka 16x2 LCD display with AVR programmable microcontrollers.

C++ 100.00%

avr-library-hd44780-lcd's Introduction

AVR-library-HD44780-LCD

This provides an AVR library (header file) for interfacing HD44780, aka 16x2 LCD display with Atmel ATmega32 microcontrollers.

Functions defined (explained):

Functions to be used by the user

cursorPosLCD(int add, int N)

Move the cursor to the required address.
1-line mode, 80 positions
2-line mode, 40 positions in each line
add - address value

Functions to be used only by the header file

enableLCD(int i)

Enables the data bus to read/write data through.

shortEnLCD()

Enables the data bus for a short period to
read/write data.

checkBFLCD()

Checks the Busy Flag. (whether and internal 
operation is running)
BF - Busy Flag
	1 -> an internal excution is taking place
	0 -> system is ready to accept/send data

instructLCD(int vRS, int vRW)

Alter the command bit values of the system.
RS - Register Selection
	1 -> select Data Register (DR) for sending/
		 receiving data. (via D0-D7)
	0 -> select Instruction Register (IR) for
		 sending/recieving commands. (via D0-D7)
R/W - Read/Write mode selection
	1 -> function data bus as to Read data from
		 the system.
	0 -> function data bus as to Write data to
		 the system.

dataBusRWLCD(int i)

Define pins connected to the LCD as input/output
D0-D7
	 1 -> pins defined as inputs.
	 0 -> pins defined as outputs.

avr-library-hd44780-lcd's People

Contributors

yuk7hi 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.