In the last couple of weeks getting ready to shoot my demo video and running multiple button pads for the first time as well as some significant firmware updates from the SparkCore team i’ve cleaned up the firmware code a lot. It’s almost a re-write actually.
- Updated SparkCore Core-firmware
- All configuration at top of the file
- Changed the way buttons work
- Added orientation options
- Topic strings now in variables rather than hard coded
The downside is that prior to the SparkCore “deep update” the micro would restart every 24 hours or so and then come good again now it just crashes, i’m obviously looking into fixing this.
My firmware includes some other open libraries.
The MQTT PubSubClient is based on Nicholas O'Leary's Arduino library and adapted to SparkCore by Chris Howard.
The library controlling the WS2812 LED's is based on the Adafruit NeoPixel Library by Phil Burgess adapted to SparkCore by Technobly aka BDub, PJRC and others.
The ClickButton library is from the list of SparkCore shared libraries, the original Arduino Library is by radon and i’m not sure who ported it to the SparkCore.