How to compare strings/array? RFID Project


Results 1 to 40 of 101

Threaded View

  1. #11
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

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

Similar Threads

  1. Parallax RFID Reader code example
    By dan-tron in forum Code Examples
    Replies: 4
    Last Post: - 19th April 2013, 22:16
  2. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  3. Replies: 3
    Last Post: - 12th March 2008, 05:33
  4. Free Web based RFID Online Courses
    By Thirumoorthy in forum General
    Replies: 0
    Last Post: - 19th November 2007, 13:38
  5. Free web based RFID online Course
    By Lesikar in forum GPS
    Replies: 0
    Last Post: - 19th October 2007, 22:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts