Post

Visualizzazione dei post da febbraio, 2022

Add more preset selections to Plug

Gone back to Ubuntu laptop and started editing the code. The original Plug software allows to call 8 presets using Keyboard shortcuts. I added 16 more presets and 16 Keyboard shortcuts. Then I though it could be better define 24 presets while using only 8 Key shortcuts.  I added 2 Key shortcuts, 'bank UP' and 'bank DOWN'.  When bank value is 1, presets Key shortcuts allow to select presets 1...8. When bank value is 2, presets Key shortcuts allow to select presets 9...16. When bank value is 3, presets Key shortcuts allow to select presets 17...24. When bank value is 3, pressing 'bank UP' will change bank value to 1. When bank value is 1, pressing 'bank DOWN'' will change bank value to 3. Now I can add instructions to select presets and change bank using some footswitches connected to Raspberry GPIO pins.  

Use wiringPi with Plug

I need to call wiringPi functions from Plug source code. So I wasted some time editing Plug's CMakefile to be able to compile Plug source together wiringPi calls. I also found a bug in the cmake version I was using. This bug didn't allow to compile multiple source files stored in different folders. I had Plug code in its folder and wiringPi files somewhere in file system. As workaround I did edit CMakefile and set version as 3.13.0.