Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: richard; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (72x40) I2C display from scratch

    Nor do I , but I have never come anything to make a bin or hex file easily from the generated code






    mine works perfectly win 10 and 11 , make sure to add the .lcd extension to the...
  2. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (72x40) I2C display from scratch

    because you can save your $1 and another one by buying a better pic to start with and :-

    not have a costlier more complex circuit board .
    use a standard font file generated by glcd font creator....
  3. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (72x40) I2C display from scratch

    the info supplied with the display makes calculating the value somewhat difficult . in fact i cannot see the connection at all

    the command basically sets where the memory line representing page 0...
  4. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    i have tried a 14x10 , a 14x10 doubled to 28x20
    a 13x7 doubled to 26x14 and tripled to 39x21
    they all work ok. imho by leaps and bounds a 40x18 full size font looks best and is only 540 words...
  5. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    i'm not seeing a font , i had a look at a 40x18 font this morning with my new 72x40 that just arrived
    encoded this way seems the best compromise for easy of unpacking into a 18 x 5 byte stream to...
  6. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (72x40) I2C display from scratch

    the font is just a simple block of data
    this one is for digits 0 to 9 + "." + "%" its 14 bits high and 10 bits wide [to match chip flash]
    so total size is 120 words
    for convenience lets locate it...
  7. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    You seem to have the communication to the controller well under control
    next step is to try to store a font economically, you have probably discovered a large font on a very resource limited chip...
  8. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    yes , aligning the font data packing with the ssd1306's memory page layout is more efficient usage of the 14 bit width of the flash memory
    while it will still need some clever manipulation to unpack...
  9. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    you cannot, the smallest element is 1 byte ie one column[page] of 8 rows
  10. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    something to consider about fonts
    it looks like you want 40x22 size font
    a pic16 has a flash word size of 14 bits therefore a font that size
    will take if encoded horizontally by row take 2x40...
  11. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    link worked.


    all you need to do now is
    1 create a 14x10 font with the chrs you need
    2 workout an efficient way to store and retrieve the font
    3 develop a nice way to plonk it on the screen ...
  12. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    the google drive link is a dud
  13. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    ok, then this should be pretty close


    #CONFIG __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOD_ON & _IESO_ON & _FCMEN_ON
    #ENDCONFIG
    define OSC 8...
  14. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    try this, looking for full white screen

    re pull up resistors for i2c bus , looking at the pic in post #1 that module has none on board , every other module i can find on ebay etc has resistors on...
  15. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    are you using my exact code ?
    there are many changes from your orig code including swapping over the scl/sda pins to suit my dev board

    i doubt the pullup resistors are needed most modules have...
  16. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    is this more clear ?
    draws a 7x5 chr A and 14x10 A in a 72x40 window located @ x=0y=0 after clearing screen [ outside of window is just random noise ]

    here's a pic on a 128x64 screen , there...
  17. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    Basically the display is 360 bytes of ram where every bit is a oled, the ram is divided into 5 pages each of 72 bytes
    the 5 pages are overlaid onto a larger array that is 8 pages of 128 bytes,...
  18. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    Some comments
    is the display 72x40 of 42x40 ? you describe it both ways
    the write window should be set to width and page height you require and the pixel/page offset to begin write from for...
  19. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    The latest version of the include is on post #90 of the link posted by ionnis reposted here for your convenience

    this display is not something you can sneak up on easily , you really need a 100%...
  20. Replies
    60
    Views
    43,580

    Re: SSD1306 OLED (42x40) I2C display from scratch

    i would initialize the display as per my posts to start with and work from there




    a simple i2c scan such as this will reveal the address


    ...
Results 1 to 20 of 20