I2C slave not implemented -- yet

Working libraries, libraries being ported and related hardware
Post Reply
madias
Posts: 813
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

I2C slave not implemented -- yet

Post by madias » Mon Sep 12, 2016 1:21 pm

Hello,

because from time to time new STM32duino users step into the I2c slave pit:
Answer: No, there is currently no I2C-slave possible with the current library. I've opened an issue on github (just for the record): https://github.com/rogerclarkmelbourne/ ... issues/207

A possible way to implement the slave function could be:
http://forums.leaflabs.com/forums.leafl ... ml?id=1543

Sadly I have no access to pastebin.com @ work (north korea style GIF-Monitor/internet restriction settings, thanks IT department)

In the meantime maybe we should implement a dummy onReceive() function with a #pragma warning?

User avatar
RogerClark
Posts: 7482
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: I2C slave not implemented -- yet

Post by RogerClark » Mon Sep 12, 2016 10:01 pm

Its possible the new Core developed by STM has this feature.

see

viewtopic.php?f=16&t=1398

User avatar
RogerClark
Posts: 7482
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: I2C slave not implemented -- yet

Post by RogerClark » Thu Aug 03, 2017 4:47 am

Note.

The ideas posted by @Madias refer to the bit-banged implementation of the I2C protocol.

We have now switched to hardware I2C, and at the time of writing we do not have slave support

Post Reply