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: mbed MODSERIAL FATFileSystem
Diff: System/StaticDefs.cpp
- Revision:
- 73:f6f378311c8d
- Parent:
- 67:c86a4b464682
- Child:
- 74:d281aaef9766
diff -r 250b2665755c -r f6f378311c8d System/StaticDefs.cpp
--- a/System/StaticDefs.cpp Mon Jul 02 14:28:22 2018 +0000
+++ b/System/StaticDefs.cpp Mon Jul 30 16:48:48 2018 +0000
@@ -14,8 +14,8 @@
}
MODSERIAL & pc() {
- static MODSERIAL pc(USBTX, USBRX);
- //static MODSERIAL pc(p9, p10); //XBee tx, rx pins
+ //static MODSERIAL pc(USBTX, USBRX);
+ static MODSERIAL pc(p9, p10); //XBee tx, rx pins
return pc;
}
@@ -97,6 +97,11 @@
return sequenceController;
}
+Sensors & sensors() {
+ static Sensors sensors;
+ return sensors;
+}
+
MbedLogger & mbedLogger() {
static MbedLogger mbedLogger("/local/"); //local file system
return mbedLogger;
@@ -125,4 +130,9 @@
DigitalOut & led4() {
static DigitalOut led4(LED4);
return led4;
+}
+
+Gui & gui() {
+ static Gui pythonGUI;
+ return pythonGUI;
}
\ No newline at end of file