+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    1,416

    Default SSD1306 INCLUDE for PBP3

    Features :-
    Pic 16 or 18
    Tiny size about 1.5k words for soft i2c 1.3k for hw i2c
    64X128 OR 32X128 DISPLAYS
    SOFT I2C OR HARDWARE I2C
    NORMAL OR DOUBLE SIZE CHAR
    HORIZ and VERT LINES
    Speed for hw i2c tested up to 2,666,666 clock rate, makes soft i2c look like a snail
    Simple Usercommand Commands
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by richard; - 4th December 2017 at 10:34.
    This is more entertaining than Free to Air TV

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

    Default Re: SSD1306 INCLUDE for PBP3

    update include
    added inline const string capability for pic16 chips
    Attached Files Attached Files
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Sep 2009
    Posts
    645

    Default Re: SSD1306 INCLUDE for PBP3

    Looks good. I don't have lcd to try it out.
    I hope that you didn't write all user command wrapper manually.
    I posted app for that
    http://www.picbasic.co.uk/forum/showthread.php?t=20208

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    1,416

    Default Re: SSD1306 INCLUDE for PBP3

    Code:
    I hope that you didn't write all user command wrapper manually.
     I posted app for that
    I am aware of your app but the base code for this preceded it , so yes it was a manual work
    I haven't done anything pbp wise with enough user command code in it to use your app yet .it seems that
    I have spent most of my time coming to terms with the mcc and xc8 lately . I don't see myself coming back
    from that exercise now . development wise C is just so much easier, I will still keep hacking away at pbp
    for now anyway.
    This is more entertaining than Free to Air TV

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,723

    Default Re: SSD1306 INCLUDE for PBP3

    Nice work, thanks Richard for sharing.

    Ioannis

  6. #6
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    214

    Default Re: SSD1306 INCLUDE for PBP3

    Thank you for posting an SSD1306 example, Richard. I'd like to bring up my 128x32 OLED display using a 16F1823 and XC8 with a 'retro' TIL311 type font.

    Cheerful regards, Mike
    Attached Images Attached Images

  7. #7
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    214

    Default Re: SSD1306 INCLUDE for PBP3

    Richard, may I ask if you did anything special to run the SSD1306 display and I2C interface at ~2.6-MHz, please? I'm amazed that my setup (on a solderless breadboard) is running without any problems at 1-MHz but when I tried a 2-MHz I2C clock the display doesn't come up. I'm using 3.6 kOhm pull-up resistors on the I2C bus.

    Cheerful regards, Mike
    Attached Images Attached Images

  8. #8
    Join Date
    May 2013
    Location
    australia
    Posts
    1,416

    Default Re: SSD1306 INCLUDE for PBP3

    mike
    I had "setup" the display at a lower rate and kept increasing the i2c baud rate till the display failed to update .
    only one of my 6 displays could exceed 1mhz , one had issues above 400khz. I did not look at the pull up resistors .just trusted that the modules were fitted out appropriately. vcc was 3.3 v
    the data sheet specs give a ic2 clock of 2.5uS 400khz so its probably not the best idea I have had.
    i'm running them a 400k for reliability
    This is more entertaining than Free to Air TV

  9. #9
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    214

    Default Re: SSD1306 INCLUDE for PBP3

    I didn't realize there were pull-up resistors already installed on the display module. I pulled the 3.6k resistors and the display works fine. My circult and display are running on 5v.

    Thank you again for new info'...

    Hope you and family are well and enjoying a wonderful summer.

    Cheerful regards, Mike

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 : 30

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