The Location Puck gives your smartphone context about its location. Built on the Puck IOT platform.
The location puck will give your smartphone context about the phone’s location. You can later set up rules for what should happen at different locations in the smartphone companion application (Puck Central).
A tutorial for the Location Puck is available on GitHub.
Tutorials and in-depth documentation for the Puck platform is available at the project's GitHub page
main.cpp@9:28eb877be5f8, 2014-07-23 (annotated)
- Committer:
- sigveseb
- Date:
- Wed Jul 23 14:47:06 2014 +0000
- Revision:
- 9:28eb877be5f8
- Parent:
- 8:54535e2f4098
- Child:
- 10:970a9922952b
Update to use new puck lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sigveseb | 9:28eb877be5f8 | 1 | #define LOG_LEVEL_INFO |
sigveseb | 9:28eb877be5f8 | 2 | #include "Puck.h" |
cristea | 0:f4fbeaabdff5 | 3 | |
sigveseb | 9:28eb877be5f8 | 4 | Puck* puck = &Puck::getPuck(); |
cristea | 5:8ccb1cd6694d | 5 | |
cristea |
2:67d603617000 | 6 | |
cristea | 4:4324d5acd5d8 | 7 | int main(void) { |
sigveseb | 9:28eb877be5f8 | 8 | puck->init(0xBA55); |
sigveseb | 9:28eb877be5f8 | 9 | while(puck->drive()); |
sigveseb | 9:28eb877be5f8 | 10 | } |