Skip to content

Optimize memory with SysEx Arrays #236

Answered by franky47
RiNoize asked this question in Q&A
Discussion options

You must be logged in to vote

If there's a clear pattern in your SysEx messages, could you try reconstructing them programmatically from a template that contains the common bytes and placeholder empty bytes where things change ?

Example:

const byte arp0000[18] PROGMEM = {
  // Constant header
  0xf0, 0x42, 0x30, 0x00, 0x01, 0x49, 0x41, 0x02, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

  0x00, // Placeholder byte here

  // Constant footer
  0xf7
};

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@RiNoize
Comment options

@franky47
Comment options

@RiNoize
Comment options

@franky47
Comment options

@RiNoize
Comment options

Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants