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
# London Bus arrivals ticker | |
# Ismail Uddin, 2015 | |
# www.scienceexposure.com | |
from TfLAPI import * | |
import Adafruit_CharLCD as LCD | |
import time | |
import sys | |
from multiprocessing import Process |
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
// Arduino code for Neopixel LED controller | |
// using a potentiometer and switch button | |
// (C) Ismail Uddin, 2015 | |
// www.scienceexposure.com | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 3 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, PIN, NEO_GRB + NEO_KHZ800); | |
int potPin = 2; |
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
// Arduino code for Neopixel LED controller | |
// using a potentiometer and switch button | |
// (C) Ismail Uddin, 2015 | |
// www.scienceexposure.com | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 0 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, PIN, NEO_GRB + NEO_KHZ800); | |
int potPin = 2; |
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
pixel = require("node-pixel"); | |
five = require("johnny-five"); | |
var board = new five.Board(); | |
var randomColor = function (low, high) { | |
return Math.floor(Math.random() * (high - low) + low); | |
} | |
board.on("ready", function() { |