Skip to content
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

Changing LEDS freezes I2C connection #692

Closed
zzxjl1 opened this issue Dec 8, 2018 · 3 comments
Closed

Changing LEDS freezes I2C connection #692

zzxjl1 opened this issue Dec 8, 2018 · 3 comments

Comments

@zzxjl1
Copy link

zzxjl1 commented Dec 8, 2018

I‘m currently using esp8266 as a master and arduino nano is a slave, i seems to be fine when i leave it idle, but when there is some light effects going on on my arduino nano the connection freezes and never recover.
NOTE: It won’t have the same issue on my esp8266,is this a performance problem?

@focalintent
Copy link
Contributor

I2c makes heavy use of interrupts on the nano - which doesn’t mesh well with ws2812 style led timings - https://github.com/FastLED/FastLED/wiki/Interrupt-problems

@zzxjl1
Copy link
Author

zzxjl1 commented Dec 9, 2018

Thanks for your help, but when the light effect is done is it possible to reset the connection?

@focalintent
Copy link
Contributor

I don't know - I think it depends on how i2c is being used and whether or not you can set things up to flush/ignore a bunch of data from i2c.

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

No branches or pull requests

2 participants