Re: How to compare strings/array? RFID Project
Not to be sorry . . . I just do not want to trip you up in your pursuit of life
all that said make sense of this
Code:
' Define LCD registers and bits as 4 bit
Define LCD_DREG PORTB ' port b handling the data
Define LCD_DBIT 4 ' Data bits begin on PortB.4 generally must use consecutive ports starting with 0 or 4
Define LCD_RSREG PORTA ' R/S bit on portA
Define LCD_RSBIT 0 ' Defined as PortA.0
Define LCD_EREG PORTA ' E Bit defined as PortA
Define LCD_EBIT 1 ' Ebit set to PortA.1
DEFINE LCD_LINES 4 'Define using a 2 line LCD
DEFINE LCD_COMMANDUS 2000 'Define delay time between sending LCD commands
DEFINE LCD_DATAUS 50 'Define delay time between data sent.
DEFINE OSC 20
lcdout $FE,1 ' Clear LCD
lcdout $FE,2, " Copyright 2006 " '
lcdout $fe,$C0,"This is my text" '
This is a cut/paste from a project Darrel really helped a lot on,(DID MOST OF) a serial backpack lcd controller.
The defines tell the pic which pins are working the LCD
$FE1 clears the LCD
$FE2 moves cursor to #1 position
$FE,$C0 moves the cursor to another line, my book is not handy right now
Keep in mind a 4X20 LCD is electrically in reality a 2X40 that is chopped in half and stacked so the beginning of line 2 is post 41? and the beginning of line 3 is 21, or something to that effect.
Check out the project at http://www.picbasic.co.uk/forum/cont...rial-backpacks
Oh and BTW , NOBODY hates school more than Me. I totally get it. I still on occasion have to go back and take classes
just because I want to learn what they are teaching, and I still hate it!
Last edited by Archangel; - 3rd December 2014 at 08:53.
Reason: add btw
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks