Thank you for your donation!


Instruction Guide LCD/OLED display using pydPiper
#71
Hi, I bought an OLED display 2.42 "SPI / I2C

128x64 can it be connected?


   


Attached Files Thumbnail(s)
   
Reply
#72
(03-06-2019, 06:01 AM)nowy1 Wrote: Hi, I bought an OLED display 2.42 "SPI / I2C

128x64 can it be connected?
Hi,

It can be connected using SPI interface (default) or i2c if you can do some soldering as indicated on the board.
If you use it with SPI interface, you can follow this tutorial by Rikardo. If you use the i2c interface, you can use this tutorial instead.

Remy
Reply
#73
And you can write which pins connect to the raspberry?

i2c
Reply
#74
(03-06-2019, 11:51 AM)nowy1 Wrote: And you can write which pins connect to the raspberry?

i2c

Display .            RPi

SDA--------------- PIN 3
SCL---------------- PIN 5
VCC--------------- PIN 2 or 4
GND--------------- any ground PIN

Remy
Reply
#75
(03-06-2019, 08:48 PM)remy1961 Wrote:
(03-06-2019, 11:51 AM)nowy1 Wrote: And you can write which pins connect to the raspberry?

i2c

Display .            RPi

SDA--------------- PIN 3
SCL---------------- PIN 5
VCC--------------- PIN 2 or 4
GND--------------- any ground PIN

Remy


they still do not work Sad he gets this message

pi@moode:~/pydPiper/pydPiper $ sudo /usr/bin/docker run --network=host --privileged -ti -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha /bin/bash
root@moode:/app# python pydPiper.py
Traceback (most recent call last):
  File "pydPiper.py", line 23, in <module>
    class music_controller(threading.Thread):
  File "pydPiper.py", line 68, in music_controller
    'localtime':moment.utcnow().timezone(pydPiper_config.TIMEZONE),
  File "/usr/local/lib/python2.7/dist-packages/moment/core.py", line 81, in timezone
    date = times.to_local(date, zone)
  File "/usr/local/lib/python2.7/dist-packages/times/__init__.py", line 61, in to_local
    'First argument to to_local() should be a universal time.'
ValueError: First argument to to_local() should be a universal time.
root@moode:/app# packet_write_wait: Connection to 192.168.0.242 port 22: Broken pipe
Reply
#76
looks like you have entered the wrong timezone.

timezone = US/Eastern (change this according to your location) <--

I had a similar problem and I put the wrong inside. So I switched back to original an it works.
Reply


Forum Jump: