really enjoying this code
EVENT_BUTTON id=1 type=NoteOn key=36 lcd_pos=1:1:1 label=“Button #%3i: %3d” the simplicity of defining a buttons name and the value etc. push the button and “Button” is displayed on the lcd along with its value of 36.
im now looking at the addition of a sysex command mapped to the button.
Also with regards to the small SSD1306 displays, the software i use uses sysex to talk to them,
here is the sysex from the midi implementation section of the manual
Value Bar Received:
B0, 3i, vv i Value bar number (0 thru 7) vv value (0 to 7F)
B0, 3i, mm i Value bar number offset by 8 (8 thru 15) mm Value bar mode (0: normal, 1: bipolar, 2: fill, 3: spread, 4: off)
B0, 4i, vv i Value bar number (0 thru 7) for strip 9-16 vv value (0 to 7F)
B0, 4i, mm i Value bar number (8 thru 15) for strip 9-16 mm Value bare mode (0: normal, 1: bipolar, 2: fill, 3: spread, 4: off)
Scribble Strips
Addressing: Scribble Strip ID and Scribble Strip Line via SysEx:
Received:
Set Mode:
<SysExHdr> 13, xx, mn F7
xx = scribble strip id 0-7
m = bits 6 to 4
• bit 4 = 0 - do not clear the strings/ redraw old strings in new mode
[<SysExHdr> 0x13, 0x01, 0x05 F7] - Changes display mode to Mode 5 and redraw old strings in new mode
• bit 4 = 1 - clear strings / new strings will be send and drawn in new mode [<SysExHdr> 0x13, 0x01,0x12 F7] - Changes display mode to Mode 2 and clears the old strings for Scribble Strip #1)
• bit 5 = unused • bit 6 = unused n = mode number (bits 3 to 0)
Send String:
Send the text messages to the scribble strips. Received: <SysExHdr> 12, xx, yy, zz, tx,tx,tx,… F7
xx = scribble strip id 0-7
yy = line number 0-3
zz = alignment flag and normal/inverted
• flag bits xxxxiaa ( 0000000 = centered normal)
• aa = alignment (center: 0, left: 1, right: 2)
• i = inverted
• x = not used
tx = text in ASCII format
Metering
Channel Pressure message (After Touch) for the peak and reduction meters.
Received:
Dn, vv
n meter address
• 0-7 peak meters 1-8
• 9-15 reduction meters 1-8
vv meter value (0…7F)
Peak meters decay automatically.
Reduction meters are set by the host only (no automatic decay).
Program Change message for the peak and reduction meters 9-16.
Cn, vv
n meter address
• 0-7 peak meters strip 9-16
• 9-15 reduction meters strip 9-16 vv meter value (0…7F)
Peak meters decay automatically. 100% decay in 1.8 seconds.
Reduction meters are set by the host only (no automatic decay).
Running Status The following message is should be sent every second: A0,00,0