MajicDesigns / MD_UISwitch

Uniformly encapsulate different types of switches as user input devices
GNU Lesser General Public License v2.1
40 stars 17 forks source link

multiple push button #1

Closed nalakawula closed 6 years ago

nalakawula commented 6 years ago

I have 10 push button? Any example how to use your library to use with multiple button? thanks

MajicDesigns commented 6 years ago

That depends on what you need to do. If you want to be able to select more than 1 at a time, then you declare 10 switch objects. If only one is active at a time, you can declare an array of PIN numbers and the library will manage that as well. Combination of the two is also possible. Examples in the library should show how each is done and also read the documentation for the library.