What is the purpose of those to lines: signal(SIGTERM, safe_exit).. ?
@m.heidenreich6 ай бұрын
This code handles safe program shutdown procedures, where GPIO ports are restored to default. I explain the why and how in a dedicated video: kzbin.info/www/bejne/eqmao5eopq-rndU
@sergehulne Жыл бұрын
Would this code, which uses threads, run on a Raspberry Pi Nano (via Micropython) ?
@m.heidenreich Жыл бұрын
Unfortunately no, as this example relies on gpiozero library which is designed specifically for regular Raspberry Pi.