I am relatively new to arduino but have a basic understanding of C. I am trying to program up a device that allows me to do the following:
I want to be able to display various active patterns on several addressable LED strips. The coding for this is all complete.
I have a small OLED display (I2C) which I want to use to display which pattern or program is active on the LED strips.
I want to have an input that allows me to cycle between the patterns of LEDs and update the display accordingly.
Can anyone help in terms of how i go about programming the interrupts correctly? Each LED program is a function which can be called. However, in order to achieve the desired effect, there are small delays in some functions (eg to permit movement of light up and down LEDs at a desired rate). What's the best way of cycling through these functions, whilst ensuring the interrupts are pretty instantaneous from the user's input?
Using Adafruit libraries (neopixel) and Adafruit SSD1306 libraries.
Thanks in advance for your help.