Graphical Displays with PBP3


+ Reply to Thread
Results 1 to 40 of 115

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Your lib file looks more like an example file. Is it correct ?
    it is. it's the driver component to enable my graphics library to use a sharp memory display.
    post #1 has typical use demos!
    Warning I'm not a teacher

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    update to ssd1306 include to allow easier configuration for 40x72 displays

    eg
    Code:
    '****************************************************************'*  Name    : SSD1306 FOR PIC 18 DEMO                           *
    '*  Author  :  Richard                                          *
    '*  Notice  :                                                   *
    '*          :                                                   *
    '*  Date    : 27/12/2023                                         *
    '*  Version : 1.0                                               *
    '*  Notes   :                                                   *
    '*          :18f26k22 @64Mhz                                    *
    '****************************************************************
    
    
    #CONFIG
      CONFIG  FOSC = INTIO67
      CONFIG  PLLCFG = ON
      CONFIG  PRICLKEN = ON
      CONFIG  FCMEN = OFF
      CONFIG  IESO = OFF
      CONFIG  PWRTEN = ON
      CONFIG  BOREN = SBORDIS
      CONFIG  BORV = 190
      CONFIG  WDTEN = ON
      CONFIG  WDTPS = 32768
      CONFIG  CCP2MX = PORTC1
      CONFIG  PBADEN = OFF
      CONFIG  CCP3MX = PORTB5                                
      CONFIG  T3CMX = PORTC0
      CONFIG  HFOFST = ON
      CONFIG  P2BMX = PORTB5
      CONFIG  MCLRE = EXTMCLR
      CONFIG  STVREN = ON
      CONFIG  LVP = OFF
      CONFIG  XINST = OFF
      CONFIG  DEBUG = OFF
      CONFIG  CP0 = OFF
      CONFIG  CP1 = OFF
      CONFIG  CP2 = OFF
      CONFIG  CP3 = OFF
      CONFIG  CPB = OFF
      CONFIG  CPD = OFF
      CONFIG  WRT0 = OFF
      CONFIG  WRT1 = OFF
      CONFIG  WRT2 = OFF
      CONFIG  WRT3 = OFF
      CONFIG  WRTC = OFF
      CONFIG  WRTB = OFF
      CONFIG  WRTD = OFF
      CONFIG  EBTR0 = OFF
      CONFIG  EBTR1 = OFF
      CONFIG  EBTR2 = OFF
      CONFIG  EBTR3 = OFF
      CONFIG  EBTRB = OFF
    #ENDCONFIG       
     DEFINE OSC 64
        ;set these  to match display
        ssd1306_addr con $78 
        #DEFINE colours 1   ;1 mono 2 rg or 3 rgb
        width  con 72;128      
        height con 40;64      
        h_offset con 28
        
        include "grx.pbpMOD" 
        include "SSD1306.pbpMOD"
        include "Arial_Narrow18x39.bas"
    '    include "bignum.bas"       
    '    include "bigchr.bas"
        BUFF     VAR BYTE[10]
        J VAR word
      
        ANSELB=0
        ANSELC=0
        ANSELA=0
        OSCCON=$70
        
      
        gosub glcd_init
        gosub grf_clr
        SETFONT Arial_Narrow18x39
        gosub show 
                  
    main:
         while j <1000
         colour=1
         fillrect 0,0,72,40
         ARRAYWRITE BUFF,[dec2 j/10,":",dec1 j,0]
         DMDSTR 1,0,buff,0
         gosub show 
         pause 10
         j=j+1
         wend
         j=0
    goto main
    Attached Files Attached Files
    Warning I'm not a teacher

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Nice and useful addition to a very handy include file.

    Though I wonder up to what age you can read that displays without eye glasses...

    Ioannis

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Though I wonder up to what age you can read that displays without eye glasses...
    that's kinda the purpose of this universal graphics method, fonts for it of a good size are simple to make and interchangeable
    between versions and displays.
    a 5x7 font on that display needs a magnifying glass and eye glasses for me.
    note i used a 18x39 font to test with. that i can read from many metres away easily
    Warning I'm not a teacher

Similar Threads

  1. Replies: 3
    Last Post: - 1st January 2021, 21:28
  2. problem using Graphical LCD
    By Mostafa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2007, 18:15
  3. Graphical LCDs
    By T.Jackson in forum General
    Replies: 5
    Last Post: - 14th May 2007, 06:29
  4. Vb 6.0 Graphical plug in
    By rocky79 in forum Serial
    Replies: 0
    Last Post: - 8th March 2006, 18:42
  5. Graphical user interface
    By rocky79 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th October 2005, 12:25

Members who have read this thread : 25

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