Re: [3.1]How serial send 0xa5a5 so correctly received & tested in 4byte structure?
- Posted by DerekParnell (admin) Apr 08, 2014
- 2084 views
DanM_anew said...
... the structure suggested for the Arduino program said,
"uint32_t syncPattern; / /4 bytes with a fixed value, e.g. 0xa5a5, marks the beginning of a header",
Ok, so we still have two options, depending on if its a big-endian or little-endian CPU.
The two equivalent byte streams in Euphoria would be ...
constant sync_BE = {#00, #00, #A5, #A5} constant sync_LE = {#A5, #A5, #00, #00} -- Typically Intel machines.

