B4R Question SH1106 1.30" lcd display issues

Discussion in 'B4R Questions' started by Cableguy, Apr 14, 2018.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi EREL,

    I Have a SH1106 based LCD display, which I got working to 80% (see the image)
    30177280_2183931448288597_2132197923_o.jpg

    My 2 issues are:

    1 - position 0,0 is shifted to the left about 4px and thus a 4px wide Vertical line appears in the right side.
    In the image a part of this line is erase by the space occupied by the text.

    2 - I need to show graphics in this display and as it stands today I can't see how.

    I am using the SeedOLED + Wire libs to make this one work.

    Its a 4wire IIC display with no address setting.

    So, any chance to update this LIB to lattest versions?
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Hiya @Cableguy,

    Hmm, I have a few of those LCD's and I've not come across that issue. I'll have another look at it later when I'm back from my 34 mile bike ride as I'm not sure if I've ever actually tried setting text to display at location (0, 0).
     
    Cableguy likes this.
  3. Cableguy

    Cableguy Expert Licensed User

    This seems to be a known issue with some lcds with this particular chip.
    Take a look at this discussion.
    It looks like I would need to change a shift setting in the lib itself, but I would prefer to have a properly working lib.
    Also, I will need to do some graphics on it, so if you have any info on that, I will appreciate it.
     
  4. Peter Simpson

    Peter Simpson Expert Licensed User

    I've just seen this quote in the link that you posted "I think your display really has a SH1106 controller. It is similar, but not identical to the SSD1306".

    I know for a fact that I have the 1306 controller even though they look identical. I'll be back home in an hour, could you send me the code that you are using?

    Cheers...
     
  5. Cableguy

    Cableguy Expert Licensed User

    I just copied the example in the u8glib thread and added the lines
     
    Peter Simpson likes this.
  6. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello cable guy,
    I can confirm that it's working perfect with my 1306. I thought that I had an 1106 but I can't find it right now, that's if I have got one.

    Is there no library for the 1106, if so you could always just use inline c like I did here because the standard libraries on the forum don't work with the esp32 in this link and the standard library is missing some features too https://www.b4x.com/android/forum/t...-in-oled-display-progress-bar-inline-c.81391/
     
  7. Cableguy

    Cableguy Expert Licensed User

    Thanks for testing... I will try inline c and maybe convert a code module into a usable lib
     
  8. Peter Simpson

    Peter Simpson Expert Licensed User

    Last edited: Apr 14, 2018
  9. Cableguy

    Cableguy Expert Licensed User

    Thanks
     
    Peter Simpson likes this.
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. Peter Simpson

    Peter Simpson Expert Licensed User

    tigrot and Cableguy like this.
  12. Erel

    Erel Administrator Staff Member Licensed User

    I saw your post. I wanted that Cableguy will confirm that it works...
     
    Cableguy likes this.
  13. Cableguy

    Cableguy Expert Licensed User

    I'm having some difficulties compiling and uploading with arduino IDE. I'll keep you posted
     
  14. Cableguy

    Cableguy Expert Licensed User

    YES, YES, IT WORKS!!!

    I just managed to make it work with the Arduino IDE and the example (i2c version) provided inside the lib.
    No shifting and no vertical line!

    EREL, I can try to create a code module and convert it to a lib, but it would be so much more elegant a proper wrapper.... please????
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    I will create a wrapper for this.
     
  16. Cableguy

    Cableguy Expert Licensed User

    Any ETA on this?
     
Loading...