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 BLE_API nRF51822
Diff: transmitter_main.cpp
- Revision:
- 2:f8dfdded83bf
- Parent:
- 1:6659687d9cb0
- Child:
- 3:76b8337374e7
--- a/transmitter_main.cpp Wed Apr 17 20:21:20 2019 +0000
+++ b/transmitter_main.cpp Wed Apr 17 20:32:42 2019 +0000
@@ -1,19 +1,19 @@
#include "mbed.h"
#include "ble/BLE.h"
-//#define LED_RED p21
-//#define LED_GREEN p22
-//#define LED_BLUE p23
-//#define BUTTON_PIN p17
-//#define BATTERY_PIN p1
+
#define LED_RED p22
+#define LED_GREEN p21
+#define LED_BLUE p23
+#define BUTTON_PIN p17
+#define BATTERY_PIN p1
+
DigitalOut led1(p21);
+const static char DEVICE_NAME[] = "Joe-Aidan";
-// sample comment
-typedef struct packet {
- int increasing_sequence = 23;
- const static char DEVICE_NAME[] = "Joe-Aidan";
-}
-
+struct Packet {
+ uint32_t increasing_sequence;
+};
+
static volatile bool triggerSensorPolling = false;
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
{
