Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Göran Lundberg
@ageir
@dbrgn I just pushed a lot of new changes. Can you have a look when you have the chance. Some things I'm not so happy about how I solved it, but could't find a better solution. Mainly the error checking. Hope you have some ideas.
Göran Lundberg
@ageir
I added some comments to the code.
Göran Lundberg
@ageir
@paulenuta Please add support in the tests for your display size when the new test system is in the main branch :)
Danilo Bargen
@dbrgn
@GoranLundberg I left 4 more comments.
we can always improve later :)
Göran Lundberg
@ageir
Ah, I'll take a look.
Göran Lundberg
@ageir
Fixed!
Göran Lundberg
@ageir
Found some more to fix :P Sorry
Sorry about the 'all fixes in one' pull request. Will try to make a new PR for each in the future.
Göran Lundberg
@ageir
@dbrgn I got some PCF8574 backpacks from Ali yesterday. :) How do I connect these? Do I need a level shifter to connect it to the Pi? or just feed it with 5v/GND/SDA/SCL directly from the Pi?
Paul
@paulenuta
@GoranLundberg - using a level shifter is the correct and safest way! But I have done some short test the way you said and also by providing 3.3V instead of 5V (display won't look really good and you need to adjust contrast) whis is safer for the Pi. Also on Adafruit MCP23008 I cut the power pin from MCP to add 2 x 1N4148 diodes between 5V rail and MCP power pin and I removed the pull-up's on I2C from the backpack.
Göran Lundberg
@ageir
That's what I thought. I'm using a level shifter with the adafruit backpack.
Danilo Bargen
@dbrgn
I got some new displays (a 20 cm wide 20x4 LCD and a 2x40 LCD), will try the current code version with that when I find some time.
Göran Lundberg
@ageir
Cool. I got a big 20x4 as well :)
Danilo Bargen
@dbrgn
Danilo Bargen
@dbrgn
@GoranLundberg just merged your branch - finally :)
Danilo Bargen
@dbrgn
I'll do a release tonight. I'm AFK for around 2-3 hours, will do it afterwards. Let me know if you tink something's missing that should go into the release.
By the way, I plan to make this a 1.0.0 release.
(And yes, CI is currently broken, I'll fix that before the release.)
Danilo Bargen
@dbrgn
I'll also remove enums in this release. Makes it easier to port to MicroPython.
Danilo Bargen
@dbrgn
1.0.0 is released :sparkles:
Danilo Bargen
@dbrgn
Göran Lundberg
@ageir
Cool! Have to check it out!
You got a typing error on the reddit post. Says mcp23014 instead of mcp23017
Also in the changelog
Danilo Bargen
@dbrgn
uh, thanks!
@GoranLundberg will fix that sometime :)
Göran Lundberg
@ageir
Just wanted to let you know I changed my username. It's a lot shorter now :)
Danilo Bargen
@dbrgn
@ageir late, but: nice :)
RpiUser91
@RpiUser91
Hi, Wondering if anyone can point me in the right direction. I am very new to both RPi and any programming . I recently purchased a RPi 3 and a 16x2 LCD with built in I2C chip (PCF8574). I installed libraries (i2c-tools, libi2c-dev, python-smbus). I enables I2c coms and checked address of my LCD (shows 27 on bus 1). i then installed RPLCD. I then try and run any commands such as, 'from RPLCD import CharLCD
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23])
lcd.write_string(u'Hello world!')' but nothing appears on my LCD. Am i missing something? how do i check the RPLCD program is looking at the correct address? How do i correct address if wrong? any help or direction would be appreciated. Most youtube tutorials deal with GPIO connection, not I2C, or they skip over steps...
Paul
@paulenuta
Hi, there. You try to init a parallel interface lcd. Look for i2c init examples in the RPLCD.
RpiUser91
@RpiUser91
@paulenuta Ok, so i tried running the test examples with no luck. I then downloaded the RPLCD package from Github and sudo installed it. I now have my LCD turning on and displaying text as the test runs. Now i just need to figure out how to integrate it into code. Thanks for the help :smile:
Paul
@paulenuta
You are welcome!
Danilo Bargen
@dbrgn
Oh, I think I still need to do a release with the current version... Let me check.
Hm, nope, version 1.0.0 should be current: https://github.com/dbrgn/RPLCD/commits/master
@RpiUser91 check out http://rplcd.readthedocs.io/en/stable/getting_started.html#setup-i2c. you need to use from RPLCD.i2c import CharLCD.
RpiUser91
@RpiUser91
How is this Walkthough not all over the interwebs? got it working just how i want it. Thanks
Danilo Bargen
@dbrgn
great!

How is this Walkthough not all over the interwebs?

It's linked in the README, under "Documentation" :) I'll also add it to the description on Github though.

Danilo Bargen
@dbrgn
Some news:
  • pigpio backend is merged: dbrgn/RPLCD#77
  • gpio backend is lazily imported when using the compat wrapper. this prevents needing RPi.GPIO when using the pigpio or i2c backend dbrgn/RPLCD#78
  • Improve help when missing numbering_mode keyword argument to CharLCD: dbrgn/RPLCD#80
  • Bundle test scripts when packaging: dbrgn/RPLCD#82
I'll probably do a new release soon-ish. Feedback from @/all is welcome :)
Danilo Bargen
@dbrgn
Version 1.1.0 released!
Göran Lundberg
@ageir
Nice. Have to try The pigpio support. Was using both libraries for a few projects. Will make it easier.
seanspotatobusiness
@seanspotatobusiness
I have a character LCD connected to my Raspberry Pi. Sometimes the text sent with RPLCD is displayed correctly and other times the display is blank or garbled. Someone suggested that the assumed timings for the controller may be incorrect. Is it possible to adjust the timings?
mackrasp
@mackrasp
pi@rpb:~ $ sudo pip3 install python-smbus
Collecting python-smbus
Could not find a version that satisfies the requirement python-smbus (from versions: )
No matching distribution found for python-smbus
mackrasp
@mackrasp
I am trying to use a LCD with an I2C port expander PCF8574 with a Raspberry Pi running Python3. I am unable to find a version of python-smbus or python-smbus2. RPLCD has been installed OK.
Danilo Bargen
@dbrgn
@seanspotatobusiness @mackrasp sorry, somehow I never got a notification for your messages...
@seanspotatobusiness see compatibility mode here: https://rplcd.readthedocs.io/en/latest/troubleshooting.html#compatibility-mode
@mackrasp python-smbus is the package name used by apt: sudo apt install python-smbus.