#ifndef RGBDigit_h
#define RGBDigit_h
#include <Arduino.h>
#include "Wire.h"
#include "../Adafruit_NeoPixel/Adafruit_NeoPixel.h"
#include "../IRremote/IRremote.h"
#include "../DS3231/DS3231.h"
class RGBDigit : public Adafruit_NeoPixel {
public:
RGBDigit(int nDigits);
~RGBDigit();
private:
int _nDigits;
DS3231 _clock;
IRrecv* _ir;
};
#endif
#ifndef RGBDigit_h
#define RGBDigit_h
#include <Arduino.h>
#include "Wire.h"
#include "../Adafruit_NeoPixel/Adafruit_NeoPixel.h"
#include "../IRremote/IRremote.h"
#include "../DS3231/DS3231.h"
class RGBDigit : public Adafruit_NeoPixel {
public:
RGBDigit(int nDigits);
~RGBDigit();
private:
int _nDigits;
DS3231 _clock;
IRrecv* _ir;
};
#endif
#include "RGBDigit.h"
RGBDigit::RGBDigit(int nDigits)
: Adafruit_NeoPixel(8 * nDigits, 12, NEO_GRB + NEO_KHZ800),
_nDigits(nDigits)
{
_ir = new IRrecv(10);
_ir->enableIRIn(); // Start the receiver
Adafruit_NeoPixel::begin();
}
RGBDigit::~RGBDigit()
{
delete _ir;
}
#include "RGBDigit.h"
RGBDigit::RGBDigit(int nDigits)
: Adafruit_NeoPixel(8 * nDigits, 12, NEO_GRB + NEO_KHZ800),
_nDigits(nDigits)
{
_ir = new IRrecv(10);
_ir->enableIRIn(); // Start the receiver
Adafruit_NeoPixel::begin();
}
RGBDigit::~RGBDigit()
{
delete _ir;
}
#include <Wire.h>
#include <RGBDigit.h>
RGBDigit display = RGBDigit(4);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
#include <Wire.h>
#include <RGBDigit.h>
RGBDigit display = RGBDigit(4);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}