Skip to content

i2c-slave support #3237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

i2c-slave support #3237

wants to merge 6 commits into from

Conversation

bjoham
Copy link

@bjoham bjoham commented May 13, 2017

Got a request to "push" this into the master branch. Perhaps I am doing that now...

The slave support has been working for over three months for my setup with an ESP8266 HUZZAH module connected through an NPN-transistor level shifter to my heat pump. Others have not been that lucky, it seems...

  • The implementation is based on interrupts
  • Because of interrupt latencies, the maximum clock speed (so far) is around 15 kHz
    • Setting a low clock is not supported through the Arduino API
  • The implementation is a direct "port" of the HW description of the Atmega 328 MCU
    • No code optimizations are done
  • It supports clock stretching
    • Some/Most Arduino implementations reset the HW which in effect ignores this feature
    • I have published a fix to the Arduino boards GIT and tested it on my HW initially, but has later improved the callbacks so it has no effect in my current setup

Moved #defines and declarations to top of file
Renaming, adding static keyword
Renaming, adding static keyword
@jofleck
Copy link

jofleck commented Sep 26, 2017

Any news here?

@haarislabs
Copy link

haarislabs commented Mar 16, 2018

Hey bjoham ,

I have downloaded your esp8266_Arduino repository for slave support but when I compile it the Arduino IDE shows me this error

C:\Users\HAARIS~1\AppData\Local\Temp\arduino_build_675126/slave_sender.ino.elf section `.text' will not fit in region `iram1_0_seg'

collect2.exe: error: ld returned 1 exit status

Error compiling for board Generic ESP8266 Module.

I'm using an esp8266 board and my Arduino ide is 1.8.5
Thanks

@bjoham
Copy link
Author

bjoham commented Mar 16, 2018 via email

@haarislabs
Copy link

haarislabs commented Mar 16, 2018

I have Esp8266 12e from Ai-thinker Team

http://www.kloppenborg.net/images/blog/esp8266/esp8266-esp12e-specs.pdf

How much memory is required ??

@haarislabs
Copy link

Hey bjoham,
I selected the Adafruit Huzzah 8266 board to see if it compiles without any error or not but it gives me the following error

C:\...\Temp\arduino_build_675126/slave_sender.ino.elf section `.text' will not fit in region `iram1_0_seg'

collect2.exe: error: ld returned 1 exit status

Using library Wire at version 1.0 in folder: ..\esp8266\hardware\esp8266\2.4.1\libraries\Wire 
exit status 1
Error compiling for board Adafruit HUZZAH ESP8266.

Thanks for the reply

@bjoham
Copy link
Author

bjoham commented Mar 18, 2018 via email

@ressof
Copy link

ressof commented Apr 1, 2018

I also get this error.
Im using the latest arduino version from Windows Store.

@haarislabs
Copy link

haarislabs commented Apr 3, 2018

Hi Bjorn,
I didn't get any time on experimenting it, but I'm definitely on it from today. I'll do as you told me to do meanwhile can you share the IDE version on which your library was tested and developed for?

@devyte
Copy link
Collaborator

devyte commented Oct 26, 2018

Closing in favor of #5226 .

@devyte devyte closed this Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants