Neopixel Trigger

Hi guys just purchased a Adafruit GEMMA , WS2812B 5050 NeoPixel Ring 24 Way. Not sure about wether my idea can be done so i thought id ask here first . Im A noob so please help.
First off i want the Ring Spinning different colours so I've looked at the Source code for that.
Is there a way to add a PIR to the Adafruit GEMMA so it triggers the ring to start spinning colours ??
If so any help would be great, Never used this before guys so please be gentle.

Suggest you spend some time here first:

.

Had a little look through there today Was only really asking is the pir possible to trigger that Source code

Can an input trigger the pixel animation, then yes.

.

MasterMark2017:
Had a little look through there today Was only really asking is the pir possible to trigger that Source code

If you use an if statement it probably could. Do you have any code to post?