SPI

The Serial Peripheral Interface (SPI) allows you to connect different types of LEDs to easyvis.


Connect the raspberry pi SPI interface with your LED strips

NOTE: This instruction just outlines the general approach on how to setup an SPI interface with a LED strip. easyvis.io will not guarantee its correctness and is not responsible for your setup. If you are in doubt on your setup, consult professional help from an electrical expert.

This connection between your raspberry pi SPI interface and your LED stripes is common for the different LED Types.

Connect the following raspberry pi pins to the according input on the LED stripe:

Pin LED Stripe Input
6 or 20 Ground/GND (-)
19 Data/DI (MOSI)
23 Clock/CI

The following conceptional picture from adafruit might help you to setup the LEDs

Find more information about the raspberry pi SPI interface here

Configuration

Once you have connected your LEDs you can configure your device in the easyvis console or directly via the API. We assume that you align your strips in one of the supported led alignment patterns

Supported LED Types

SM16716 LEDs

We support the SM16716 protocol which for example used by the Dyco LEDs

WS2812

We support the WS2812 protocol which is used by many led solutions. For example Adafruit’s NeoPixels.

Example SPI Configuration

{
    "id": "CrawXg-142119",
    "label": "Testdevice",
       "outputs": [
            {
            "id": "light0",
            "type": "SPI_WS2812",
            "config": {
                "width": 15,
                "height": 1,
                "startX": 0,
                "startY": 0,
                "pattern": "ZIGZAG",
                "orientation": 0
              }
            }
        ]
    }
  },