180 lines
4.1 KiB
Plaintext
180 lines
4.1 KiB
Plaintext
# Display hardware configuration.
|
|
display {
|
|
# Target frame rate, actual frame rate depends on hardware options.
|
|
fps = 25
|
|
|
|
# Main display is where all the magic happens.
|
|
main {
|
|
# Type of display
|
|
type = "ssd1322"
|
|
size = "256x64"
|
|
|
|
# Mode (spi or i2c)
|
|
mode = "spi"
|
|
|
|
# SPI settings
|
|
port = "spi0.0"
|
|
reset = "GPIO25"
|
|
dc = "GPIO24"
|
|
bl = "GPIO23"
|
|
|
|
# I2C settings
|
|
#addr = "3c"
|
|
#bus = "" # default bus
|
|
}
|
|
|
|
## If you don't have one big 256x64 display, you can glue two 128x64 displays
|
|
## together logically (much cheaper):
|
|
#left {
|
|
# type = "ssd1306"
|
|
# addr = "3c"
|
|
# size = "128x64"
|
|
#}
|
|
#right {
|
|
# type = "ssd1306"
|
|
# addr = "3d"
|
|
# size = "128x64"
|
|
#}
|
|
|
|
# If you have a separate (color) display for displaying album art. If not, the
|
|
# main display will use a 64x64 area for showing album art.
|
|
#meta {
|
|
# type = "st7789"
|
|
# size = "240x240"
|
|
# port = "" # SPI0.0
|
|
# reset = "GPIO23" # reset pin
|
|
# dc = "GPIO24" # data control pin
|
|
# bl = "GPIO27" # backlight pin
|
|
#}
|
|
}
|
|
|
|
# Screen configuration.
|
|
screen {
|
|
# Default "now playing" screen
|
|
playing {
|
|
# Spectrum analyzer
|
|
spectrum {
|
|
# Min and max frequency
|
|
min = 100
|
|
max = 15000
|
|
|
|
# Peak hold (-1 to disable).
|
|
hold = 20
|
|
|
|
# DSP window function (blackman, hamming, hann or none).
|
|
window = "blackman"
|
|
|
|
# Display waterfall instead of bars.
|
|
waterfall = false
|
|
}
|
|
|
|
# Format display (format, duration & progress) line.
|
|
format {
|
|
# Font file.
|
|
font = "Hack-Regular.ttf"
|
|
}
|
|
|
|
# Track display (artist & title) line.
|
|
track {
|
|
# Text color.
|
|
color = "white"
|
|
|
|
# Font file.
|
|
font = "./SourceSansPro-ExtraLight.ttf"
|
|
|
|
# Font size.
|
|
#font_size = 32
|
|
|
|
# Font DPI.
|
|
#dpi = 96
|
|
|
|
# Font hinting (none, vertical or full).
|
|
hinting = "full"
|
|
}
|
|
}
|
|
|
|
# Full screen stereo spectrum analyzer
|
|
spectrum {
|
|
# Min and max frequency
|
|
min = 100
|
|
max = 15000
|
|
|
|
# Peak hold.
|
|
hold = 20
|
|
|
|
# DSP window function.
|
|
window = "blackman"
|
|
}
|
|
|
|
# Full screen VU meters
|
|
vumeter {
|
|
|
|
}
|
|
}
|
|
|
|
# Input for controlling the display.
|
|
input {
|
|
# Rotary encoder.
|
|
encoder {
|
|
# The rotary is configured as input device.
|
|
#
|
|
# On Raspberry Pi, this can be done by adding the following line
|
|
# to /boot/config.txt:
|
|
#
|
|
# # Rotary encoder on GPIO6 & GPIO13
|
|
# dtoverlay=rotary-encoder,pin_a=6,pin_b=13,relative_axis=1,steps-per-period=2
|
|
#
|
|
# # Rotary push button, KEY_MUTE on GPIO15
|
|
# dtoverlay=gpio-key,gpio=5,label="rotary-switch",keycode=113
|
|
type = "input"
|
|
#type = "gpio"
|
|
#cw = "GPIOx" # clock wise pulse pin
|
|
#ccw = "GPIOx" # counter clock wise pulse pin
|
|
#sw = "GPIO5" # switch pin
|
|
}
|
|
}
|
|
|
|
# Player controls the music.
|
|
player {
|
|
# Auto detect the player.
|
|
type = "auto"
|
|
|
|
## Music Player Daemon
|
|
# type = "mpd"
|
|
# host = "localhost:6600"
|
|
# password = ""
|
|
}
|
|
|
|
# Audio is the source of audio samples.
|
|
audio {
|
|
# Type of audio stream. Currently supported are file or fifo.
|
|
type = "fifo"
|
|
|
|
# Path to the audio stream.
|
|
path = "/tmp/beatglow.fifo"
|
|
|
|
# Rate is the sampling rate.
|
|
rate = 44100
|
|
|
|
# Channels are the number of audio channels.
|
|
channels = 2
|
|
|
|
# Bits per sample.
|
|
bits = 16
|
|
|
|
# Big Endian decoding (default: use Little Endian).
|
|
#be = true
|
|
|
|
# Delay can compensate for timing differences between your DAC and reading samples
|
|
# from the audio source; use this if the visualisations are ahead of the audio.
|
|
delay = "25ms"
|
|
}
|
|
|
|
# Mixer for controlling the volume.
|
|
mixer {
|
|
# Type of mixer (alsa).
|
|
type = "alsa"
|
|
|
|
# Put your card here, you can list them by using: aplay -l
|
|
card = 5
|
|
} |