Maschine2501 / NR1-UI

Userinterface for Volumio (RaspberryPi) with ssd1322 and ssd1306 oled display, spectrum bargraph, progress bar, LED functions, Standby-functions, 4 Buttons and Rotary Encoder.
Other
45 stars 12 forks source link

No Spectrum Still Displays Spectrum #2

Closed GeorgeIoak closed 4 years ago

GeorgeIoak commented 4 years ago

When I initially ran the configuration script I choose No Spectrum but the display showed the spectrum on the left. When I checked /home/volumio/NR1-UI/ConfigurationFiles/LayoutSet.txt it had (I think) VU-Meter so I manually changed it to No-Spectrum and rebooted but I'm still seeing the spectrum. I ran through the configuration script again and verified that /home/volumio/NR1-UI/ConfigurationFiles/LayoutSet.txt still had No-Spectrum.

When I look in /home/volumio/NR1-UI/ConfigurationFiles/PreConfiguration.py I see:

#config for Display:
DisplayTechnology = "spi1322"
NowPlayingLayout ='Spectrum-Left'
oledrotation = 0

So I manually edited /home/volumio/NR1-UI/ConfigurationFiles/PreConfiguration.py to use No-Spectrum and that successfully removed the spectrum after restarting the service.

Maschine2501 commented 4 years ago

At the moment I have no idea, why it was not set to "NO-Spectrum" -> I'll investigate that later...

The Option to chose the adress of the PCF8574/A is a good Idea! Can you provide me the possible adresses?

GeorgeIoak commented 4 years ago

I happen to be using a NXP PCF8574A. You can see on pages 5 and 6 that depending on how the address pins are wired you can have an address from 0x20-0x27 for the PCF8574 and addresses 0x38-0x3F for the PCF8574A. The TI parts use the same addresses as well.

Maschine2501 commented 4 years ago

...changed Headline.

The "No-Spectrum" (nowPlayingLayout)- Bug shouldbe fixed. (was a missing "space" in front of the value...)

The Typo was fixed.

Regarding the adress-selection for PCFxxxx -> I'm working on that ;)

Maschine2501 commented 4 years ago

@GeorgeIoak I've made a script to configure the I2C adress. Maybe you can give it a try? Right now I'm not sure if i'll put it in the main installation...

Here is the script

sudo chmod +x pcf-i2c-adress-config.sh

bash pcf-i2c-adress-config.sh
Maschine2501 commented 4 years ago

Implemented the "script to configure the I2C adress" in main installation-script.