The Amarino service is now properly set up to send data to the arduino, so now it's time to use that data. The 'meetAndroid' library takes care of sending and receiving everything. Anytime data is received, the function corresponding to the associated flag is called. (Flag B in this case) To show the time, the hh:mm:ss value is sent in 1s intervals. It's then just a matter of checking to see if the new value has an effect on the light position. (60min/5min intervals = 12 positions in hour/min mode) since redrawing the lights in 1s intervals causes flashing.
Notifications are received as single digit numbers with Flag A. A switch case specifies which neopixel animation function and what colour will be run. Right now I only have sms, snapchat, and gmail setup, however I added a few other animation colours so that if I want to send other notifications I only need to specify a different digit to be sent in the tasker shell script. After the animations run, the clock is redrawn. To show that there is still a pending notification, the clock is cleared on odd seconds and redrawn on even seconds (slow blink effect) until the phone screen is turned on.
Lastly, Incoming calls produce a 'theaterchase' effect that looks really cool. If the call is answered or stops ringing, the clock is redrawn.