lec 5 Flashcards
what benefit is provided with the addition of a display on Arduino
microcontroller does not need to be connected to a computer to display data
what is a 16 by 2 segment LCD
16 columns and 2 rows, capable
of displaying a maximum of 32 characters
how many modes can LCD be controlled by and what are they called
2 modes: 4-bit and 8-bit
how many pins are required for an 8-bit display
and what pins are used
10 pins on digital I/O port
pins D0 through to D7
how many pins are required for an 4-bit display
and what pins are used
6 pins on digital I/O port
pins D4 to D7
what is it called when data is sent in two parts
nibbles
what is Vss and Vdd
two power supply lines for the LCD that will need to have +5volts and ground
applied to them respectively
what is ‘Backlight Anode & Backlight Cathode’
Inside the display there is a LED to provide illumination of the characters. The cathode needs
to be grounded and the anode connected via an external 220 ohm limiting current resistor to
+5 volts
what is VE
Allows control over the contrast of the display, using a voltage between zero and +5 volts.
what is RS
Controls where in the memory of the LCD driver you are writing data to.
what is RW
Tells LCD driver whether you are writing data to the display, or reading data from it. Use +5
volts to read and ground to write to the display
what is E
pin enables data to be written to the registers
what does the function myLCD.clear() mean
All data and text is removed from the display.
what does the function myLCD.home() mean
Moves the cursor to the upper left hand corner of the display (position 0,0). Any print, or write
instructions will result in characters being printed from this location.
what does the function
myLCD.setCursor(column,row) mean
Moves the cursor to the position specified on the display. Any print or write instructions will result
in characters being printed from this new location.
what does the function myLCD.Cursor() mean
Displays a visible cursor in the form of an underscore to identify where the next character will be
printed on the display
what does the function myLCD.noCursor() mean
Removes the cursor from the display.
what does the function myLCD.blink() mean
Creates a block-style cursor that blinks on and off at 2Hz.
what does the function myLCD.display() mean
Makes all characters and cursors stored in the memory of the LCD driver visible on the display.
what does the function myLCD.noDisplay() mean
Makes all characters and cursors on the display invisible. It does not remove any information from
the LCD driver’s memory.
what does the function myLCD.scrollDisplayLeft() mean
Scrolls all the contents of the display on both rows, including characters and the cursor, one space
to the left. After 40 executions of this instruction the text loops and reappears at the start on the
right-hand side of the display. Continued use of this function results in the text looping around
again and again.
what does the function myLCD.scrollDisplayRight() mean
This function behaves the same as myLCD.scrollDisplayLeft(), except that it moves one space
to the right. Looping of text occurs after 40 executions of the instruction.
what does the function myLCD.autoscroll() mean
Takes a string of text and scrolls it from right to left in increments of the character count of the
string. For example, if you have a word that is 3 characters long, it will shift the word 3 spaces to
the left with each step.
what does the function myLCD.noAutoscroll() mean
turns autoscrolling off
what does the function myLCD.rightToLeft() mean
Sets the direction that text is printed on the display from right to left.
what does the function myLCD.leftToRight(),mean
Sets the direction that text is printed on the display from left to right (default)
what does the function myLCD.createChar() mean
This function enables you to create your own custom characters. 2 parameters need to be passed
to the function, a numerical value to which the new character will be referred to and the array of
data holding the binary information to create the new character.