avishorp / TM1637

Arduino library for TM1637 (LED Driver)
GNU Lesser General Public License v3.0
427 stars 218 forks source link

Waveforms #17

Closed VendicarDecarian closed 7 years ago

VendicarDecarian commented 7 years ago

I audited your TM1637 bit banger library and note that on real hardware, the output waveforms on both the Clk and Data lines are triangular rather than square when the Arduino output is connected to the display chip.

When disconnected they revert to a nice square wave.

By decreasing the effective baud rate to 20,000 bps, they can be made to be reasonably square.

Further you drive down both the clock and data lines at roughly the same time. While not invalid this can lead to issues if the waveforms are not square.

I can send images if you like.

avishorp commented 7 years ago

This does not seem to be a software problem. Make sure you have proper pull-up resistors on your I2C bus.