How to use uctypes? #15873
Unanswered
sk8board
asked this question in
Using MicroPython
How to use uctypes?
#15873
Replies: 1 comment
-
I'm not too sure about your particular use case, but in general with uctypes I find the test cases for it helpful examples, look for everthing starting with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an example or explanation of how to use
uctypes
with a constant flow of changing bits?Example:
every 100 microseconds, bit 31 is deleted then bit 0 is appended to a 32-bit array. Then key bits are parsed from the 32-bit array.
Problem:
I am trying to use MicroPython to monitor a bitstream of incoming data to parse key bits as inputs for functions. The bitstream runs at 5000 bit/sec.
I know this would be easier to perform with c, but I want to learn how to do this with MicroPython.
Is there an example or explanation of how to use uctypes with a constant flow of changing bits?
uctypes
looks to be a perfect tool for monitoring a bitstream of data. The problem is there is very little information on how to implementuctypes
.I have reviewed the three examples in the MicroPython documentation, but these examples were not helpful.
Beta Was this translation helpful? Give feedback.
All reactions