An example using the DAL's radio module that sends and recieves messages to let you know when someone is nearby. This is a one-way translation of the microbit-samples repository on GitHub. Please don't try to push changes here, instead push them to the source repo at https://github.com/lancaster-university/microbit-samples

Dependencies:   microbit

Files at this revision

API Documentation at this revision

Comitter:
LancasterUniversity
Date:
Fri Jul 22 17:52:54 2016 +0100
Parent:
0:5bd253669996
Commit message:
Update to git: v2.0.0-rc4-7-gd548fec

Changed in this revision

MACROS.txt Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5bd253669996 -r 95cf7ca80ca2 MACROS.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MACROS.txt	Fri Jul 22 17:52:54 2016 +0100
@@ -0,0 +1,1 @@
+MICROBIT_BLE_ENABLED=0
diff -r 5bd253669996 -r 95cf7ca80ca2 main.cpp
--- a/main.cpp	Wed Jul 13 16:05:11 2016 +0100
+++ b/main.cpp	Fri Jul 22 17:52:54 2016 +0100
@@ -41,7 +41,7 @@
 #include "MicroBit.h"
 
 #if MICROBIT_BLE_ENABLED 
- #ifdef(YOTTA_CFG)
+ #ifdef YOTTA_CFG
   #error "This example needs BLE to be disabled. Use the yotta config.json in the proximit-heart directory to do this"
  #else
   #error "This example needs BLE to be disabled in the microbit config file in the microbit-dal: MicroBitConfig.h"