Just wanted to share my under cabinet Neopixel project I’ve been working on driven by the Spark Core and controlled by an Android app. The Android app is based off of the Tinker app source code.
The Android app and Core firmware have been designed so that if you want to add a new LED sequence (aka mode) for your Neopixels, you only have to re-flash the Core with the new mode. The Android app reads in the list of available modes from the Core every time the app is launched. The Android app code should never need to be updated.
It’s easy to update the firmware on the Core, It’s a little more work to have to support the Android app to reflect the new Neopixel mode you just created. So the beauty of this project is that you only have to do code work in one spot.
The app displays a list view of all of the modes and gives you dynamic control of the brightness and speed (delay). I have a temperature sensor inside my project box that houses the Spark Core and the +5V power supply. The temp reading can be displayed in the app view or can be turned off in the settings found in the app menu.
Some modes allow the user to select a desired color(s). i.e. The COLORALL mode will pop up a color picker dialog and the user could select all the LEDs to be blue. After selecting blue, there is a round color icon displayed for the function in the list view of the app that will turn blue as well. Up to six colors can be customized for each mode. The number of colors needed for each mode is declared in the modeStruct struct array in the Core firmware. The mode name and number of colors is assembled comma delimited in the modeList cloud variable during the setup routine.
The list view of the modes will not populate unless it gets the modeList cloud variable from the Core and you have to set the Spark Core Neopixel Driver in the settings page of the app. If you have more than one Core (or Photon) registered, the app will always default to selecting this device from your list of Cores when the app launches.
I hope all that makes sense
The app can be found for free on google play here.
All the source code for the app and the Core firmware can be found here.
The Project Box
The Under Cabinet Pixels
The App