Author Topic: Problem configuring footswitches  (Read 802 times)

jkrafft

  • Newbie
  • *
  • Posts: 32
    • View Profile
Problem configuring footswitches
« on: August 04, 2021, 04:22:11 AM »
Hello
I'd like to use 5 footswitches (I'm actually using 5 regular buttons for now until I can find nice buttons with leds) however I've been unable to work out the configuration file /home/patch/pi-stomp/pistomp/default_config.yml
The default configured buttons are working correctly as specified in the file with:
footswitches:
Code: [Select]
  - id: 2
    debounce_input: 2
    midi_CC: 60
    bypass: LEFT
    preset: UP
  - id: 3
    debounce_input: 3
    midi_CC: 62
  - id: 4
    debounce_input: 4
    midi_CC: 63

Mapping my five buttons with:
Code: [Select]
footswitches:
  - id: 0
    debounce_input: 0
    midi_CC: 60
    bypass: LEFT
    preset: DOWN
  - id: 1
    debounce_input: 1
    midi_CC: 61
    bypass: RIGHT
    preset: UP
  - id: 2
    debounce_input: 2
    midi_CC: 62
  - id: 3
    debounce_input: 3
    midi_CC: 63
  - id: 4
    debounce_input: 4
    midi_CC: 64
resulted in a lcd screen being incomplete on the lower third, refreshing display all the time and hoogin most of the CPU.
I've made several attempts adding just one button to the default file with similar result.

I'm obviously missing something or don't get how it's suppose to work, any clues ?

On a side note, it might be useful to have a place where users could share there configurations of hardware peripherals maybe ?

thx


Randall (Admin)

  • Administrator
  • Full Member
  • *****
  • Posts: 221
    • View Profile
Re: Problem configuring footswitches
« Reply #1 on: August 04, 2021, 12:52:21 PM »
More than 3 footswitches is a known problem at the top of my list to resolve.  I'll get the software fixed by early next week.

Until then, try just defining 3 switches.  Pi-Stomp Core has just a single bypass relay for the LEFT (in1/out1) channel.  in2/out2 is always engaged.

jkrafft

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Problem configuring footswitches
« Reply #2 on: August 06, 2021, 02:23:47 AM »
OK, great !
Any recommendations on pots to connect to the Hanalog header ?

Thx

Randall (Admin)

  • Administrator
  • Full Member
  • *****
  • Posts: 221
    • View Profile

Randall (Admin)

  • Administrator
  • Full Member
  • *****
  • Posts: 221
    • View Profile
Re: Problem configuring footswitches
« Reply #4 on: August 09, 2021, 01:28:24 PM »
Just made a software update for color LCD support for up to 5 footswitches.  Made the icons look a little more like footswitches too.  You can specify a halo "color" in the default_config.yml file.

  footswitches:
  - id: 0
    debounce_input: 2
    midi_CC: 60
    bypass: LEFT
    preset: UP
  - id: 1
    debounce_input: 3
    #gpio_output: 13
    midi_CC: 62
    color: lime
  - id: 2
    debounce_input: 4
    #gpio_output: 26
    midi_CC: 63
    color: blue

jkrafft

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Problem configuring footswitches
« Reply #5 on: August 12, 2021, 05:01:36 PM »
Yep, works great !
Looks good.

If I'm being picky, I'd say it's a bummer that preset up/down switch would always stay dark, might just as well replace the icons with up/down arrows (and still still choose the color then)

PS: Don't worry, there's going to be a pause in my daily postings as I'm going on vacation with my family, that'll give you some room to breath. But beware, when I'm back, I still have plenty of ideas  ;)