Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot-mbed5 ISL29011
Diff: examples/src/manual_example.cpp
- Revision:
- 14:19fae4509473
- Parent:
- 12:ec9768677cea
- Child:
- 16:a3832552dfe1
diff -r f1d1ef71b3c4 -r 19fae4509473 examples/src/manual_example.cpp
--- a/examples/src/manual_example.cpp Tue Oct 11 13:29:32 2016 -0500
+++ b/examples/src/manual_example.cpp Tue Oct 11 13:53:32 2016 -0500
@@ -1,4 +1,5 @@
#include "dot_util.h"
+#include "RadioEvent.h"
#if ACTIVE_EXAMPLE == MANUAL_EXAMPLE
@@ -32,12 +33,18 @@
#endif
int main() {
+ // Custom event handler for automatically displaying RX data
+ RadioEvent events;
+
pc.baud(115200);
mts::MTSLog::setLogLevel(mts::MTSLog::TRACE_LEVEL);
dot = mDot::getInstance();
+ // attach the custom events handler
+ dot->setEvents(&events);
+
if (!dot->getStandbyFlag()) {
// start from a well-known state
logInfo("defaulting Dot configuration");