Flexible character LCD library for AVR Microcontrollers
Go to file
Collin J. Doering 7c18941836 Add boiler plate code for remaining ANSI escapes
Added function declarations and empty/implementation incomplete
definitions in lcdLib.h and lcdLib.c respectively for remaining ANSI
escape sequences; namely:

- scrollUp
- scrollDown
- eraseDisplay
- eraseInline

Prematurely edited the parsing of any ASCII escape which causes the
screen to be cleared (Eg. '\n' on the last line), to use the new (but
yet to be implemented) scrolling functions; thus after these functions have been
filled in and tested, the ANSI escape support will be complete.

Additionally, escapes that are not supported are passed over without
printing any characters. The two cases that are handled in this commit
are DSR and SGR. The parsing for DSR which when received, normally
prints the current location of the cursor to standard output in the form
"\e[n;mR", where n is the row and m is the column, is left unsupported
but may be supported in the future (thus comments have been left
indicating condition where a valid parse occurs).

The SGR ANSI escape sequence can vary in length and thus needs to be
completely consumed from the input before processing the next character.
This is taken care of correctly in this commit, and has been tested.

In a previous commit, forgot to add the declarations of the following
utility functions to the lcdLib.h header file:

- blinkCursorOff
- blinkCursorOn
- displayOff
- displayOn

There are still a few functions that will be needed for reading
data from the LCD that have not been declared/defined. These functions
are required for efficiently scrolling the screen up and down. They also
will be needed to finish the last remaining piece of this library which,
after completion of ANSI escapes and associated functions, leaves
support for custom characters. Namely writing characters to CGRAM and
displaying custom characters (from CGRAM) using ASCII codes 0-7 (or 0-3
if 5x10 font is used).

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-10-25 00:27:51 -04:00
.gitignore First pass setting up doxygen documentation 2015-10-15 01:23:11 -04:00
Makefile Fix BAUD rate in Makefile 2015-10-06 04:23:14 -04:00
USART.c Add transmitString function to USART library 2015-10-08 03:15:00 -04:00
USART.h First pass setting up doxygen documentation 2015-10-15 01:23:11 -04:00
ansi_escapes.h First pass setting up doxygen documentation 2015-10-15 01:23:11 -04:00
doxygen.conf First pass setting up doxygen documentation 2015-10-15 01:23:11 -04:00
lcdLib.c Add boiler plate code for remaining ANSI escapes 2015-10-25 00:27:51 -04:00
lcdLib.h Add boiler plate code for remaining ANSI escapes 2015-10-25 00:27:51 -04:00
lcdLibConfig.h First pass setting up doxygen documentation 2015-10-15 01:23:11 -04:00
lcdOutput.c Remove unnecessary null exprs from end of cases 2015-10-22 03:23:08 -04:00