07-08-2023, 12:56 PM
(07-08-2023, 12:10 PM)fdealexa Wrote: Hello Raji,
the problem is the display resolution. The PeppyMeter has a limited number of formats. from the peppymeter documentation:
UI is available in four resolutions 320x240, 480x320, 800x480 and 1280x400 pixels.
Note that the the procedure (GITHUB) is based on the native display (touchscreen 7" connected to the DSI port).
So to partially resolve the problem you can
-use the following command:
tvservice -s -v 2
-take the resolution and copy the values in the config.txt
nano /home/pi/PeppyMeter/config.txt
meter.size = wide
in the screen.width =XXXX and
in the screen.height =XXXX
This is to test if everythings, in the configuration, has been correct.
Next step is to configure the display from the Raspberry: I am trying to do that and hope to solve it.
Please try and let us know.
Regards,
Francesco
Sure Francesco, here are the changes made ======
pi@moode:~/PeppyMeter $ tvservice -s -v 2
state 0xa [HDMI CEA (95) RGB lim 16:9], 3840x2160 @ 30.00Hz, progressive
pi@moode:~/PeppyMeter $ nano /home/pi/PeppyMeter/config.txt
pi@moode:~/PeppyMeter $
de:~/PeppyMeter $
[current]
meter = random
random.meter.interval = 20
meter.size = wide
screen.width = XXXX
screen.height = XXXX
exit.on.touch = False
stop.display.on.touch = False
output.display = True
output.serial = False
output.i2c = False
output.pwm = False
output.http = False
use.logging = False
use.cache = True
frame.rate = 30
[sdl.env]
framebuffer.device = /dev/fb0
mouse.device = /dev/input/event0
mouse.driver = TSLIB
mouse.enabled = True
video.driver = dummy
video.display = :0
double.buffer = False
no.frame = False
[serial.interface]
device.name = /dev/serial0
baud.rate = 9600
include.time = False
update.period = 0.1
[i2c.interface]
port = 1
left.channel.address = 0x21
right.channel.address = 0x20
output.size = 10
update.period = 0.1
[pwm.interface]
frequency = 500
gpio.pin.left = 24
gpio.pin.right = 25
update.period = 0.1
[http.interface]
target.url = http://localhost:8000/vumeter
update.period = 0.033
[web.server]
http.port = 8001
[data.source]
type = pipe
polling.interval = 0.033
pipe.name = /var/tmp/peppyfifo
volume.constant = 80.0
volume.min = 0.0
volume.max = 100.0
volume.max.in.pipe = 100.0
step = 6
mono.algorithm = average
stereo.algorithm = new
smooth.buffer.size = 4