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
CircuitPython Feather I2cslave?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- danhalbert
- Posts: 4613
- Joined: Tue Aug 08, 2017 12:37 pm
Re: CircuitPython Feather I2cslave?
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.
- christofeugster
- Posts: 29
- Joined: Sun Jan 02, 2022 2:46 am
Re: CircuitPython Feather I2cslave?
Strange, because i also tried peripheral but it was no recognized object.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.
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
- danhalbert
- Posts: 4613
- Joined: Tue Aug 08, 2017 12:37 pm
Re: CircuitPython Feather I2cslave?
Which board are you trying it on? It is not on all boards.
- freddyboomboom
- Posts: 267
- Joined: Wed Feb 16, 2022 7:55 pm
Re: CircuitPython Feather I2cslave?
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).
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).
Please be positive and constructive with your questions and comments.