Help needed: How to combine multiple pins on ATSAMC21N (explanation below)

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

Im still new and getting acquainted with the ATSAMC21N board. I have multiple LEDs connected to different pins on my board (PA11, PA10, PB01, PB02, PC11). I wish to use the function

gpio_set_pin_level(LED,ON);

to turn on ALL LEDs at once. Is it possible to combine multiple pins into one bigger variable or is there any way you would recommend to get there? 

 

Thank you!

Thanks

Last Edited: Sun. Jul 21, 2019 - 08:45 PM