Skip to content

Instantly share code, notes, and snippets.

View RickardPettersson's full-sized avatar

Rickard Pettersson RickardPettersson

View GitHub Profile
@dmiddlecamp
dmiddlecamp / TempSensor.h
Created April 23, 2014 17:18
OneWire Temp - Multiple Sensors
#include "application.h"
class TempSensor {
public:
char *id ;
uint8_t rom[8];
float value ;
int updated ;
};
#include <Adafruit_NeoPixel.h>
#define PIN 2
#define Pixels 25
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)