Example program for BLE devices using updated Puck library.
Fork of location-puck by
Revision 13:0f04dc5f14af, committed 2015-03-09
- Comitter:
- aleksanb
- Date:
- Mon Mar 09 14:14:34 2015 +0000
- Parent:
- 12:270d2160cc13
- Child:
- 14:d1a26847d25d
- Commit message:
- Use newest puck lib, add power usage warning;
Changed in this revision
| Puck.lib | 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 |
--- a/Puck.lib Fri Feb 27 18:14:35 2015 +0000 +++ b/Puck.lib Mon Mar 09 14:14:34 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Pucks/code/Puck/#bfc682889c15 +http://mbed.org/teams/Nordic-Pucks/code/Puck/#cd6703df9501
--- a/main.cpp Fri Feb 27 18:14:35 2015 +0000
+++ b/main.cpp Mon Mar 09 14:14:34 2015 +0000
@@ -14,12 +14,12 @@
* limitations under the License
*/
+// Remove the log level define in production. It will prevent your mbed from entering low power modes.
#define LOG_LEVEL_INFO
#include "Puck.h"
Puck* puck = &Puck::getPuck();
-
int main(void) {
puck->init(0xBA55);
while(puck->drive());
