jslawless / POPSICL

POPSICL - Probing Over the Physics' Institutions Systematic Cooling Liability
3 stars 0 forks source link

Set pico to run program on boot #9

Open lawrenceleejr opened 1 year ago

Jmgou commented 1 year ago

This has been completed. I also added a check to see if the code successfully runs on boot. Its LED will light up every time it successfully posts to the database.

lawrenceleejr commented 1 year ago

Oh very nice. It's also good practice in an issue like this to post the commit(s) and/or PR that represents the change. And if it's not in the code, to describe how to do it again in the future since people will need to do this same procedure. Can you explain a step-by-step to make it run on boot?

Also for the LED -- that's a great idea. However, the way it's coded right now, it'll turn on the LED and if it fails to reach the DB, that try block will be done and the LED won't be turned back off. I would maybe turn on the LED, do a short sleep, and then turn it off. That would be a safer way and will be effectively the same but the light would mean "I successfully wrote to the DB!" and has no chance of getting stuck on.