Go to advanced search

by denis_hr
Fri Apr 07, 2017 10:02 am
Forum: Python
Topic: Monitoring (loop) two sets of events? (threading...?)
Replies: 8
Views: 1300

Re: Monitoring (loop) two sets of events? (threading...?)

Ah, and there's another thing / possible issue... I want to have a dedicated "scroll" button on the IR remote, in case when you're e.g. listening to Internet radio, and you hear a song you like, and want to see the full title (artist and song name), which you missed initially beacause you weren't lo...
by denis_hr
Fri Apr 07, 2017 9:49 am
Forum: Python
Topic: Monitoring (loop) two sets of events? (threading...?)
Replies: 8
Views: 1300

Re: Monitoring (loop) two sets of events? (threading...?)

I see you're setting up a FIFO file to handle communication between threads. By all means stick with that if it's working for you. What I would say is that you may get into problems if two different threads try to access the file at the same time (people talk about being things needing to be "threa...
by denis_hr
Fri Apr 07, 2017 7:14 am
Forum: Python
Topic: Monitoring (loop) two sets of events? (threading...?)
Replies: 8
Views: 1300

Re: Monitoring (loop) two sets of events? (threading...?)

Thanks for your kind help - I've already seen both of your solutions, but both are somewhat of an "overkill" for my purpose - and for my grasp of Python and programming in general :) I would still like to solve this my way, unelegant as it may be, and perhaps prone to bugs, but still.... I am learni...
by denis_hr
Thu Apr 06, 2017 6:59 pm
Forum: Python
Topic: Monitoring (loop) two sets of events? (threading...?)
Replies: 8
Views: 1300

Monitoring (loop) two sets of events? (threading...?)

Hi, First, I'm a relative beginner in Python (my programming knowledge in general is relatively modest, anyway...) I'm working on Python (v. 2.7.9) script(s) which work in conjunction with various audio servers on RasPi, showing the relevant data on a 2x16 character LCD. I know there are serveral su...
by denis_hr
Fri Jun 10, 2016 3:19 pm
Forum: General discussion
Topic: US$2 audio amplifier
Replies: 8
Views: 8337

Re: US$2 audio amplifier

Another (even cheaper!) option is to use any of the cheap PAM 8403 modules from ebay (about $1 or even less): these work on 5V and produce about 2x3W. Paired with OK speakers, those can sound pretty loud :)
by denis_hr
Tue Dec 01, 2015 3:12 pm
Forum: Python
Topic: I2C LCD, fifo, pipe, function - threading?
Replies: 3
Views: 1116

Re: I2C LCD, fifo, pipe, function - threading?

Wow! Thanks a million! - you provided the whole ready-made solution! I'll check it out and try to understand what I can :) Hopefully, I'll be able to make the necessary changes and make it work.... From what I've seen, you have designed "names" variable as a list - and I'm always using a single stri...
by denis_hr
Mon Nov 30, 2015 7:25 pm
Forum: General discussion
Topic: Raspberry Pi Zero pricing in Europe
Replies: 22
Views: 5510

Re: Raspberry Pi Zero pricing in Europe

If you take a closer look, all of those retailers are actually selling a RasPi Zero KIT, which includes micro HDMI to HDMI adapter, and a Micro USB cable adapter (OTG). That kit has about the same price everywhere. The issue is that you can't actually buy ONLY RasPi Zero - they sell only the kits, t...
by denis_hr
Mon Nov 30, 2015 6:39 pm
Forum: Python
Topic: I2C LCD, fifo, pipe, function - threading?
Replies: 3
Views: 1116

I2C LCD, fifo, pipe, function - threading?

Not a very decriptive thread title, I'm afraid... :) Anyway, a short intro: I'm making an audio server out of Raspberry Pi, which is running RuneOS (based on Arch). The whole thing works well, but now I've decided to add a 16x2 LCD (I2C type). I've also added an IR remote (which works with lirc, but...
by denis_hr
Tue Feb 10, 2015 9:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sainsmart 16x2 I2C lcd
Replies: 27
Views: 32595

Re: Sainsmart 16x2 I2C lcd

Some of you might be interested in the code I posted to Gist/Github yesterday: https://gist.github.com/DenisFromHR/cc863375a6e19dce359d It's a Python library plus some examples of use: most importantly, it shows how to use custom characters. The library has been tested on exactly the same I2C LCD as...
by denis_hr
Mon Feb 09, 2015 5:39 pm
Forum: Media centres
Topic: Google Play Music..
Replies: 1
Views: 999

Re: Google Play Music..

So I was wondering if there is software for the Pi that would allow access to the same Google Play Music library and broadcast it over the network so my TV can access it? Chris Pi MusicBox for Google Music Play and Bubble UPnP for sending it to TV? I've successfully activated Google Music Play on P...
by denis_hr
Mon Feb 09, 2015 3:48 pm
Forum: Python
Topic: 20x4 i2c lcd lines out of order.
Replies: 23
Views: 24016

Re: 20x4 i2c lcd lines out of order.

After some serious hacking (hah! just joking, I'm out of my depth here...), I've created a new, modified library for this type of LCDs (the ones which use I2C, as described above). I've joined two previous libraries (i2c_lib.py and lcddriver.py) into a single library: RPi_I2C_driver.py I've put it o...
by denis_hr
Sun Feb 08, 2015 4:43 pm
Forum: Python
Topic: 20x4 i2c lcd lines out of order.
Replies: 23
Views: 24016

Re: 20x4 i2c lcd lines out of order.

This code works for me fine. But I like to switch off and on backlight. I tried with additional code inside lcddriver.py without success: I use this one, and it works (lifted it from somewhere else, not sure where... so, it's not my code...): # define backlight on/off (lcd.backlight(1); off= lcd.ba...
by denis_hr
Tue Dec 16, 2014 3:51 pm
Forum: Graphics, sound and multimedia
Topic: Browse and Play Music on Raspi via smartphone
Replies: 9
Views: 2436

Re: Browse and Play Music on Raspi via smartphone

There are several ready-made distros for RasPi, built for just that particular purpose (music server), offering various functions. From the top of my head: Volumio, Rune Audio, Squeezeplug, MusicBox, and, of course, any of the XBMC distros (Raspbmc, OpenElec)... All of them offer mobile phone/tablet...
by denis_hr
Sat Jul 05, 2014 2:50 pm
Forum: Media centres
Topic: SqueezePlug Version 7 available
Replies: 459
Views: 107658

Re: SqueezePlug Version 7 available

Regarding my issues with I2C LCD, I've solved it by simply soldering two short leads to the pins on the Wolfson card (SDA0 and SCL0, i.e. RasPi GPIO2 and GPIO3), and got my I2C LCD recognised, and can now work with it.... Which means that I2C devices can be "chained" off the same pins - at least in ...
by denis_hr
Wed Jul 02, 2014 8:10 pm
Forum: Media centres
Topic: SqueezePlug Version 7 available
Replies: 459
Views: 107658

Re: SqueezePlug Version 7 available

The Wolfson card doesn't pass the SPI or I2C buses out to the external connectors. You get 5V0, 3V3, GND, TXD (pin8/GPIO14) and RXD (pin10/GPIO15). You can disable the serial console and do your own thing with those two GPIO pins. I'd appreciate some more help, if possible, being a newbie with RasP...
by denis_hr
Tue Jun 24, 2014 10:10 pm
Forum: Media centres
Topic: SqueezePlug Version 7 available
Replies: 459
Views: 107658

Re: SqueezePlug Version 7 available

You can disable the serial console and do your own thing with those two GPIO pins. Thanks - that's what I thought... It could be used for I2C connection. That still leaves me with a practical problem of shutting down the whole shebang using a hardware button - which seems to be quite a can of worms...
by denis_hr
Tue Jun 24, 2014 3:34 pm
Forum: Media centres
Topic: SqueezePlug Version 7 available
Replies: 459
Views: 107658

Re: SqueezePlug Version 7 available

Hi everyone - my first post here. I have a couple of RasPis that I use for various tinkering, and one is used as an XBMC media center (watching movies). I already tried to make a hi-fi player out of RasPi, but none of the previous iterations were satisfactory - because I used USB external DACs. It a...

Go to advanced search