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.
Diff: main.cpp
- Revision:
- 0:db8d4af513c0
- Child:
- 1:5b0303768126
diff -r 000000000000 -r db8d4af513c0 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Jan 20 08:46:24 2020 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "Motor.h"
+#include "MCP.h"
+#include "XBee.h"
+
+#define SDA PB_7
+#define SCL PB_6
+#define MCP_ADDRESS 0x40
+
+MCP MCP(SDA, SCL, MCP_ADDRESS);
+
+XBEE::ControllerData *controller;
+
+int main() {
+
+ while(1) {
+ controller = XBEE::Controller::GetData();
+
+ /* write ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
+
+
+ }
+}