Hello,
Just started with Midibox. First, I want to build a controller for controlling various CC parameters in my VST's. Got the first kits from Smashtv an soldered everything together.
Burned the bootloader to the CORE_STM32F4 Module and loaded the Midibox NG app.
Connected a DIN and a small LED display to the CORE_STM32F4 Module.
First test: print "Hello World" to LCD ...works...
Second test: Connect a button ...works...
Now it is time to connect a Rotary encoder...
All seems to work.
With the following small program:
RESET_HW
LCD "%CEncoder Values"
# Hardware configuration
ENC n=1 sr= 1 pins=0:1 type=detented1
# Events
EVENT_ENC id=1 fwd_to_lcd=1 type=CC chn= 1 cc= 16 range=0:127 lcd_pos=1:1:1 label="^std_enc"
I get the folowing output in the debug-screen:
[1934162.881] MBNG_ENC_NotifyChange(1, 1)
[1934162.882] [EVENT] id=ENC:1 hw_id=ENC:1 bank=0 fwd_id=DISABLED:0 type=CC value=1 label=^std_enc
[1934163.305] MBNG_ENC_NotifyChange(1, -1)
[1934163.305] [EVENT] id=ENC:1 hw_id=ENC:1 bank=0 fwd_id=DISABLED:0 type=CC value=1 label=^std_enc
[1934163.466] MBNG_ENC_NotifyChange(1, -1)
[1934163.466] [EVENT] id=ENC:1 hw_id=ENC:1 bank=0 fwd_id=DISABLED:0 type=CC value=0 label=^std_enc
[1934163.650] MBNG_ENC_NotifyChange(1, -1)
[1934163.651] [EVENT] id=ENC:1 hw_id=ENC:1 bank=0 fwd_id=DISABLED:0 type=CC value=0 label=^std_enc
The LCD outputs only a 0 or a 1. What am I doing wrong that the value does not increment or decrement? When I slide the CC16 slider in the virtual keyboard, the LCD takes over the correct value. And as soon as i touch the encoder the values flip back to 1 or 0.
When I set the range to a map the values on the LCD show the values from the map correct and increment en decrement correctly.
I hope that someone can shed some light on this subject... ;)
Cheers,
Kees