CircuitPython Feather I2cslave?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
christofeugster
 
Posts: 29
Joined: Sun Jan 02, 2022 2:46 am

CircuitPython Feather I2cslave?

Post by christofeugster »

Hi guys

Im on a little bit bigger project with a friend.
He is programmer but unfamiliar with Python.
Im a newbie and learning CircuitPython and already owe a bunch of boards, Sensors... but am unfamiliar with C.
Now we want to split work and use a Arduino as Master and several CP Feathers as Slave, communicating over I2c.
but busio.i2cslave is not supported in CircPy.
Is there a properly working solution out?
Thanks a lot

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython Feather I2cslave?

Post by danhalbert »

It is called busio.I2CPeripheral in CircuitPython 7.x and will be busio.I2CTarget in 8.0.0. There was an official nomenclature change. It is not supported on all boards. See https://docs.circuitpython.org/en/lates ... atrix.html for the boards it's supported on.

User avatar
christofeugster
 
Posts: 29
Joined: Sun Jan 02, 2022 2:46 am

Re: CircuitPython Feather I2cslave?

Post by christofeugster »

danhalbert wrote: Tue Nov 29, 2022 8:46 am It is called busio.I2CPeripheral in CircuitPython 7.x and will be busio.I2CTarget in 8.0.0. There was an official nomenclature change. It is not supported on all boards. See https://docs.circuitpython.org/en/lates ... atrix.html for the boards it's supported on.
Strange, because i also tried peripheral but it was no recognized object.
I will try again.
I asume that busio library is all i need
to actually run it? Or do i have to load something else?

Thanks for your help.
Chris

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: CircuitPython Feather I2cslave?

Post by danhalbert »

Which board are you trying it on? It is not on all boards.

User avatar
freddyboomboom
 
Posts: 267
Joined: Wed Feb 16, 2022 7:55 pm

Re: CircuitPython Feather I2cslave?

Post by freddyboomboom »

From Dan's earlier link, if you filter on 'i2ctarget' you will see the boards that support 'i2ctarget'.

https://docs.circuitpython.org/en/lates ... =i2ctarget

If your boards do not support i2ctarget, then you'll have to find different boards that do (187 out of 353).

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”