Search found 1 match

by ayuptom
Mon Feb 10, 2020 3:27 pm
Forum: General Discussion and Questions
Topic: Pass pin as arg to LED and Switch
Replies: 1
Views: 1116

Pass pin as arg to LED and Switch

I am using an STM32F411RE with only one user LED and one user button. I'd like to add more to various pins but I'd like to make use of the pyb.LED and pyb.Switch rather . Is there a way to do this? It would be great if I could declare a pyb.Pin and pass that in as an argument to LED or Switch for ex...