SSD1306 INCLUDE for PBP3 - Page 2


+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 41 to 49 of 49
  1. #41
    Join Date
    May 2013
    Location
    australia
    Posts
    1,918

    Default Re: SSD1306 INCLUDE for PBP3

    I also got the two Label after column 1 warnings (GLCDS_BAR_?CCBWC) etc but it turns out that there's a whitespace infront of those two macro labels on the include file. There was also an ELSE in column 1 causing another warning.

    i had a look at the org file i posted and it has the same errors, i always have trouble with white space


    also found 2017 version where the glcd_clrxy routine was ok, so i must have broken it when i added the bar stuff



    this is better
    Code:
    glcd_clrxy:    ' clear area  x1y1 to x2 y2   
       FOR GRX = 0 TO 31
            glcd_buff[GRX] = glcdData
        NEXT
        CTEMP = (1 + GX_ - GX)*(1 + GY_ -  GY)
        gosub   setxy
        glcd_rad=32
        GRX = CTEMP/32
        while grx
            gosub ssd_data
            grx=grx-1
        wend
        glcd_rad = CTEMP//32
        IF glcd_rad  THEN
            gosub ssd_data
        ENDIF
    return
    Attached Files Attached Files
    Last edited by richard; - 14th March 2021 at 12:54.
    This is more entertaining than Free to Air TV

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

    Default Re: SSD1306 INCLUDE for PBP3

    This is more entertaining than Free to Air TV

  3. #43
    Join Date
    Feb 2013
    Posts
    730

    Default Re: SSD1306 INCLUDE for PBP3

    I'm trying to run this on 16F886
    and getting error
    ASM Symbol not previously defined FSR1L Error 113

    Any ideas?

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

    Default Re: SSD1306 INCLUDE for PBP3

    Wrong MCU selected on the IDE?

    Ioannis

  5. #45
    Join Date
    May 2013
    Location
    australia
    Posts
    1,918

    Default Re: SSD1306 INCLUDE for PBP3

    I'm trying to run this on 16F886
    and getting error
    ASM Symbol not previously defined FSR1L Error 113
    my expectation is that old clunker chips with only one FSR register will likely not have enough Flash and/or Sram
    to be useful with this sort of display, the code makes no allowance for them
    This is more entertaining than Free to Air TV

  6. #46
    Join Date
    Feb 2013
    Posts
    730

    Default Re: SSD1306 INCLUDE for PBP3

    Well, as author stated, this code is suited for 16F series and fits under 4K. 886 has 8K.

  7. #47
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,087

    Default Re: SSD1306 INCLUDE for PBP3

    I have not found FSR1L register on 886 chip...

    Ioannis

  8. #48
    Join Date
    Feb 2013
    Posts
    730

    Default Re: SSD1306 INCLUDE for PBP3

    OK, will try with 18F2550 later and write back.

  9. #49
    Join Date
    Feb 2013
    Posts
    730

    Default Re: SSD1306 INCLUDE for PBP3

    Had no chance to test it yet on PBP, connected to Arduino uno for testing and launched adafruit library demos. Adjusted some speeds and quite impressed. Should I expect same speed on PIC18F2550 or it will be significantly slower?

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

Posting Permissions

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