EarthstormSoftware/controllerformote-api

Porting this to other API for RGB LEDs

Opened this issue · 2 comments

I would like to write equivalent code for other RGB LEDs.

I have in mind the following:

  • Blinkt! from Pimoroni
  • Rainbow (the LED part is having a API similar to Blinkt!)
  • Inspiring SPI controled APA102 stick from http://rasp.io/inspiring (API not release yet, but I have access)

The goal is to reuse your App without modification, but to offer more option to those not owning a mote.
I plan to do code duplication (copying under another name, then modify to use another API).
Potentially, I could create a sandwich API layer to avoid duplication, but that is a second step.

I know those API and have worked a lot on Blinkt! examples.

Let me know if I can start coding. :-)

For the app, I don't really have the skills and build system to work on the android side, that's why I wanted to work on the colorfull LEDs side.

For the options, the best is that I fork and show you stuff there rather than to mess in your copie.
Yes if it is not mote specific, another name might be good.

I am not fully interested in supporting simultaniously multiple hardware (on the same pi) or multiple hardware on multiple pi. That could be solved by making the android app more complex and accepting multiple destination... but a central server that control them all is an option.

Today, your code is mote minded and only require:

  • init
  • set all LEDs to one color
  • turn on
  • turn off

I will try to extract that from the code and make it modular,
Then provide equivalent for other hardware.

This will not fill the bill for effect as there you want to address individual LEDs.