This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "FastLED.h" | |
| // How many leds in your strip? | |
| #define NUM_LEDS 60 | |
| // For led chips like Neopixels, which have a data line, ground, and power, you just | |
| // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, | |
| // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN | |
| #define DATA_PIN 3 | |
| #define CLOCK_PIN 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Automatic install of Thingspeak server on Debian jessie | |
| # Updated to use ruby 2.1.4 | |
| ## check root level | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Automatic install of Thingspeak server on Ubuntu 12.04 / Raspbmc / Debian (?) | |
| # Updated to use ruby 2.1.4 | |
| ## Install required packages | |
| sudo apt-get update | |
| sudo apt-get -y install build-essential git mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev libssl-dev libsqlite3-dev | |
| ## Install ruby | |
| wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz |