Checkpoint
This commit is contained in:
138 files changed
+1898
-57607
No files matched your search
+55
-150
@@ -1,156 +1,61 @@
|
||||
audio {
|
||||
type = "tcp"
|
||||
host = "volumio.local:6601"
|
||||
display {
|
||||
fps = 15
|
||||
|
||||
left {
|
||||
type = "ssd1306"
|
||||
addr = "0x3d"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
right {
|
||||
type = "ssd1306"
|
||||
addr = "0x3c"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
color {
|
||||
type = "st7789"
|
||||
size = "240x240"
|
||||
reset = "GPIOx" # reset pin
|
||||
dc = "GPIOx" # data control pin
|
||||
bl = "GPIOx" # backlight pin
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
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 GPIO20 & GPIO21
|
||||
# dtoverlay=rotary-encoder,pin_a=20,pin_b=21,relative_axis=1,steps-per-period=2
|
||||
#
|
||||
# # Rotary push button, KEY_MUTE on GPIO16
|
||||
# dtoverlay=gpio-key,gpio=16,label="rotary-switch",keycode=113
|
||||
type = "input"
|
||||
#type = "gpio"
|
||||
#cw = "GPIOx" # clock wise pulse pin
|
||||
#ccw = "GPIOx" # counter clock wise pulse pin
|
||||
#sw = "GPIOx" # switch pin
|
||||
}
|
||||
}
|
||||
|
||||
player {
|
||||
type = "mpd"
|
||||
# Auto detect the player.
|
||||
type = "auto"
|
||||
|
||||
## Music Player Daemon
|
||||
# type = "mpd"
|
||||
# host = "localhost:6600"
|
||||
# password = ""
|
||||
}
|
||||
|
||||
page "main" {
|
||||
visual = [
|
||||
"vumeter-left@left",
|
||||
//"vumeter-right@right",
|
||||
]
|
||||
|
||||
action {
|
||||
rotary_cw = "volume:+1"
|
||||
rotary_ccw = "volume:-1"
|
||||
rotary_click = "page:peak"
|
||||
rotary_hold = "mute"
|
||||
}
|
||||
|
||||
/*
|
||||
action {
|
||||
rotary_cw = volume(1)
|
||||
rotary_ccw = volume(-1)
|
||||
rotary_click = goto("peak")
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
page "peak" {
|
||||
visual = [
|
||||
"peak@left",
|
||||
]
|
||||
|
||||
/*
|
||||
action = {
|
||||
rotary_cw = volume(1)
|
||||
rotary_ccw = volume(-1)
|
||||
rotary_click = goto("peak")
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
display "color" {
|
||||
type = "st7789"
|
||||
reset = "GPIO23"
|
||||
dc = "GPIO25"
|
||||
bl = "GPIO24"
|
||||
size = "240x240"
|
||||
}
|
||||
*/
|
||||
|
||||
display "left" {
|
||||
type = "ssd1306"
|
||||
addr = "0x3d"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
display "right" {
|
||||
type = "ssd1306"
|
||||
addr = "0x3c"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
/*
|
||||
// Waveshare 240x320 ST7789V2
|
||||
display "left" {
|
||||
type = "st7789"
|
||||
bl = "GPIO18"
|
||||
reset = "GPIO27"
|
||||
dc = "GPIO25"
|
||||
cs = "GPIO8"
|
||||
size = "240x320"
|
||||
//rotate = "90"
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
display "main" {
|
||||
type = "ssd1326"
|
||||
addr = "0x3c"
|
||||
size = "256x64"
|
||||
}
|
||||
|
||||
display "left" {
|
||||
type = "split"
|
||||
addr = "main"
|
||||
size = "128x64"
|
||||
port = "0,0,128,64"
|
||||
}
|
||||
|
||||
display "right" {
|
||||
type = "split"
|
||||
addr = "main"
|
||||
size = "128x64"
|
||||
port = "128,0,256,64"
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
display "left" {
|
||||
type = "ssd1306"
|
||||
addr = "0x3C"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
display "right" {
|
||||
type = "ssd1306"
|
||||
addr = "0x7a"
|
||||
size = "128x64"
|
||||
}
|
||||
|
||||
display "main" {
|
||||
type = "row"
|
||||
addr = "left,right"
|
||||
}
|
||||
|
||||
display "main_stack" {
|
||||
type = "column"
|
||||
addr = "left,right"
|
||||
}
|
||||
*/
|
||||
|
||||
input "knob" {
|
||||
type = "rotary"
|
||||
}
|
||||
|
||||
visual "vumeter-left" {
|
||||
type = "vumeter"
|
||||
|
||||
config = {
|
||||
channel = 1
|
||||
channels = 2
|
||||
}
|
||||
}
|
||||
|
||||
visual "vumeter-right" {
|
||||
type = "vumeter"
|
||||
|
||||
config = {
|
||||
channel = 1
|
||||
channels = 2
|
||||
mirror = true
|
||||
}
|
||||
}
|
||||
|
||||
visual "peak" {
|
||||
type = "peak"
|
||||
}
|
||||
|
||||
visual "volume" {
|
||||
type = "volume"
|
||||
audio {
|
||||
type = "fifo"
|
||||
path = "/tmp/mpd.fifo"
|
||||
rate = 44100
|
||||
channels = 2
|
||||
bits = 16
|
||||
}
|
||||
Reference in new issue
Block a user