Skip to content

Script hanging / freezing #12

@MassimoVisona

Description

@MassimoVisona

Hello,
I was excperiencing some freezing / hanging behaviour with some tm1637 7-segment displays and this library on a Raspberry Pi Pico board.
I was able to fix it modifiyng your original library as follows:

  • replace all the "sleep_us" occurrencies with "time.sleep"

  • change the "TM1637_DELAY = const(10)" line with "TM1637_DELAY = const(0.00001)"

  • replace the "from time import sleep_us, sleep_ms" line to "import time"

  • I also changed the "sleep_ms(delay)" inside the scroll function with "time.sleep(delay)" and changed the original "delay=250" with "delay=0.250"

My script is now running since two days with no more freezings! I hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions