Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Python • Re: Cleanest way to turn on GPIO based on input string

$
0
0
I think a local dictionary would be a bit cleaner...
Yes, it is.

On the other side, you can assign names to pins and work with those names independently in your program. If there is a change of pins, then you just have to edit the csv file. It's probably not worth the effort for just a few GPIOs.

Statistics: Posted by DeaD_EyE — Tue Mar 25, 2025 11:51 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles