-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smbus is not recognized #41
Comments
paste the entire output instead
be more specific.
here is the culprit. the lcd drive and demos were meant to be used with Python 2.7. Python 3.x may or may not work. in any case, the error you are seeing has to do with a missing
|
Ok thx ill try that after school…and tell the creator of this that he/she is a legend for making this. Oh also I just looked through some of the closed issues and there were a few people with the same issue so it may be wise to say that if u r on x versions then do y if this error shows up or smth |
sounds good, @AndyBaBaBoi . the repo was created by Matt (@the-raspberry-pi-guy). I just help maintaining it.
if you are referring to #42, #43, and #44, their issue seems to be different because they were using
changes that improve compatibility are always welcomed. to contribute to the project, please read our CONTRIBUTING.md guide. |
ok so @cgomesu i went ahead and did as you recommended and this happened:
so i then went ahead and did this:
do you know why it is not connecting reconizing smbus? |
paste the output of the following:
|
ok @cgomesu hostnamectl:
python --version:
pip list:
python3 --version:
pip3 list:
|
okay. will take a closer look at this issue either tomorrow or Thursday.
it's not compatibility though.
|
found the issue (also related to #42, #43, #44):
working on a solution via a change to in the meantime, @AndyBaBaBoi (and @JoshyOnMars), if you have already installed
please do not close this issue if the above solution works for you. I'll close it once I merge a fix for the |
@cgomesu ok so it works in printing that it is writing to display but it is not showing up on the screen |
66311076838__ABF83081-B4F1-4FC8-A607-56B0DBCF6A20.MOV |
YESSSSS I GOT IT TO WORK i literally twisted the thing on the back the little plus sign BUT IT WORKS |
this was explained in the tutorial: https://www.youtube.com/watch?v=fR5XhHYzUK0&t=410s |
Oh lol i literally watched until literally 1 second before it but also do u think the display could be able to rick roll someone? I mean it would take a bit of work for the custom characters for that but it would be worth it |
there's a lot that can be done but you will be working with a very limited amount of memory. per @juvus' comments in the demo_lcd_custom_characters.py example, you can define and store custom characters in the custom generated random access memory (cg-ram) of the lcd controller, which is 64 Bytes long and because each character uses 8 Bytes, you can only define 8 custom characters that way. |
Ohhhh I see. So would that in theory mean that each frame of the “rick roll” would have to use less than 8 custom characters per frame? Like i could make an infinite amount of them but only load up to eight at a time or can i only create 8 overall. If that is the case could I do some thing where like each frame x list becomes cc1 and y list becomes cc2 and i can replace the 8 with new ones each frame and with that I would have to load it to cg each time? |
Hi, AndyBaBaBoi. |
OK I see now but just to clarify: This will not work as when I do
But I am able to do this and to then do
|
Also @cgomesu how do i use it with these pinns? |
@AndyBaBaBoi, please keep the discussion in this thread about the reported bug. if you have unrelated questions, open a new issue. be mindful that most of us do this in their spare time, so we won't be able to help on a regular basis. |
Hi, @AndyBaBaBoi! |
Describe the bug
When I type ‘python demo_lcd.py’ there is an error where it says that in line 1 of init or somewhere in drivers that ‘from smbus import SMBus’ smbus is not reconized or smth.
Executed command and associated error
Host and software info
latest one
raspian latest one
version 3
add name here and version
Checklist
The text was updated successfully, but these errors were encountered: