Replies: 1 comment 2 replies
-
if You use I2C from machine (from machine import I2C) in esp32 the source of error is that You try use address as bytes (SPS_ADDR = b’\x69’) instead of int or hex (0x69) . |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I am trying to make the sps30 work with the esp32 but with micropython. I found a library online but it tested using raspberri pi: sps30/sps30.py at master · feyzikesim/sps30 · GitHub so I tried converting it to a usable code for esp32.
I am having problems writing on the i2c bus For example, on the original code:
The code I was able to do was:
The terminal outputs OSError: [Errno 116] ETIMEDOUT on the self.i2c.writeto(self.SPS_ADDR, write) line. I’m guessing this would happen on the read part also.
I am hoping that maybe someone here could help me? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions