No the bytes might be an array of up to 8 or more 8bit bytes.Is what you require only ever going to be from a 4 byte value?
Your second code block look like it might work, I'll play around with it to see if I can get it to work.
No the bytes might be an array of up to 8 or more 8bit bytes.Is what you require only ever going to be from a 4 byte value?
You can improve the receive functionality by using an external interrupt to synchronise the read function with the incoming start bit.
My 0 ADC = -25kgIf you state 0 ADC = -xx.xxKg
and 1023 = xx.xxKg then I could create a new formula for you to do a direct conversion