-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQRGBLED.h
39 lines (33 loc) · 839 Bytes
/
SQRGBLED.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// SQRGBLED.h
//
//
// Created by Bradley Clayton on 7/30/12.
// Copyright (c) 2012 Squarepolka. All rights reserved.
//
#ifndef SQRGBLED_h
#define SQRGBLED_h
#include "Arduino.h"
#include "SQSchedularProtocol.h"
#include "SQLED.h"
class SQRGBLED : public SQSchedularProtocol
{
public:
SQRGBLED();
virtual void setup(int redPin, int greenPin, int bluePin);
virtual void colour(int red, int green, int blue, long duration);
virtual boolean isFading();
virtual boolean isPulsing();
virtual float currentRedVal();
virtual float currentGreenVal();
virtual float currentBlueVal();
virtual float currentAverageVal();
#pragma mark - SQSchedularDelegate Methods
virtual unsigned int executionInterval();
virtual void loop();
private:
SQLED _redLED;
SQLED _greenLED;
SQLED _blueLED;
};
#endif