mirror of
https://github.com/stasenso/rp_pico_display_engine.git
synced 2026-06-27 05:42:41 +03:00
5 lines
104 B
C
5 lines
104 B
C
unsigned short reverse(unsigned short x)
|
|
{
|
|
x = (x & 0xFF) << 8 | (x & 0xFF00) >> 8;
|
|
return x;
|
|
} |