Dear all,
I’ve been playing with my new XBees for few days, and I’m enjoying them a lot
I’m now trying to deal with the I2C bus and with micropython.
I’m then facing some difficulties.
My configuration is the following :
-
XB3-24 - Zigbee - With firmware 100D
-
Coordinator linked to two end devices with the following :
- AP : 4
- BD : 115200
- CE : 0
- D1 : 6
- P1 : 6
- PS : 1
When I open the micropython terminal on one of my end devices, the I2C.scan method works well :
>>> from machine import I2C
>>> i2c = I2C(1)
>>> i2c.scan()
[25, 60, 119]
But when I try to exchange more in detail with one of the I2C device, it doesn’t works
>>> i2c.readfrom_mem(0x77, 0xD0, 2)
Traceback (most recent call last):
File “”, line 1, in
OSError: [Errno 7019] ENODEV
>>>
I’ve been trying to format the flash (both with XCTU and with micro python) without any kind of success.
I’m sure that I’m doing something wrong, but what ? Can someone help me ?
Thanks,
C.