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) ?
Posts made by tito
-
RE: New Adafruit generic OLED display driver for Raspberry PI
-
RE: New Adafruit generic OLED display driver for Raspberry PI
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();
-
RE: New Adafruit generic OLED display driver for Raspberry PI
no, I don't get it: how to call
display.init()
in order to force oled 6 (i2c) without using any commandline parametes? -
RE: New Adafruit generic OLED display driver for Raspberry PI
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> -
RE: New Adafruit generic OLED display driver for Raspberry PI
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!
-
RE: New Adafruit generic OLED display driver for Raspberry PI
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
-
RE: New Adafruit generic OLED display driver for Raspberry PI
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 ?? -
RE: Adafruit SSD1306 OLED Display Driver for Raspberry Pi
partially resolved -
- commands have to beexecuted as sudo
- old 1306 drivers don't work, I have to use new driver lib and display no. 6 (no idea why, but anyway...).
-
RE: Adafruit SSD1306 OLED Display Driver for Raspberry Pi
i2c OLED display is from China, i2c addr is 0x3c, attached to i2c-1, correctly detected by
i2cdetect -y 1not working with your ssd1306-oled examples nevertheless.
-
RE: Adafruit SSD1306 OLED Display Driver for Raspberry Pi
I also had added
i2c-bcm2708
i2c-dev
to /etc/modules,
but still the same.
so what might be still wrong? -
RE: Adafruit SSD1306 OLED Display Driver for Raspberry Pi
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 makei2c 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 : yesbcm2835_init: Unable to open /dev/mem: Permission denied
what am I doing wrong?