1
Hacking pi-Stomp / Re: RGB stomp switch led
« on: September 05, 2023, 09:05:13 AM »
Thx, that did the trick

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Sep 04 15:18:05 pistomp systemd[1]: Started MOD-ALA-PI-STOMP.
Sep 04 15:18:06 pistomp python3[2616]: /usr/sbin/alsactl: set_control:1461: Cannot write control '2:0:0:Max Overclock PLL:0' : Device or resource busy
Sep 04 15:18:06 pistomp python3[2616]: /usr/sbin/alsactl: set_control:1461: Cannot write control '2:0:0:Max Overclock DSP:0' : Device or resource busy
Sep 04 15:18:06 pistomp python3[2616]: /usr/sbin/alsactl: set_control:1461: Cannot write control '2:0:0:Max Overclock DAC:0' : Device or resource busy
Sep 04 15:18:07 pistomp python3[2598]: DMA Error: 00000000
Sep 04 15:18:07 pistomp python3[2598]: None False
Sep 04 15:18:07 pistomp python3[2598]: Traceback (most recent call last):
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/modalapistomp.py", line 150, in <module>
Sep 04 15:18:07 pistomp python3[2598]: main()
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/modalapistomp.py", line 87, in main
Sep 04 15:18:07 pistomp python3[2598]: hw = factory.create(handler, midiout)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/hardwarefactory.py", line 37, in create
Sep 04 15:18:07 pistomp python3[2598]: return Pistompcore.Pistompcore(self.cfg, handler, midiout, refresh_callback=handler.update_lcd_fs)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/pistompcore.py", line 81, in __init__
Sep 04 15:18:07 pistomp python3[2598]: self.reinit(None)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/hardware.py", line 84, in reinit
Sep 04 15:18:07 pistomp python3[2598]: self.__init_footswitches(self.cfg)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/hardware.py", line 246, in __init_footswitches
Sep 04 15:18:07 pistomp python3[2598]: fs.clear_pedalboard_info()
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/footswitch.py", line 136, in clear_pedalboard_info
Sep 04 15:18:07 pistomp python3[2598]: self.set_category(None)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/footswitch.py", line 65, in set_category
Sep 04 15:18:07 pistomp python3[2598]: self.pixel.set_color_by_category(category, self.enabled)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/ledstrip.py", line 63, in set_color_by_category
Sep 04 15:18:07 pistomp python3[2598]: self.set_enable(enabled)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/ledstrip.py", line 70, in set_enable
Sep 04 15:18:07 pistomp python3[2598]: self._render_color_rgb(0, 0, 0)
Sep 04 15:18:07 pistomp python3[2598]: File "/home/pistomp/pi-stomp/pistomp/ledstrip.py", line 86, in _render_color_rgb
Sep 04 15:18:07 pistomp python3[2598]: self.strip.show()
Sep 04 15:18:07 pistomp python3[2598]: File "/usr/local/lib/python3.9/dist-packages/rpi_ws281x/rpi_ws281x.py", line 150, in show
Sep 04 15:18:07 pistomp python3[2598]: raise RuntimeError('ws2811_render failed with code {0} ({1})'.format(resp, str_resp))
Sep 04 15:18:07 pistomp python3[2598]: RuntimeError: ws2811_render failed with code -10 (DMA error)
Sep 04 15:18:07 pistomp python3[2598]: DMA Error: 00000000
hardware:
# Hardware version (1.0 for original pi-Stomp, 2.0 for pi-Stomp Core)
version: 2.0
# midi definition
# channel: midi channel used for midi messages
midi:
channel: 14
# footswitches definition
# bypass: relay(s) to toggle (LEFT, RIGHT or LEFT_RIGHT)
# color: color to use for enable status halo on LCD
# debounce_input: debounce chip pin to which switch is connected
# disable: disable the switch
# gpio_input: gpio pin if not using debounce
# gpio_output: gpio pin used to drive indicator (LED, etc.)
# id: integer identifier
# midi_CC: msg to send (0 - 127 or None)
#
footswitches:
- id: 0
debounce_input: 0
ledstrip_position: 0
bypass: LEFT
preset: UP
- id: 1
debounce_input: 1
ledstrip_position: 1
midi_CC: 62
color: lime
- id: 2
debounce_input: 2
ledstrip_position: 2
midi_CC: 63
color: blue
# analog control definition
# adc_input: adc chip pin to which control is connected
# disable: disable the control
# midi_CC: msg to send (0 - 127 or None)
# threshold: minimum value change to trigger a midi msg (16 default, 1024 full scale)
# type: control type (KNOB, EXPRESSION)
#
#analog_controllers:
#- adc_input: 0
# midi_CC: 70
# type: KNOB
#- adc_input: 1
# midi_CC: 71
# type: KNOB
#- adc_input: 7
# midi_CC: 77
# type: EXPRESSION