Skip to content

Commit 52e2c73

Browse files
committed
Refactor library to clear Spark checks
- change name - implement entry point - add example
1 parent f69754d commit 52e2c73

File tree

6 files changed

+41
-5
lines changed

6 files changed

+41
-5
lines changed

firmware/examples/hello-io.ino

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */
2+
3+
#include "roomba-cpp-sdk/roomba-cpp-sdk.h"
4+
5+
Roomba<roomba::OI500> roomba;
6+
7+
void setup (void) {
8+
roomba::oi::start();
9+
}
10+
11+
void loop (void) {
12+
13+
}
14+
15+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */

firmware/irobot-roomba-sdk.cpp

-2
This file was deleted.

firmware/irobot-roomba-sdk.h

Whitespace-only changes.

firmware/roomba-cpp-sdk.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */
2+
3+
#include "roomba-cpp-sdk.h"
4+
5+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */

firmware/roomba-cpp-sdk.h

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */
2+
3+
#ifndef ROOMBA_CPP_SDK_H
4+
#define ROOMBA_CPP_SDK_H
5+
6+
#include "defines.h"
7+
#include "hardware/state.h"
8+
#include "open_interface/open_interface.h"
9+
#include "platform/serial.h"
10+
11+
template <enum roomba::OISeries OI_SERIES>
12+
struct Roomba {
13+
static roomba::OpenInterface<OI_SERIES> oi;
14+
};
15+
16+
#endif
17+
18+
/* Created and copyrighted by Zachary J. Fields. Offered as open source under the MIT License (MIT). */

spark.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "irobot-roomba-sdk",
3-
"version": "1.0.0-beta001",
2+
"name": "roomba-cpp-sdk",
3+
"version": "0.1.0",
44
"author": "Zachary J. Fields <[email protected]>",
55
"license": "The MIT License (MIT)",
6-
"description": "A C++ wrapper for the iRobot® Roomba Open Interface (OI) Specification."
6+
"description": "A C++ wrapper for the iRobot Roomba Open Interface (OI) Specification."
77
}

0 commit comments

Comments
 (0)