![]() |
RoboLib
1.0
|
file
robolib/display.h
description
The display modul contains functions for printing data to a Display.
The functions work with standard displays using the KS0070B controller.
The controller is initalized to use two or four lines and 5x7 dots for each character.
There will be no automatic linebreak check at the end of a display line. Due to the internal memory of the display line 0 relates to address 0x00-0x0F and display line 1 relates to address 0x40-0x4F.
The port connected to the control pins (RS, RW, E) will be set to PORTA if the preprocessor switch DISPLAY_PORTx is not set to an other value.
The pin number connected to the enable-signal will be set to pin 4 if the preprocessor switch DISPLAY_PIN_E is not set to an other value.
The pin number connected to the RS-signal will be set to pin 5 if the preprocessor switch DISPLAY_PIN_RS is not set to an other value.
The pin number connected to the RW-signal will be set to pin 6 if the preprocessor switch DISPLAY_PIN_RW is not set to an other value.
The port connected to the data pins 4-7 will be set to the same port as the control pins if the preprocessor switch DISPLAY_DATA_PORTx is not set to an other value.
The data pins 4-7 will be set to the pins 0-3 of the data port if the preprocessor switch DISPLAY_DATA_HI is not set. Otherwise the data pins 4-7 are set to pins 4-7.
dependencies
This modul depends on the following modules:
It uses the the following macros:
example
Here is an examples for the overall usage: