Great idea ,great work but it looks like your workshop is as good at collecting dust as mine is . I need a broom that sweeps where and when it is needed. No need to fly. Just a little magic dust please.
Can you explain what this actually does in bit values ? Say a byte of 8 bits like 11101010 What happens to it after flipping?
I saw in your code
// Print the ID of this message. Note that the message
// is sent 'big-endian', so we have to flip it.
printf("#%05u Buttons ",flip_endian(payload.id));
and
// Change a big-endian word into a little-endian
uint16_t flip_endian(uint16_t in)
{
uint16_t low = in >> 8;
uint16_t high = in << 8;
return high | low;
}