SED1335 320x240 graphic LCD


Results 1 to 17 of 17

Threaded View

  1. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Digital potentiometer

    This is the code and circuitry to control the contrast and backlight via the PIC:

    CLEAR
    ADCON1 = 7

    ASM
    @ DEVICE PIC16F877, HS_OSC, WDT_OFF, PWRT_ON, BOD_ON, LVP_OFF, CPD_OFF,
    WRT_OFF, DEBUG_OFF, PROTECT_OFF
    ENDASM

    DEFINE OSC 20

    varContrast VAR BYTE
    varBacklight VAR BYTE

    varContrast = 100
    HPWM 1,varContrast,32767

    varBacklight = 200
    HPWM 2,varBacklight,32767

    ' Here I have logic to scan 4 input buttons to increase/decrease varBacklight
    ' and varContast, then I reissue HPWM commands using new values.

    END


    Robert
    Attached Images Attached Images  
    Last edited by Demon; - 28th May 2006 at 18:43.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. SED1335 320x240 LCD
    By Demon in forum General
    Replies: 4
    Last Post: - 4th May 2006, 01:36
  5. graphic LCD sed1335
    By kk11 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2005, 22:59

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