bk1285 / rpi_wordclock

Software to create a Raspberry Pi based wordclock
GNU General Public License v3.0
214 stars 107 forks source link

how to disable minute LEDs #130

Closed andredatele closed 5 years ago

andredatele commented 5 years ago

Hi all,

I'm currently gathering all the parts in order to assemble a wordclock, but I've already started working on the software. I am using a smaller face/enclosure, so I want to skip the minute LEDs, and keep only the LED strips. Is there a simple way of doing it? I looked up the config file but I didn't find it. Creating the custom layout is easy, it is just a matter of defining the diameter to 0mm. However, how do I disable these LEDs in software, so that they don't light up? Looking at all the available wiring layouts, all of them include the minuteLEDs.

So far it seems as though I need to create a new wiring class, and then comment out the setMinutes definition in wordclock_display.py (or return 0 for all four minutes), as well as setting includeMinutes to False.

Is there an easier way out that I'm missing though?

Thanks in advance!