Skip to content
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Community Forum

  1. Home
  2. Categories
  3. Blog articles comments
  4. New Adafruit generic OLED display driver for Raspberry PI

New Adafruit generic OLED display driver for Raspberry PI

Scheduled Pinned Locked Moved Blog articles comments
driver1.30.96i2ciic
53 Posts 20 Posters 52.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shiftleftplusone
    wrote on last edited by
    #36

    and 3rd,
    how to optionally the OLEDson i2c-1 or/and on i2c-0 ?

    1 Reply Last reply
    • S Offline
      S Offline
      shiftleftplusone
      wrote on last edited by
      #37

      sorry, typos:
      and 3rd,
      how to optionally drive the OLEDs on i2c-1 or/and on i2c-0 ?

      1 Reply Last reply
      • T Offline
        T Offline
        tito
        wrote on last edited by
        #38

        now I'm running into the same issues as the former user:
        examples are running as sudo from console, but if I load the example source oled_demo.cpp into Geany, it compies, but buils does not work.
        which are the exact parameters for the library to link to?
        -I/ArduiPi_OLED ??
        -L/ArduiPi_OLED ??

        1 Reply Last reply
        • CharlesC Offline
          CharlesC Offline
          Charles
          wrote on last edited by
          #39

          It's L of "Library" but in lower case

          so but I do not know if Geany requires the -l switch before or not so you can try
          -lArduiPi_OLED or ArduiPi_OLED

          1 Reply Last reply
          • T Offline
            T Offline
            tito
            wrote on last edited by
            #40

            oh yes, a lowercase l (L) seems to work, and no -L is required as it seems, and now it also runs started out of different folders, thank you!

            • Tim
            1 Reply Last reply
            • T Offline
              T Offline
              tito
              wrote on last edited by
              #41

              now I just have to figure out how to start oled type 6 out of the source code without either command line parameters, just screen-out to this static oled type... will see, thanks again!

              1 Reply Last reply
              • T Offline
                T Offline
                tito
                wrote on last edited by
                #42

                ps, in the source code I also exchanged
                #include "ArduiPi_OLED_lib.h"
                #include "Adafruit_GFX.h"
                #include "ArduiPi_OLED.h"
                by
                #include <ArduiPi_OLED_lib.h>
                #include <Adafruit_GFX.h>
                #include <ArduiPi_OLED.h>

                1 Reply Last reply
                • T Offline
                  T Offline
                  tito
                  wrote on last edited by
                  #43

                  no, I don't get it: how to call
                  display.init()
                  in order to force oled 6 (i2c) without using any commandline parametes?

                  1 Reply Last reply
                  • T Offline
                    T Offline
                    tito
                    wrote on last edited by
                    #44

                    think I got it:

                    // Oled supported display in ArduiPi_SSD1306.h
                    // Get OLED type
                    //parse_args(argc, argv);

                    /* 
                    // SPI
                    if (display.oled_is_spi_proto(opts.oled))
                    {
                    	// SPI change parameters to fit to your LCD
                    	if ( !display.init(OLED_SPI_DC,OLED_SPI_RESET,OLED_SPI_CS, opts.oled) )
                    		exit(EXIT_FAILURE);
                    }
                    else	
                    */
                    
                    {
                    	// I2C change parameters to fit to your LCD
                    	if ( !display.init(OLED_I2C_RESET, 6) )
                    		exit(EXIT_FAILURE);
                    }
                    display.begin();
                    
                    1 Reply Last reply
                    • Y Offline
                      Y Offline
                      yanniks
                      wrote on last edited by
                      #45

                      Any solution for the problem that the screen is freezing?
                      The display is working fine with the Python script we found here so that can't be the problem. The Raspberry Pi is a Raspberry Pi 3.

                      Thank you for your support.

                      1 Reply Last reply
                      • T Offline
                        T Offline
                        tito
                        wrote on last edited by
                        #46

                        hello,
                        if I am using your lib in my own programs I always need sudo to start them.
                        How can I make them executable by every user (e.g., standard user pi) ?

                        1 Reply Last reply
                        • S Offline
                          S Offline
                          shyamvnarayanan
                          wrote on last edited by
                          #47

                          Hi Charles,

                          I am looking to use a 128x96 16-bit color OLED for my project using the SSD1351 controller. Could you help me understand

                          1. What changes would be needed to your 1306 driver to make it work for the SSD1351
                          2. Would you have some kind of reference code for that ?
                          3. How would the wiring look like ?

                          Whatever help/direction you could offer would be much appreciated. I was thinking of trying out your raspberry pi example for 1306 and start making changes from that point. Not sure if thats the right approach or should I go straight to the 1351.

                          Regards
                          Shyam

                          1 Reply Last reply
                          • D Offline
                            D Offline
                            dennischrist
                            wrote on last edited by
                            #48

                            Hi Charles,

                            is it possible to hook multiple screens up to the Rasberry Pi?

                            I have 8 SSD 1306 7pin SPI that I would like to hookup.

                            best,

                            D

                            1 Reply Last reply
                            • S Offline
                              S Offline
                              snapx12
                              wrote on last edited by
                              #49

                              Hi,

                              So as far as I understand, there is no way to use this driver with a SH1106 SPI 128x64 ?
                              That's a real shame, and I can't find any other rasppi drivers.

                              If someone could help, that would be great,
                              Regards

                              1 Reply Last reply
                              • P Offline
                                P Offline
                                paulfo
                                wrote on last edited by
                                #50

                                Having rebuilt my Stretch OS deploy, and not done an apt-get upgrade/update. The process of installing the dependencies has worked. However, compilation of ArduiPi_OLED fails because ld can't find -li2c
                                Others reporting the issue on GitHub have used the debian .deb file for libi2c0 but this causes all my i2c applications (i2ctools) to fail with invalid instruction.
                                Where should I be installing the library for i2c from?
                                libi2c-dev and i2ctools are successfully installed.

                                1 Reply Last reply
                                • A Offline
                                  A Offline
                                  alex-graf
                                  wrote on last edited by
                                  #51

                                  ... i fixed the problem with sh1106 (128x64) spi. The -li2c error is also be fixed.
                                  I added the 2 changed files to github. I spend a lot of time to find the error - but now it's working 🙂
                                  Here the github-link: https://github.com/alex-graf/ArduiPi_OLED_sh1106

                                  1 Reply Last reply
                                  • B Offline
                                    B Offline
                                    Bob
                                    wrote on last edited by
                                    #52

                                    I still can't make it work. Have cloned your files and replaced the bcm2835.c and bcm2835.h with the new ones as well as replaced the ArduiPi_OLED.cpp and the makefile in the original ArduiPi_OLED directory with your ones but still i get the /usr/bin/ld: cannot find -li2c error. Any ideas - what am I doing wrong please. (Raspberry Pi 3 with Stretch fresh install then followed hallard instructions, then replaced files you mention). Many thanks.

                                    1 Reply Last reply
                                    • T Offline
                                      T Offline
                                      Tim
                                      wrote on last edited by
                                      #53

                                      I followed the steps just like Bob did and im still getting the "cannot find -li2c" error. Honestly i don't see why i need I2C anyways since everything i wanna do is test an SPI display...

                                      1 Reply Last reply

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      2

                                      Online

                                      5.8k

                                      Users

                                      565

                                      Topics

                                      5.3k

                                      Posts

                                      Top Topics

                                      Popular Tags

                                      teleinfo
                                      25 topics
                                      arduino
                                      19 topics
                                      remora
                                      16 topics
                                      esp8266
                                      10 topics
                                      arduipi
                                      10 topics
                                      raspberry
                                      8 topics
                                      wifinfo
                                      7 topics
                                      broadcast
                                      7 topics
                                      Copyright © 2022 Charles-Henri Hallard | Return to blog page | Powered by NodeBB
                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Blog
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups