07-08-2023, 04:30 PM
(07-08-2023, 04:11 PM)rajivkumar1984 Wrote:(07-08-2023, 02:57 PM)fdealexa Wrote: Hi,
the best way is to use one of the following modes: 4, 19, 60 or 62 to have full screen in width and parzially in height with the WIDE meters;
or one of these modes to have partially in width and in height, with the LARGE meters.
To enable the mode you have to add in the /boot/config.txt (sudo nano /boot/config.txt) the following rows:
Code:hdmi_group=1
hdmi_mode=19
Please put 4 or 19 or 60 or 62 in the row "hdmi_mode="
Of course you have to modify the peppymeter config.txt (nano /home/pi/PeppyMeter/config.txt) for the resolutions:
Code:screen.width = 1280
screen.height = 720
and
Code:meter.size = wide
or
Code:meter.size = large
Later you can fix the meter of your choice, changing
with the meter name (for example)Code:meter = random
Code:meter = emerald
or
etc.Code:meter = blue-2
please let me know if it is not clear.
Best regards,
Francesco
Sure Francesco, does this looks right ---
[cm4]
otg_mode=1
[pi4]
hdmi_force_hotplug:0=1
hdmi_force_hotplug:1=1
[all]
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=1
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=on
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
hdmi_enable_4kp60=1
hdmi_group=1
hdmi_mode=19
Hey Francesco, after trying the steps yopu suggested I am facing the below error ----
pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/home/pi/PeppyMeter/peppymeter.py", line 274, in <module>
pm.init_display()
File "/home/pi/PeppyMeter/peppymeter.py", line 149, in init_display
pygame.display.init()
pygame.error: Unable to open mouse