How to convert 8 checkbox objects (i.e. binary 0 or 1 field) into a binary number in the panel, e.g. 11111111 i.e. 255 in hex FF and send it to arduino?
When I create an equation in time, it doesn't count correctly for me:
va0.val = c0.val * 1 + c1.val * 2 + c2.val * 4 + c3.val * 8 + c4.val * 16 + c5.val * 32 + c6.val * 64 + c7.val * 128 // (where c0.val is either 0 or 1)
n0.val = va0.val
When I create an equation in time, it doesn't count correctly for me:
va0.val = c0.val * 1 + c1.val * 2 + c2.val * 4 + c3.val * 8 + c4.val * 16 + c5.val * 32 + c6.val * 64 + c7.val * 128 // (where c0.val is either 0 or 1)
n0.val = va0.val