← Back to context

Comment by maliker

2 years ago

ChatGPT coded up a simple python script to do this for me if anyone would like to test it out.

Here's the script: https://gist.github.com/dpinney/a3c0b1f333ef89748fa12d057a55...

Thanks for this initial go at the blinking LED script! I went ahead and tried to add some quality-of-life features to this that I wanted. I've never used pyqt before, so I admit I had help from google and copilot figuring out methods. Anyways, here is an updated version that has a few more configurations for background color, circle color, slowdown period, graceful window resizing, and graceful shutdown.

https://gist.github.com/rzwiefel/4527d40de25a7fd5a723016fbd4...

  • Looks good!

    Try doing one on a physical device too... My settings are just related to fade after reaching target or turn off immediately, Led colour (my ESP32 has a RGB onboard) and blink or pulse. Then there is a Start & Stop rate (150-60) as standard and IF sensor is connected or has data (heart) those values adjust too.

    Nice one!