Quantcast
Viewing all articles
Browse latest Browse all 5114

Automation, sensing and robotics • Re: RPI Button Code

But how would I get it all 1 script? In one of my other forums I ask this,
Place the code from each script in to their own function within a single file (or at least in their own function within two code files but imported in the main script).

Function A will be called when a callback event for pressing the button is triggered.
Function B will be called when a callback event for releasing the button is triggered.

Statistics: Posted by scotty101 — Mon Mar 04, 2024 2:31 pm



Viewing all articles
Browse latest Browse all 5114

Trending Articles