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

T

tito

@tito
About
Posts
11
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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) ?

    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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();
    
    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

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

    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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>

    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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!

    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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
    Blog articles comments driver 1.3 0.96 i2c iic

  • New Adafruit generic OLED display driver for Raspberry PI
    T tito

    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 ??

    Blog articles comments driver 1.3 0.96 i2c iic

  • Adafruit SSD1306 OLED Display Driver for Raspberry Pi
    T tito

    partially resolved -

    1. commands have to beexecuted as sudo
    2. old 1306 drivers don't work, I have to use new driver lib and display no. 6 (no idea why, but anyway...).
    Blog articles comments adafruit driver oled arduipi

  • Adafruit SSD1306 OLED Display Driver for Raspberry Pi
    T tito

    i2c OLED display is from China, i2c addr is 0x3c, attached to i2c-1, correctly detected by
    i2cdetect -y 1

    not working with your ssd1306-oled examples nevertheless.

    Blog articles comments adafruit driver oled arduipi

  • Adafruit SSD1306 OLED Display Driver for Raspberry Pi
    T tito

    I also had added
    i2c-bcm2708
    i2c-dev
    to /etc/modules,
    but still the same.
    so what might be still wrong?

    Blog articles comments adafruit driver oled arduipi

  • Adafruit SSD1306 OLED Display Driver for Raspberry Pi
    T tito

    hello,
    I purchased a 128x64 SSD1306 and installed as you described:
    git clone https://github.com/hallard/ArduiPi_SSD1306.git
    cd ArduiPi_SSD1306
    sudo make
    cd examples
    sudo make

    i2c for other devices is working fine on i2c-1.

    But after srarting in the examples folder
    ./ssd1306_demo --verbose --oled 3
    #or alternatively
    ./ssd1306_demo --verbose --oled 4
    then I always get an error:
    ./ssd1306_demo --verbose --oled 4
    ssd1306_demo v1.1
    -- OLED params --
    Oled is : Seeed I2C 128x64
    -- Other Stuff --
    verbose is : yes

    bcm2835_init: Unable to open /dev/mem: Permission denied

    what am I doing wrong?

    Blog articles comments adafruit driver oled arduipi
  • Login

  • Don't have an account? Register

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