Skip to content

Commit ce97499

Browse files
committed
restructure lib and move everything into src
1 parent c1df5f0 commit ce97499

20 files changed

+12
-4
lines changed
File renamed without changes.
File renamed without changes.

AdafruitIO_Dashboard.cpp renamed to src/AdafruitIO_Dashboard.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ bool AdafruitIO_Dashboard::create()
5959
return status == 201;
6060
}
6161

62+
ToggleBlock* AdafruitIO_Dashboard::addToggleBlock(AdafruitIO_Feed *feed)
63+
{
64+
return new ToggleBlock(this, feed);
65+
}

AdafruitIO_Dashboard.h renamed to src/AdafruitIO_Dashboard.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414

1515
#include "Arduino.h"
1616
#include "AdafruitIO_Definitions.h"
17+
#include "blocks/ToggleBlock.h"
1718

1819
// forward declaration
1920
class AdafruitIO;
21+
class AdafruitIO_Feed;
2022

2123
class AdafruitIO_Dashboard {
2224

@@ -29,6 +31,8 @@ class AdafruitIO_Dashboard {
2931
bool exists();
3032
bool create();
3133

34+
ToggleBlock* addToggleBlock(AdafruitIO_Feed *feed);
35+
3236
private:
3337
AdafruitIO *_io;
3438

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)