Arduino Forum

Using Arduino => LEDs and Multiplexing => Topic started by: ap16 on Feb 12, 2018, 05:10 am

Title: How can I use the attachinterrupt function
Post by: ap16 on Feb 12, 2018, 05:10 am
How can I use te attachinterrupt function to adjust the brightness of an led. increase and decrease with 2 separate switches
Title: Re: How can I use the attachinterrupt function
Post by: PaulRB on Feb 12, 2018, 08:06 am
I suppose you could use attachInterrupt() to detect the button presses. But it would be completely unnecessary. Just use digitalRead().