Skip to main content
3 of 3
formatted code for readability
sempaiscuba
  • 1k
  • 9
  • 22
  • 33

the answer to my question of how to write

servo1  = fdserial_rxChar(receive) << 7;    // get Higher 7 bits
servo1 += fdserial_rxChar(receive) & 0x7F;  // get and add Lower 7 bits

so Arduino would compile it is....

combined = (val1 << 7) | (val2);