1873 views|3 replies

2

Posts

0

Resources
The OP
 

Please ask a MicroPython question [Copy link]

 This post was last edited by jqn on 2021-10-27 16:10

How do I change the softi2c statement of micropython to i2c?
i2c = SoftI2C(scl=Pin(MPU6886_SCL), sda=Pin(MPU6886_SDA))
The uiflow I use does not have softi2c

Latest reply

In the earlier version, software I2C was defined by i2c = I2C(-1, scl=xxx, sda=xxx). In the new version, this method is cancelled and SoftI2C needs to be defined.   Details Published on 2021-10-28 08:39
 
 

64

Posts

0

Resources
2
 

This is a big problem. According to my superficial understanding, you are probably using a relatively old version of micropython firmware, and this SoftI2C is only supported by a relatively new version.

The UIFlow you mentioned refers to the WebIDE " UIFlow " developed by the M5 team , right? You can go and see if they have any new firmware for you to use.

 
 
 

2

Posts

0

Resources
3
 
storm-wind posted on 2021-10-27 17:54 This is a big problem. As far as I know, you are probably using a relatively low version of micropython firmware, and this SoftI2C is relatively new...

Yes, my uiflow is already the latest version, but it still doesn't work. I tried another method.

 
 
 

1w

Posts

25

Resources
4
 

In the earlier version, software I2C was defined by i2c = I2C(-1, scl=xxx, sda=xxx). In the new version, this method is cancelled and SoftI2C needs to be defined.

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list