Help With OLED Display / 128X64 SSD1306 - Page 3


Today 11:57
Forum: Proton Plus Compiler v3
Starter: BenBarber
Views: 4587
Replies: 42
Go to last post By: shantanu@india
Today 11:56
Forum: The Lounge
Starter: Tim
Views: 0
Replies: 15
Today 11:10
Forum: Proton Studio
Starter: johngb
Views: 0
Replies: 3
Go to last post By: david
Today 09:17
Forum: Proton 24
Starter: hadv215
Views: 0
Replies: 4
Today 07:48
Forum: Proton 24
Starter: craig
Views: 0
Replies: 2
Today 07:10
Forum: The Lounge
Starter: shantanu@india
Views: 0
Replies: 25
Yesterday 21:14
Forum: USB
Starter: towlerg
Views: 0
Replies: 4
+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Help With OLED Display / 128X64 SSD13061248 days old

  1. #21
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    799
    Thumbs Up
    Received: 24
    Given: 16
    Total Downloaded
    721.72 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    That's great to hear, I'm glad to help.

    I did print some battery symbols at one stage but I think I changed the way I did things after that, I will look at it again.

    When I did start working with this display I started with fixed width fonts which was quite simple and would work with a normal font converter, then I went on to variable width and it was more complicated. Anyway I will get something working in the next week or so.

    Simon

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #22
    Member craig's Avatar
    Join Date
    Dec 2010
    Posts
    181
    Thumbs Up
    Received: 11
    Given: 0
    Total Downloaded
    709.12 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    Thank you Simon Much appreciated, I will post a pic of it working once I have cleaned my code up a bit.
    Kind regards

    Craig

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #23
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    799
    Thumbs Up
    Received: 24
    Given: 16
    Total Downloaded
    721.72 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    It looks like the original code I posted will also print from a fixed width font file so that should be fine with any font generation software.

    Note that there are 4 "configuration" bytes before the font data and these are:

    01 - start position of the font data ($04 if there are 4 configuration bytes)
    02 - font height in bytes ($02 for 16 pixels in example)
    03 - font width
    04 - ascii offset
    (there are more of these config bytes with the variable width fonts I use)

    I will attach an example below for battery symbols that I was testing with, just include this as an .inc file with the other fonts

    Use printChar(battery_2b, 8, 0, 0) to print it.

    Code:
    Dim battery_2b As Code = As Byte $04, $02, $20, $00,_
    
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for  
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for !
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for "
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for #
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for $
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for %
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for &
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for '
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for (
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for )
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for *
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for +
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for ,
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for -
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for .
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$F4,$17,$E4,$13,$C4,$11,$84,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for '
       $00,$00,$00,$00,$FC,$1F,$04,$10,$F4,$17,$D4,$15,$A4,$16,$D4,$11,$B4,$16,$64,$12,$24,$15,$54,$12,$A4,$10,$24,$16,$54,$11,$04,$10,$84,$14,$24,$10,$04,$10,$04,$12,$24,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$00,$00,$00,$00,_' Code for 0
       $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,_' Code for 1
       $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,_' Code for 2
       $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,_' Code for 3
       $00,$00,$00,$00,$FC,$1F,$FC,$1F,$FC,$1F,$FC,$1F,$FC,$1F,$FC,$1F,$FC,$1F,$04,$10,$04,$10,$04,$10,$84,$10,$84,$10,$84,$11,$84,$11,$84,$13,$84,$13,$F4,$17,$E4,$10,$E4,$10,$C4,$10,$C4,$10,$84,$10,$84,$10,$04,$10,$04,$10,$FC,$1F,$E0,$03,$E0,$03,$00,$00,$00,$00' Code for 4
    Attached Files Attached Files

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #24
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    799
    Thumbs Up
    Received: 24
    Given: 16
    Total Downloaded
    721.72 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306


  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #25
    Member craig's Avatar
    Join Date
    Dec 2010
    Posts
    181
    Thumbs Up
    Received: 11
    Given: 0
    Total Downloaded
    709.12 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    Thank You Simon
    That looks brilliant, I have loaded the battery symbol and it looks excellent!
    I will post a pic a bit later today everything is printing Perfectly.
    I hope that I can Persuade you to do a Wiki Article on the Display, It would be a great pity to loose this amazing work in the threads.

    What I did was test the HBUS Commands on a prototype board and it worked perfectly so I just changed them to BUS Commands as I couldn't move my Pins on My PCB and it works Perfectly as well.

    Thank you again Simon for all your help and kindness, I am very appreciative of your help!

    Kind Regards

    Craig
    Last edited by craig; 16th March 2019 at 11:02.

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #26
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,279
    Thumbs Up
    Received: 77
    Given: 39
    Total Downloaded
    3.21 GB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    Simon

    Where did you get the SSD1306? I can find a device called SSD1306 but it has far more than four connections.
    I can't find one that looks like the one in your last photo.

    Charlie

  12. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  13. #27
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    799
    Thumbs Up
    Received: 24
    Given: 16
    Total Downloaded
    721.72 MB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    I got mine from AliExpress.

    I think there is an SPI version which may have the same model number and that has more connections.

    They are nice and cheap and come in different colours or even mixed colours.

  14. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  15. #28
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,279
    Thumbs Up
    Received: 77
    Given: 39
    Total Downloaded
    3.21 GB

    0 Not allowed!

    Default Re: Help With OLED Display / 128X64 SSD1306

    Thanks Simon, I'll give it a try.

  16. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

     

Similar Threads

  1. spi 128x64
    By Jezsmith in forum Proton 24
    Replies: 30
    Last Post: 25th May 2017, 07:51
  2. Help With OLED Display / 128X64 SSD1306
    By Denner in forum LCD module
    Replies: 69
    Last Post: 8th January 2017, 01:00
  3. 128x64 Graphic Displays
    By mikedownunder in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 21st October 2011, 11:14
  4. [SOLVED !] Help Display GLD JHD529M1 128x64
    By kontermas in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 9th February 2010, 17:08

Tags for this Thread

Posting Permissions

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