Starting over with PICBasic Pro 3


Results 1 to 6 of 6

Threaded View

  1. #6
    Join Date
    Jan 2013
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Starting over with PICBasic Pro 3

    For the benefit of anyone who might land on this thread in the future, here's some code that works.

    '************************************************* ***************
    '* Name : Serial LCD.pbp *
    '* Author : tracecom *
    '* Notice : *
    '* : *
    '* Date : 3/5/2013 *
    '* Version : 1.0 *
    '* Notes : PIC16F84A *
    '* : Modern Device LCD117 Serial Adapter & 2x16 LCD. *
    '************************************************* ***************

    Include "modedefs.bas"
    serout 0,T2400,["?BFF"] ' Set LCD backlight to maximum brightness.
    PAUSE 200 ' Pause to allow LCD EEPROM to program.
    SEROUT 0,T2400,["?G216"]' Configure the LCD geometry: 2x16.
    PAUSE 200 ' Pause to allow LCD EEPROM to program.

    main:
    pause 1000 ' Wait for the LCD to startup.
    serout 0,T2400,["?f"] ' Clear the screen.
    pause 1000 ' Wait one second.
    serout 0,T2400,["Wherever you go,"] ' Send the string "Wherever you go,".
    serout 0,T2400,["?m"] ' Move the cursor to the second line.
    serout 0,T2400,[" there you are."] ' Send the string " there you are."
    pause 1000 ' Wait one second.
    goto main ' Do it again.


    ETA: I do get an error message from the PICkit2: Verification of configuration failed.
    But the LCD works.
    Last edited by tracecom; - 5th March 2013 at 23:59.

Similar Threads

  1. Moving from Basic Stamp and MIKROE basic to PicBasic PRO
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 40
    Last Post: - 6th March 2013, 05:27
  2. Replies: 7
    Last Post: - 24th December 2012, 20:41
  3. Wake from sleep (Well, sorta) 16F88, PICBASIC PRO
    By SFOdesigns in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2012, 14:43
  4. Set the starting time with ds1302 picbasic
    By crisxstyle in forum Off Topic
    Replies: 9
    Last Post: - 30th September 2008, 15:14

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