Skip to content

Add delays to all commands #11

@sfe-SparkFro

Description

@sfe-SparkFro

#9 (comment):

For some reason, it seems the ATmega328P sometimes needs some extra delay between commands. I don't fully understand why this is, but if you send multiple commands immediately, it seems to fail to send an ACK sometimes. Maybe this can be fixed with a firmware update, maybe not. But at least for now, there is a workaround that seems to work, which is to put delays between all I2C commands

#9 (comment):

Image

I tested a 1ms delay between setCursor() and print() which seemed to work fine. So 1ms may be sufficient everywhere, but should check to see if any other functions require longer delays.

Should also see if these delays can be reduced: https://github.com/search?q=repo%3Asparkfun%2Fqwiic_serlcd_py+time.sleep+path%3Aqwiic_serlcd.py&type=code

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions