SSD1306 INCLUDE for PBP3


+ Reply to Thread
Results 1 to 40 of 102

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    Thanks for reply,
    It doesn't work quite well. It draw four lines instead one line. For me is more suitable to have variables in usercommands like I wrote before.
    Code:
    GLCDDHL  var1,0,var2,0
    GLCDDVL  var1,0,var2,0
    GLCD_CLR var1,0,var2,0
    because in this case I can point exactly what and where I want to clear the line, or draw a for example 10pixel wide line and move it horizontally wherever I want with changing variables.
    Code:
    do
    for n=0 to 120 step 1
    GLCDDHL 0,0,n,1
    next n
    
    
    for n=120 to 0 step -1
    GLCD_CLR 0,0,120,1 ;is a lot more efficient
    GLCDDHL 0,0,n,1
    next n
    loop
    This solution I tried before as well, it still flicker if line goes from 120 to 0.

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


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 INCLUDE for PBP3

    i can't follow what your saying
    show some code of what you try an describe what you get or post a pic

    did you try new include file like this for narrow bar?
    GLCD_BAR 0,0,var,1,1 ;draw a horiz bar from 0,0 to var . 1 pixels wide ;//or
    GLCD_BAR 0,0,var,1,255 ;draw a horiz bar from 0,0 to var . 1 pixels wide
    Warning I'm not a teacher

Similar Threads

  1. SSD1306 Include example
    By timc in forum Code Examples
    Replies: 11
    Last Post: - 28th November 2017, 08:53
  2. SSD1306 start display problem
    By harryweb in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2016, 19:16
  3. Using INCLUDE to add a text file in PBP3
    By Sumobob in forum PBP3
    Replies: 4
    Last Post: - 16th May 2016, 18:56
  4. PBP3 to include 18F97J94?
    By fowardbias in forum PBP3
    Replies: 1
    Last Post: - 18th December 2013, 16:42
  5. Help With OLED Display / 128X64 SSD1306
    By Denner in forum General
    Replies: 6
    Last Post: - 25th May 2013, 15:40

Members who have read this thread : 24

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