Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4157

Python • Re: 10 bit value storage

$
0
0
So you want to remove the start bit and the stop bit because you aren't using the build-in uart.


in C or python

value8bits = (value10bits >>1) & 0xff

In reality he start bit is always 0 so just shift right is ok.

Statistics: Posted by danjperron — Tue Feb 20, 2024 2:21 pm



Viewing all articles
Browse latest Browse all 4157

Trending Articles