Skip to content

Commit 6060ba5

Browse files
committed
add dashboard class
1 parent 3f0a01a commit 6060ba5

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

AdafruitIO_Dashboard.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// Adafruit invests time and resources providing this open source code.
3+
// Please support Adafruit and open source hardware by purchasing
4+
// products from Adafruit!
5+
//
6+
// Copyright (c) 2015-2016 Adafruit Industries
7+
// Authors: Tony DiCola, Todd Treece
8+
// Licensed under the MIT license.
9+
//
10+
// All text above must be included in any redistribution.
11+
//
12+
#include "AdafruitIO_Dashboard.h"
13+
#include "AdafruitIO.h"
14+
15+
AdafruitIO_Dashboard::AdafruitIO_Dashboard(AdafruitIO *io, const char *k)
16+
{
17+
_io = io;
18+
key = k;
19+
}
20+
21+
AdafruitIO_Dashboard::~AdafruitIO_Dashboard(){}

AdafruitIO_Dashboard.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// Adafruit invests time and resources providing this open source code.
3+
// Please support Adafruit and open source hardware by purchasing
4+
// products from Adafruit!
5+
//
6+
// Copyright (c) 2015-2016 Adafruit Industries
7+
// Authors: Tony DiCola, Todd Treece
8+
// Licensed under the MIT license.
9+
//
10+
// All text above must be included in any redistribution.
11+
//
12+
#ifndef ADAFRUITIO_DASHBOARD_H
13+
#define ADAFRUITIO_DASHBOARD_H
14+
15+
#include "Arduino.h"
16+
#include "AdafruitIO_Definitions.h"
17+
18+
// forward declaration
19+
class AdafruitIO;
20+
21+
class AdafruitIO_Dashboard {
22+
23+
public:
24+
AdafruitIO_Dashboard(AdafruitIO *io, const char *key);
25+
~AdafruitIO_Dashboard();
26+
const char *key;
27+
28+
private:
29+
AdafruitIO *_io;
30+
31+
};
32+
33+
#endif // ADAFRUITIO_DASHBOARD_H

0 commit comments

Comments
 (0)