I am getting a servo pulse length via a pulsin command, then averaging its value with 150. Will this math work with a byte variable (that should pulsin at between 100-200) since when I add it to 150 it may be as high as 350 before dividing it by two, even though the math is on one line?
Code:
let b0 = b0 + 150 / 2