-
Notifications
You must be signed in to change notification settings - Fork 7
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
Backlight switching not working #3
Comments
Hi,
Thank you. I wrote this code for myself, and after I showed it on RuneAudio
forum, I few guys wanted to use it so I posted it on GitHub. I never
thought that it may became used, so the code is not so clean and
installation and set-up is not so simple. I hope that I will eventually
find some time to make it more simple to install and use, and to make the
code better.
Backlight should work out of the box via I2C, but which display is that?
Usually, there are 16x2 or 20x4. I've never heard about 24x2, maybe it
doesn't have a standard I2C controller and maybe it's missing functionality
to turn backlight off or it has some different instructions.
I haven't used this system for a while, but as far as I remember, showing
]Unknown Artist] or title usually happens when there's no information about
artist or title. This happens when there's nothing in playlist and it's a
normal behaviour.
My code uses MPC client for Python, which listens to MPC and, when a change
occurs, MPC will inform my program, which then checks what has been changed.
Best regards,
Randy
…On Fri, Jun 16, 2017 at 11:27 PM, Mateusz ***@***.***> wrote:
Hello,
First of all, thank you for all your work on this. It is fantastic piece
of code and adds a lot of functionality to the RuneAudio Raspberry players.
I have however some problems with your code. I have Raspberry Pi 2 with
RuneAudio v0.3, hifiberry dac+ and 24x2 character LCD connected via i2c.
Artist and Title is showed without problems, scrolling works, however
backlight is always on and when playback is stopped display shows [Unknown
Artist]/[Unknown Title]. From what I understand this shows that there is a
problem somewhere with communication with MPD, since it looks like your
code doesn't know status of the MPC.
Shuffle, Repeat etc. displays work flawlessly.
I will be thankful for any help.
Best Regards
Mateusz
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGreryMbpT5cCIJiy91ze2pib-Uedth1ks5sEvNdgaJpZM4N89pT>
.
|
Hello Randy,
Thank you very much for your reply, I wasn't expecting such quick response.
Thank you for sharing the code, especially if you just wrote it for
yourself, I'm laying my first steps with Python so it looks just fantastic
for me and it is impossible for me now to write something like that by
myself (at least for now, as I want to learn it).
I think that I must have been doing something wrong, some small silly
mistake, because it looks like MPC client doesn't get or understand all
information from MPC. It manages to display Artist and Title, but I think
it doesn't know when "Stop" or "Pause" is and still thinks that "Play" is
all the time. That's why I think backlight doesn't turn off and [Unkown
Artist/Title] is shown when music is stopped. I'm sure that files I'm
testing it with have all Artist/Title/etc. information filled and RuneAudio
UI (as well as MPDroid) show them correctly.
I would just love it if you could just get me a hint - 'try that, or change
this', but I understand it's not that simple and I cannot ask you for that.
My display is a bit unusual in case of columns and rows, but it's standard
HD44780 Character LCD, just of different size. Your code recognizes it very
well (after correcting number of rows and columns in start.py) as it
displays text on all columns and rows perfectly. I'm using it with I2C
backpack based on PCF8574AT chip on 0x3f address (exactly like this one -
https://tronixlabs.com.au/display/lcd/serial-i2c-backpack-for-hd44780-compatible-lcd-modules-australia/
). From what I understand it should support toggling backlight, but maybe
I'm mistaken. Could you please tell me what chip your i2c controller uses?
I have plans to connect my LCD via 4 bit bus with GPIO pins and control
toggling of backlight via NPN transistor, but I would prefer making this
i2c work as it's easier and tidier :).
For now I've tried your code with Volumio and it behaves exactly the same
as on RuneAudio, so I don't think the problems is connected with the Linux
version.
As I said, I wouldn't dare to ask you for a help, however if something
comes up your mind which may help I would be thankful if you could share it.
Best regards
Mateusz
2017-06-17 16:21 GMT+02:00 Randy Čupić <[email protected]>:
… Hi,
Thank you. I wrote this code for myself, and after I showed it on RuneAudio
forum, I few guys wanted to use it so I posted it on GitHub. I never
thought that it may became used, so the code is not so clean and
installation and set-up is not so simple. I hope that I will eventually
find some time to make it more simple to install and use, and to make the
code better.
Backlight should work out of the box via I2C, but which display is that?
Usually, there are 16x2 or 20x4. I've never heard about 24x2, maybe it
doesn't have a standard I2C controller and maybe it's missing functionality
to turn backlight off or it has some different instructions.
I haven't used this system for a while, but as far as I remember, showing
]Unknown Artist] or title usually happens when there's no information about
artist or title. This happens when there's nothing in playlist and it's a
normal behaviour.
My code uses MPC client for Python, which listens to MPC and, when a change
occurs, MPC will inform my program, which then checks what has been
changed.
Best regards,
Randy
On Fri, Jun 16, 2017 at 11:27 PM, Mateusz ***@***.***>
wrote:
> Hello,
>
> First of all, thank you for all your work on this. It is fantastic piece
> of code and adds a lot of functionality to the RuneAudio Raspberry
players.
> I have however some problems with your code. I have Raspberry Pi 2 with
> RuneAudio v0.3, hifiberry dac+ and 24x2 character LCD connected via i2c.
> Artist and Title is showed without problems, scrolling works, however
> backlight is always on and when playback is stopped display shows
[Unknown
> Artist]/[Unknown Title]. From what I understand this shows that there is
a
> problem somewhere with communication with MPD, since it looks like your
> code doesn't know status of the MPC.
> Shuffle, Repeat etc. displays work flawlessly.
>
> I will be thankful for any help.
> Best Regards
> Mateusz
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#3>, or mute the
thread
> <https://github.com/notifications/unsubscribe-auth/
AGreryMbpT5cCIJiy91ze2pib-Uedth1ks5sEvNdgaJpZM4N89pT>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANYQTmYa7oqUP7yYaTgiamm3gXwc3EBsks5sE-DjgaJpZM4N89pT>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all, thank you for all your work on this. It is fantastic piece of code and adds a lot of functionality to the RuneAudio Raspberry players.
I have however some problems with your code. I have Raspberry Pi 2 with RuneAudio v0.3, hifiberry dac+ and 24x2 character LCD connected via i2c.
Artist and Title is showed without problems, scrolling works, however backlight is always on and when playback is stopped display shows [Unknown Artist]/[Unknown Title]. From what I understand this shows that there is a problem somewhere with communication with MPD, since it looks like your code doesn't know status of the MPC.
Shuffle, Repeat etc. displays work flawlessly.
I will be thankful for any help.
Best Regards
Mateusz
The text was updated successfully, but these errors were encountered: