User manual

AOAA Kit – Software User’s Guide
Page 38
Copyright 2012 © Embedded Artists AB
data[0] = (v >> 8);
data[1] = (v & 0xff);
sendCommand(CMD_TRIMPOT, data, 2);
}
lastTrimpotCheck = getMsTicks();
}
btn = btn_get();
btn1 = ((btn & BTN_SW2) != 0);
btn2 = ((btn & BTN_SW3) != 0);
if (lastBtn1State != btn1) {
lastBtn1State = btn1;
data[0] = btn1;
sendCommand(CMD_BTN_1, data, 1);
}