avishorp / TM1637

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

Turn Display Off? #33

Closed lain-d closed 6 years ago

lain-d commented 6 years ago

I'm having trouble blanking the display. I've tried sending an empty array with setSegments but it just crashes

ybaransky commented 6 years ago

the setBrightness() call has a parameter to enable/disable entire display. might that work for you (if it works). odd that all 0's in the setSegments crashes things. did you figure it out? also, have you ever gotten the decimal place to work? if yes, which LED board are you using? thx -yurij

avishorp commented 6 years ago

Please share the code that you believe crashes the library. If you want to turn off all the segments, you have to pass an array of length 4 filled with zeros, not an empty array.

2winners commented 6 years ago

i have added a clean() function to my version of your library saves me time coding because i found the brightness on off to much work and anoying