Bytes masking in Micropython #10300
Answered
by
robert-hh
labodezao
asked this question in
Using MicroPython
-
Hi, That I could not solve because in mycropython documentation, readfrom_mem() is supposed to return a Bytes type... Thanks by advance |
Beta Was this translation helpful? Give feedback.
Answered by
robert-hh
Dec 22, 2022
Replies: 1 comment 1 reply
-
try; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
peterhinch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try;
while (( self.bus.readfrom_mem(0x6d, 0x06, 1)[0] & 0x08)> 0) :